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
Click event might need two taps on mobile browsers #14
Comments
Hi @jjozsi can you please provide any example where the event is not triggered? You can modify it in Your solution looks good BUT |
Hi, first, the ripple effect doesn't work on desktop and iOS Safari but I've tested the demo on Chrome on Android and indeed it's there.
Remaining styles:
|
What do you think about this update? https://github.com/bartholomej/material-scrolltop/tree/fix/mobile-click (Demo is also updated) As you can see, there is a hack with |
Awesome, thanks :) |
Hi there, |
I heavily modified the button markup and due to :hover styles the first tap on mobile did not trigger the click event on the button.
I suggest modifying the following line
_.btnElement.click(function() {
to
_.btnElement.on('mousedown touchstart',function() {
That would make the click event fire under any circumstances.
The text was updated successfully, but these errors were encountered: