-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Touchable onPress not always called inside a list #1124
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
Comments
Are you moving the mouse outside the touchable boundary? |
Not intentionally. Is just the movement that happens naturally when I click the mouse
|
But is the mouse moving outside the boundaries of the touchable? |
No
|
We face the same issue, when slightly moving the mouse (leaving it inside the clickable), onPress / onClick isn't fired. edit: For me the reason for this bug was using the InvertibleScrollView Component. Touchables inside this inverted View seem to be buggy (seems like the touch-area is not inverted when moving the mouse). |
Problem: We are facing the same issue and have done a fair bit of testing. Across multiple browsers, if you hold the mouse very still onPress triggers, but if the mouse is in motion onPress does not work. Expected Behavior onPress fires so long as the clickevent occurs inside the boundaries of the touchable. Environment Addl Context
The onPress triggers intermittently and it seems to be similar to the issue others have described, where the onPress doesn't work if the mouse is in motion. |
Closing this issue so we can coordinate findings and solutions in #1219 |
The problem
Sometimes the Touchable onPress event is not called when I'm inside a scrollview. It doesn't happen all the time but when I test it outside the scrollview, onPress event is always dispatched.
What I noticed debugging it is that the onPress is not being called because the signal is LEAVE_PRESS_RECT. It looks like this happens if I slightly move the mouse when clicking the touchable
Expected behavior
onPress to be always called
Environment (include versions). Did this work in previous versions?
Additional context
These are the events logs when only the onPressIn and onPressOut events are called and not the onPress
And these when the onPress is called
The text was updated successfully, but these errors were encountered: