-
Notifications
You must be signed in to change notification settings - Fork 27
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
Disable ripple effect on touch-drags #90
Comments
This is true in a scrollable container like the iron-list. The api provide mechanisms to solve the problem though.
Hope this help. |
In my opinion this is quite a serious issue, the ripples look quite silly on our buttons, navigation tabs etc. I don't like to build workaround like the above everywhere. What are the plans regarding this? |
+1 Any plans? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
paper-ripple
currently animates onmousedown
, which means that on mobile devices, the ripple effect is playing when you drag a finger over the ripple-able container. When usingpaper-ripple
in anon-tap
context, such as when adding anon-tap
listener topaper-button
, the ripple may fire without firing theon-tap
event.During 'regular use' a user may attempt to tap on a button, but accidentally drag her/his finger slightly. In this case, the ripple will fire, but the on-tap event will not fire. This is highly confusing for the user, as the ripple indicates that element was activated.
Native implementations of ripple effects in material design apps (Google Maps, Inbox etc.) does not play on drag. Instead, they follow the pattern of Polymer's
on-tap
gesture handler, and wait for a small duration to verify that the intended input was an actual tap before playing. If the user drags on the element after the initial wait, the ripple effect is cancelled.Expected outcome
Dragging touch events should not play the ripple-effect. The implementation should follow that of Google Maps or Google Inbox. This option may be active by default or added by an element property.
Actual outcome
Dragging touch events activate the paper-ripple effect.
Live Demo
https://elements.polymer-project.org/elements/paper-ripple?view=demo:demo/index.html&active=paper-ripple
Steps to reproduce
paper-button
on-tap
event will notBrowsers Affected
– [X] Mobile Safari
– [X] Mobile Chrome
The text was updated successfully, but these errors were encountered: