-
Notifications
You must be signed in to change notification settings - Fork 45
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
Fix: Pending highlight is not cleared on powerpoint page scroll #125
Conversation
Verified that @pramodsum has signed the CLA. Thanks for the pull request! |
@@ -396,6 +397,7 @@ class DocAnnotator extends Annotator { | |||
// Highlight listeners on desktop & mobile | |||
if (this.plainHighlightEnabled || this.commentHighlightEnabled) { | |||
this.annotatedElement.addEventListener('mouseup', this.highlightMouseupHandler); | |||
this.annotatedElement.addEventListener('wheel', this.resetHighlightSelection); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does wheel also fire if you are scrolling through overflowed content in a dialog? That might clear things?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll add a check to only reset the highlight if the mouse is not over an annotation dialog
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double check the behavior on mobile/tablet, the wheel event may not fire and then bad stuff could happen with the dialog on tablet. Otherwise LGTM
No description provided.