Skip to content

Commit 28908cf

Browse files
Update packages/text-annotator/src/SelectionHandler.ts
Co-authored-by: Oleksandr Danylchenko <[email protected]>
1 parent 5adbeeb commit 28908cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/text-annotator/src/SelectionHandler.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ export const SelectionHandler = (
143143
updated: new Date()
144144
};
145145

146-
// On destkop, the annotation won't usually exist while the selection is
147-
// being edited. But it will typcially be the case on mobile!
146+
/**
147+
* During mouse selection on the desktop, annotation won't usually exist while the selection is being edited.
148+
* But it will be typical during keyboard or mobile handlebars selection!
149+
*/
148150
if (store.getAnnotation(currentTarget.annotation)) {
149151
store.updateTarget(currentTarget, Origin.LOCAL);
150152
}

0 commit comments

Comments
 (0)