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

Fix: Pending highlight is not cleared on powerpoint page scroll #125

Merged
merged 6 commits into from
Mar 3, 2018

Conversation

pramodsum
Copy link
Contributor

No description provided.

@boxcla
Copy link

boxcla commented Feb 28, 2018

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);
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

@jeremypress jeremypress left a 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

@pramodsum pramodsum merged commit 777678a into box:master Mar 3, 2018
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.

3 participants