Skip to content

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.

1 participant