-
Notifications
You must be signed in to change notification settings - Fork 1k
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
InputNumber: Touch and hold button spin doesn't work on iOS browser #2849
Comments
In your TouchStart or TouchEnd try and call |
Can you try my PR: #2850 ???? According to the docs the TouchEnd TouchStart with preventDefault should cause it NOT to call the mouse events |
I tried out your PR and it's also being called after TouchEnd, so I think after ClearTimer() on both OnButtonTouchEnd, you can add And that stopped it for me. Thanks! |
Thanks for testing PR updated! |
Describe the bug
The touch and hold spin doesn't seem to work on iOS. I tried adding similar functions as onMouseDown and onMouseUp to the button's onTouchStart and onTouchEnd but it causes a double-click issue with onMouseDown / onTouchStart.
Reproducer
(https://www.primefaces.org/primereact/inputnumber/)
PrimeReact version
8.0.1
React version
18.x
Language
ES6
Build / Runtime
Next.js
Browser(s)
iOS 15.4
Steps to reproduce the behavior
Expected behavior
Touch and hold on an increment / decrement button should cause the input number to continually increase / decrease.
The text was updated successfully, but these errors were encountered: