-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[usePress] Hook doesn't call the onPress function when pressing the element at the corner #5290
Comments
Thanks for the issue. |
Also, closing as a duplicate of #1061 |
@snowystinger The Devon proposal has been there for 3 years, I already sent a PR to fix the issue, this will fix a lot of issues we are having on NextUI |
Hi @snowystinger and @devongovett, bumping this issue as it is something we've encountered as well. The source of this problem is that we're using the pointer size from the Given the situation, I see two potential solutions:
Happy to help with either of those solutions. |
Should have been fixed by #7427. |
Provide a general summary of the issue here
When tapping the corners of certain elements, the onPress function does not get triggered. This issue is observed on select mobile devices and can be replicated using Chrome Dev Tools by selecting Responsive > Mobile Touch. Multiple NextUI components that rely on the
usePress
hook are impacted by this behavior.Video (Check last part)
CleanShot.2023-10-22.at.21.49.59.mp4
🤔 Expected Behavior?
Call
onPress
function when pressing the element at its corners.😯 Current Behavior
The
onPress
is not called when pressing any element/component that use theusePress
under the hook.💁 Possible Solution
I'm preparing a PR for this, we already fixed it in a local copy, but for us is better is this change is in the react-spectrum package.
🔦 Context
No response
🖥️ Steps to Reproduce
Version
3.19.1
What browsers are you seeing the problem on?
Chrome, Microsoft Edge
If other, please specify.
No response
What operating system are you using?
macOS
🧢 Your Company/Team
NextUI
🕷 Tracking Issue
heroui-inc/heroui#1680
heroui-inc/heroui#1634
heroui-inc/heroui#1632
heroui-inc/heroui#1538
The text was updated successfully, but these errors were encountered: