DevTools TouchEmulator should emulate pinch with a two-point touch sequence |
|||
Issue descriptionCurrently 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.
,
Nov 1
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/
,
Nov 1
,
Nov 1
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.
,
Nov 2
einbinder@, could you please take a look at this input simulation? |
|||
►
Sign in to add a comment |
|||
Comment 1 by dgozman@chromium.org
, Nov 1