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

Handle pointerdown #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Handle pointerdown #18

wants to merge 2 commits into from

Conversation

joux3
Copy link

@joux3 joux3 commented Nov 22, 2018

Fixes #16. See issue for detailed discussion about the approach.

Unfortunately right now the onOutsideClick will be triggered twice per
click on browsers that support pointer events.
When both onPointerUp and onMouseUp fire, they will have the same
timeStamp value. Furthermore onPointerUp will always fire before
onMouseUp. Hence if we just handled pointer up and are handling mouse up
caused by the same user event we can just skip it.
@ljharb ljharb requested a review from majapw November 23, 2018 20:03
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.

None yet

1 participant