Skip to content

Commit

Permalink
Merge branch 'recogito#127-annotating-enabled-reactive' into staging
Browse files Browse the repository at this point in the history
# Conflicts:
#	packages/text-annotator/src/SelectionHandler.ts
  • Loading branch information
oleksandr-danylchenko committed Nov 4, 2024
2 parents 833fb75 + b3e9a54 commit b12f81a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/text-annotator/src/SelectionHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ export const createSelectionHandler = (
};

const onSelectStart = (evt: Event) => {
if (isLeftClick === false)
return;
if (!currentAnnotatingEnabled) return;

if (isLeftClick === false) return;

/**
* Make sure we don't listen to selection changes that were
Expand Down

0 comments on commit b12f81a

Please sign in to comment.