Re: [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)

-- 
GitHub Notification of comment by zcorpan
Please view or discuss this issue at https://github.com/w3c/touch-events/issues/64#issuecomment-1092884563 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 8 April 2022 13:53:55 UTC