Closed oleksandr-danylchenko closed 2 months ago
Added timeout before reading the document.getSelection().isCollapsed, making it more consistent, and eliminating the difference between clicking over the native selection range and beyond it. See more details here.
document.getSelection().isCollapsed
https://github.com/user-attachments/assets/5f49da4e-341d-4811-902c-91cdeb479168
Issue - https://github.com/recogito/text-annotator-js/issues/136
Changes Made
Added timeout before reading the
document.getSelection().isCollapsed
, making it more consistent, and eliminating the difference between clicking over the native selection range and beyond it. See more details here.Demo
https://github.com/user-attachments/assets/5f49da4e-341d-4811-902c-91cdeb479168