-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Touch ripples are triggered 2 times #1563
Comments
Might be connected to zilverline/react-tap-event-plugin#14 |
Second this.
Edit: I needed to use onTouchTap, not onClick - solves the 300ms delay on mobile (event fires on first ripple not second), and also stops events getting dropped on desktop. Still seeing the double ripple on iOS though per @majodev's originally reported issue. |
It seems |
Any update on this? |
I'm currently "preventing" it by refusing the |
Ah, yeah this seems to work. Thanks! |
Same issue +1 And still double rippled in Chrome 45.0.2454.89, IOS 9. |
Not just iOS - also seeing this on Android in Chrome and Cordova/crosswalk. |
I have the same result using the touch device emulator of Chrome. I think that we are listening to two different events, those two events fire on a touch device and only one fire on a desktop. |
@ka2n pointed to the cause in an earlier comment. |
\o/ Can someone mark this issue as fixed in that case? |
Bumps [@material-ui/icons](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui-icons) from 3.0.2 to 4.9.1. - [Release notes](https://github.com/mui-org/material-ui/releases) - [Changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG.md) - [Commits](https://github.com/mui-org/material-ui/commits/v4.9.1/packages/material-ui-icons) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Looks like touches trigger 2 touch ripple animations: instantly and then with a 300ms delay again. Easily reproducible by visiting the documentation page with an iOS device: http://material-ui.com/#/components/buttons
I'm not sure if Android devices are also affected. Any available workaround for this?
The text was updated successfully, but these errors were encountered: