-
Notifications
You must be signed in to change notification settings - Fork 22
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
Use click to not interfere with scroll #35
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when clicking on the link, it has a gray background on the link for a blink (too fast I can't capture the screen), that's pseudo-class.
I think you know what I'm saying.
Note : If we are going to implement this, https://phabricator.wikimedia.org/T257574, touch-enabled desktop (handling both mouse and touch event), we will need to change this So we either do it the right solution here or focus only on the mobile experience with |
This type of feedback is generally considered useful to indicate that the element was activated but in this case I don't know. I'll ask Sudhanshu. |
I'm not sure I agree with your assessment here for two reasons:
In which case specifically do you see it not working correctly? |
It's true, I can see the benefit now also for triggering popup in the pinch-zooming behaviour. In addition, it has 300ms delay between tap and click, https://developers.google.com/web/updates/2013/12/300ms-tap-delay-gone-away, but it's no longer the common case according to this, so we don't need to worry that.
That makes sense. If we do it, then adding more logic between click and mouseenter that shouldn't be difficult. |
yeah, this feedback isn't bad actually, similar to the close button of the popup. |
https://phabricator.wikimedia.org/T258263
On mobile, the
touchstart
,touchmove
andtouchend
events fire for every touch interactions (tap or scroll).The
click
event represent a single tap and does not fire during a scroll gesture.