-
Notifications
You must be signed in to change notification settings - Fork 47.6k
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
[react-events] Tap: add maximumDistance prop #16689
[react-events] Tap: add maximumDistance prop #16689
Conversation
Details of bundled changes.Comparing: e11bf42...6141877 react-events
|
@necolas I'm not sure its related to these changes, but long press and press via the Enter key don't seem to work for me in that demo (Chrome 76 on macOS) |
91b2413
to
ed2e832
Compare
LongPress will be a separate responder. And see 9ce8711 for related context |
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.
What happens if the maximumDistance
is set to 0
? I assume that wouldn't work here? Should we warn against using < 0
?
Why is that? |
@necolas Unless I'm mistaken, |
Yeah I think if you moved back over the initial point, in that case it would not fire |
A prop for configuring the maximum distance that the active pointer can move before the tap is cancelled.
ed2e832
to
6141877
Compare
A prop for configuring the maximum distance that the active pointer can move before the tap is cancelled.
Demo: https://codesandbox.io/s/latest-responder-build-rz96j30rp