You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once you start selecting the text either by mouse or keyboard, you cannot cancel it by collapsing the selection range.
Mouse
selection_loop.mp4
The mouse selection dispatches the selectstart event only once and after that, only the selectionchange until you release. During that time you're stuck in "at least 1-char selection limbo", and the rendered highlight won't get dismissed
Keyboard
keyboard_selection_loop.mp4
The keyboard selection dispatches the distinct selectstart event each time the previous selection range becomes collapsed. So each time you switch the selection direction, a new leftover annotation gets saved. Which is even more annoying than the mouse-limbo 💀
Suggested Changes
We should track the moment when the previously populated selection range collapses. That should signify the selection cancellation. Then, such leftover annotations can be deleted.
The text was updated successfully, but these errors were encountered:
oleksandr-danylchenko
changed the title
The annotation selection cannot be canceled once at least a single character got selected ⚠️
The annotation selection cannot be discarded once at least a single character got selected ⚠️
Aug 16, 2024
Issue
Once you start selecting the text either by mouse or keyboard, you cannot cancel it by collapsing the selection range.
Mouse
selection_loop.mp4
The mouse selection dispatches the
selectstart
event only once and after that, only theselectionchange
until you release. During that time you're stuck in "at least 1-char selection limbo", and the rendered highlight won't get dismissedKeyboard
keyboard_selection_loop.mp4
The keyboard selection dispatches the distinct
selectstart
event each time the previous selection range becomes collapsed. So each time you switch the selection direction, a new leftover annotation gets saved. Which is even more annoying than the mouse-limbo 💀Suggested Changes
We should track the moment when the previously populated selection range collapses. That should signify the selection cancellation. Then, such leftover annotations can be deleted.
The text was updated successfully, but these errors were encountered: