Skip to content
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

[NumberField] Correctly handle quick touches #1294

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

atomiks
Copy link
Contributor

@atomiks atomiks commented Jan 7, 2025

Closes #1287

The issue is onMouseEnter fires once on touch on focus, which allows quick touches to work but only the first time. After that, taps within TOUCH_TIMEOUT (50ms, touchend) don't activate the button. To solve this we can conditionally determine if onClick can activate by checking if the auto change already started after the timeout, which only applies to touch

@atomiks atomiks added the component: number field This is the name of the generic UI component, not the React module! label Jan 7, 2025
@mui-bot
Copy link

mui-bot commented Jan 7, 2025

Netlify deploy preview

https://deploy-preview-1294--base-ui.netlify.app/

Generated by 🚫 dangerJS against 5994174

@atomiks atomiks marked this pull request as ready for review January 7, 2025 07:25
@atomiks atomiks merged commit e198c83 into mui:master Jan 8, 2025
23 checks passed
@atomiks atomiks deleted the fix/NumberField-quick-touch branch January 8, 2025 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: number field This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[NumberField] Decrement/Increment buttons working inconsistently on Android device
3 participants