New issue
Advanced search Search tips

Issue 900922 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

DevTools TouchEmulator should emulate pinch with a two-point touch sequence

Project Member Reported by wjmaclean@chromium.org, Nov 1

Issue description

Currently TouchEmulator emulates pinch sequences by detecting the shift key being pressed, and when it is converting GestureScrollBegin/Update/End into their GesturePinchBegin/Update/End counterparts.

While this creates 'working' pinches, they are unrealistic since the GestureProvider doesn't know about the pinches, and may do things that would never happen in a pinch event (e.g. send a GestureFlingStart, cf. https://bugs.chromium.org/p/chromium/issues/detail?id=900496).

It seems to me that it should be hard at the generation of an emulated TouchStart to notice if the shift key is pressed, and if it is, generate a touch sequence with two touch points that properly emulates the pinch event, and allows the GestureProvider to "do the right thing", i.e. generate gesture sequences that are realistic.
 
We explored this area a while ago, and it was hard to determine the position of a second touch point to make the pinch feel realistic to the end user. We didn't invest too much time though.
Ok, apparently one cup of coffee hasn't been enough yet this morning ;-)

s/would never happen in a pinch event/would never happen in a pinch sequence/
s/should be hard/shouldn't be hard/
Labels: Hotlist-GoodFirstBug
Yeah ... I wondered about that. The trick is to let it be determined by the anchor point I think, and make the second touch point be a mirror of the first one.
Owner: einbinder@chromium.org
Status: Assigned (was: Untriaged)
einbinder@, could you please take a look at this input simulation?

Sign in to add a comment