Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#136 Fixed missing annotation dismissal clicking over native selection range #137

Conversation

oleksandr-danylchenko
Copy link
Contributor

@oleksandr-danylchenko oleksandr-danylchenko commented Aug 14, 2024

Issue - #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

Screen.Recording.2024-08-14.at.17.55.32.mov

…n-native-range-click

# Conflicts:
#	packages/text-annotator/src/SelectionHandler.ts
…n-native-range-click

# Conflicts:
#	packages/text-annotator/src/SelectionHandler.ts
@rsimon rsimon merged commit d88a1fa into recogito:main Sep 2, 2024
@oleksandr-danylchenko oleksandr-danylchenko deleted the #136-fix-not-dismisssed-annotation-on-native-range-click branch September 3, 2024 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants