New issue
Advanced search Search tips

Issue 592082 link

Starred by 4 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Android: hovering stylus events arrive as WebMouseEvents, others as WebTouchEvent

Project Member Reported by mustaq@chromium.org, Mar 4 2016

Issue description

This is done at a lower level to support stylus hover events since touches can't hover:

https://code.google.com/p/chromium/codesearch#chromium/src/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java&l=1652

This means, hovering stylus and touching stylus appear differently at EventHandler level!

If we want a consistent pointerId, this has to be unified.

I recall Edge that changes pen pointerId with each touch. How would they support hovering pen?
 
 Issue 587550  is related to this---that one feels like an opposite problem at an even lower level.
In this case we have to have a way to understand that PlatformMouseEvent belongs to the same pen that comes as PlatformTouchEvent. Basically if the id of those events in pointerproperties for those different events are set the same we just automatically give it the same pointer id. If not we cannot give them the same id as they may belong to two different pens on the screen. Right? Although I'm not sure what is the underlying id for the pen events and whether it is set at all or not.
Also  Issue 591473  seems related.
Yes,  Issue 591473  covers only the pointerType part of it. This bug is about fixing the bigger issues on the Blink side. Id matching problem is one of them. There could be issues with suppressed touchmoves vs unsuppressed mousemoves. To me, this bugs and  Issue 587550  together look like a motivation to explore a non-TouchEvent path for mouse & pen events in Android.

Comment 5 by mustaq@chromium.org, Jun 29 2016

Labels: PointerEvent
Project Member

Comment 6 by sheriffbot@chromium.org, Jun 29 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 7 by bokan@chromium.org, Jun 29 2017

Cc: bokan@chromium.org
Mustaq, is this still relevant? Could you please re-triage?

Comment 8 by mustaq@chromium.org, Jun 29 2017

Status: Assigned (was: Untriaged)
Summary: Android: hovering stylus events arrive as WebMouseEvents, others as WebTouchEvent (was: Android: hovering stylus events arrive as PlatformMouseEvents, others as PlatformTouchEvent)
Platform events are now gone, but the same problem exists through WebInputEvents.  Assigning to myself.
mustaq@ we have the same situation on Windows. We do get the pen events as both mouseevents and touchevents but since their underlying is the same it doesn't cause any issue in Blink. Is this not the case on Android?
Labels: -Pri-2 Pri-3
Hmm, I thought events coming from two different paths can't share a common pointerId at the very least.  Any chance we expose a constant id (=1 as if "mouse") so the issue is partially hidden?  Or may be we even merge the event streams back with a common pointerId != 1?

It was never an issue in Android, I guess because hoverable pen is rare.

Sign in to add a comment