Re: [w3c/touch-events] Specify what browsers do on non-touch devices (#64)

> I propose we mark the APIs historically used for mobile device detection as deprecated:
> 
> * ontouch* members on window, document, Element
> * document.createTouch, document.createTouchList (already deprecated)
> * document.createEvent("TouchEvent")  (not mentioned by the spec at all today)

The `document.createTouch` and `document.createTouchList` APIs are not supported in browsers (anymore?).

The other two bullet points is the complete list of features in Chromium that depend on the "legacy touch events" concept (`RuntimeEnabledFeatures::TouchEventFeatureDetectionEnabled` in Chromium), as far as I can tell. The list of event handlers is: `ontouchcancel`, `ontouchend`, `ontouchmove`, `ontouchstart`.

https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/dom/document.cc;l=5448
https://source.chromium.org/chromium/chromium/src/+/main:out/Debug/gen/third_party/blink/renderer/bindings/modules/v8/v8_document.cc;l=9830 (+similar for window and elements)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/touch-events/issues/64#issuecomment-1092884563
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/touch-events/issues/64/1092884563@github.com>

Received on Friday, 8 April 2022 13:54:17 UTC