Contact emails
Summary
Disable legacy touchevent APIs on desktop devices by default, including:
- ontouch* members on window, document, Element
- document.createTouch, document.createTouchList
- document.createEvent("TouchEvent")
Motivation
We currently have chrome://flags/#touch-events default to “Automatic”, which enable these TouchEvent APIs if we detect a touchscreen on chrome startup. However, some sites use these APIs as mobile/touch-only device detection. That causes some sites behave differently between non-touchscreen laptop and touchscreen laptop, see discussion in git.
We’d like to change touch-events flag default to “disable”, so the APIs mentioned above will be disable by default on desktop devices. When in mobile emulation mode in devtools these APIs will be enabled.
Interoperability and Compatibility Risk
The risk should be small. We only disable these APIs on desktop, mobile sites won’t be affected. Only desktop sites that rely on touch event without mouse/pointer events support will be affected (which likely already broken).
Edge has similar flag, which is “disabled” by default, these APIs are disabled by default too.
Firefox default to “Automatic”, similar to chrome’s current behavior: enable these APIs when detect a touch screen.
Alternative implementation suggestion for web developers
Sites wishing to do real cross-device TouchEvent feature detection should use if (window.TouchEvent).
Desktop sites can use PointerEvent APIs to support both touch and mouse.
Usage information from UseCounter
Don’t have a UseCounter.
OWP launch tracking bug
Entry on the feature dashboard
https://www.chromestatus.com/feature/4764225348042752
Requesting approval to remove too?
Yes
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGbAJuGiw4mmknus3crn2QjePizEZhdDKZUUiJsFieu5nENUvg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY_AVr89QbNw__j_KgsdObucPX%2BogXThHkF5oFN0-bgV%2BA%40mail.gmail.com.
Some questions.1. Will Gecko be willing to come along for the ride? Sounds like they currently match/almost match Chromium's behavior.
2. Am I correct that Edge already does the better behavior you want to change to in Chromium? Or is there more to do to match their behavior?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/5c0e4915-e74f-4c4c-9388-90a6c5a76693%40chromium.org.
Chris, WDYT?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY-4Fca9x3kNSncgY0QjgrGxN7bhdR8waikcWjZtENjVMw%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY_AVr89QbNw__j_KgsdObucPX%2BogXThHkF5oFN0-bgV%2BA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/5c0e4915-e74f-4c4c-9388-90a6c5a76693%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY-4Fca9x3kNSncgY0QjgrGxN7bhdR8waikcWjZtENjVMw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/75d7e82b-04aa-48fd-a8ee-ae834bb49ae0%40chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY_AVr89QbNw__j_KgsdObucPX%2BogXThHkF5oFN0-bgV%2BA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/5c0e4915-e74f-4c4c-9388-90a6c5a76693%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY-4Fca9x3kNSncgY0QjgrGxN7bhdR8waikcWjZtENjVMw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY_AVr89QbNw__j_KgsdObucPX%2BogXThHkF5oFN0-bgV%2BA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/5c0e4915-e74f-4c4c-9388-90a6c5a76693%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY-4Fca9x3kNSncgY0QjgrGxN7bhdR8waikcWjZtENjVMw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/75d7e82b-04aa-48fd-a8ee-ae834bb49ae0%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/bc0f8e63-1caa-4d98-aca3-14ca504b3c9e%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/op.zbf6mc1grbppqq%40cicero2.linkoping.osa.