-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[1.0] [Gestures] Touch input focus
event occurs without corresponding down
, up
or tap
events
#1670
Comments
I have an inkling that synthesized mouse events will retarget to focusable nodes in Blink. @RByers, have some perspective on this notion? |
Circling back, this is our old friend fuzzy touch targeting! Mitigation strategies will have to involve manually re-adjusting focus. |
Relevant Chrome bug: https://code.google.com/p/chromium/issues/detail?id=417534 |
Sorry for the delay (just leaving on vacation now, clearing out backlog). One thing that may help here (for blink at least) is to check the In general there's no way to correlate the touch event target to the mouse event target (eg. the DOM could have changed between Also I'm surprised by the missing click case you mention. Whenever we detect a tap, we always fire /cc @dtapuska (for while I'm on vacation). |
Hello guys, any updates on this issue? I'm still have the same 'miss-tap' behavior in Polymer 1.5.0. |
+1 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed after being marked stale. If you're still facing this problem with the above solution, please comment and we'll reopen! |
For buttons, we use peripheral pointer input events (
up
anddown
) to determine if afocus
event came keyboard input or pointer input. However, sometimes the corresponding raw pointer input events (touchstart
andtouchend
) have a dissonanttarget
from their counterpart syntheticmousedown
andmouseup
events. Below is an example transcript from logging I have done while measuring these events. The first transcript demonstrates the expected events and their corresponding targets:And here is a second transcript for the condition where the Polymer input events are not received:
As you can see, in the second transcript, the target for
touchstart
andtouchend
is not the same as the target formousedown
andmouseup
. Also, in the second case,click
is never fired.For reproduction purposes, I produced these results in Chrome 43 with developer tools mobile device emulation enabled.
The text was updated successfully, but these errors were encountered: