How to always emulate touch events in Chrome Dev tools?

I just upgrade Chrome to v29.0.1547.57 and turn on "Emulate Touch Events" (DevTools → Overrides → Emulate Touch Events) is no longer saved when I exit the tabs. I am exclusively working on mobile development, and it will be a serious pain if I now have to manually enable touch emulation every time I open DevTools. I looked through all the documentation for extending the API and DevTools and found nothing. Does anyone know how I can always emulate touch events when DevTools is open?

[EDIT] This is not a problem in Chrome Canary (v31). It looks like it was fixed back in July. However, I had some other problems with the current Canary build, so I would still like to emulate touch events in the current stable build.

+4
source share
3 answers

You can start Chrome with --simulate-touch-screen-with-mouse , which has recently been renamed to --emulate-touch-events . How to use these command line flags

Unfortunately, at the moment, it is not possible to save the emulation of the touch event through reboots.

+3
source

chrome: // flags

search Enable touch events

+3
source

This is an old question, but since I found it on google and there is no answer, I would add it.

currently sets the --touch-devices flag on chrome start set in chrome to trigger touch events on devices.

Nb I am working on a touch screen using touch monitors and a packaged chrome app. Setting this flag in the startup configuration allows you to run touchstart , touchend , etc.

0
source

Source: https://habr.com/ru/post/1498264/


All Articles