Touch events completely disabled on windows 10 laptop
Categories
(Core :: DOM: Events, defect)
Tracking
()
People
(Reporter: nikle, Unassigned)
Details
(Keywords: regression, regressionwindow-wanted)
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0
Steps to reproduce:
Using windows Lamina t-1012b.nord (Windows 10) and Firefox 69.
- Trying to detect if the Browser/Device supports touchevents using one of the following methods with JavaScript:
'ontouchstart' in window
document.createEvent('TouchEvent')
Actual results:
'ontouchstart' in window returns false
document.createEvent('TouchEvent') throws an NotSupportedError: Operation is not supported
Expected results:
'ontouchstart' in window returns true
document.createEvent('TouchEvent') works
Tested on versions:
53 - Everything worked out of the box.
54 - 56 Need to set dom.w3c_touch_events.enabled to 1, then everything works.
63 - 66 Works out of the box again.
67 - Not working even with dom.w3c_touch_events.enabled set to 1
69 - Still not working (same as 67)
Comment 2•6 years ago
|
||
Thank you for the report. Could you please attach the full testcase you are using for this bug? Also, it would be helpful if you could help investigate this a bit more by narrowing a regression window. To do so, you can use mozregression (https://mozilla.github.io/mozregression/) - tl;dr : install it, then provide the command line:
mozregression --good 66 --bad 67
This seems like a regression, hence marking it as one until further investigation.
Comment 3•6 years ago
|
||
Updated the OS by mistake, updating to Windows 10; also, let's triage this to panning and zooming, since that would make sense for the time being.
![]() |
||
Comment 4•6 years ago
|
||
FWIW, 'ontouchstart' in window returns true on Nightly71.0a1 Windows10 if set dom.w3c_touch_events.enabled = 1 and dom.w3c_touch_events.legacy_apis.enabled = true.
Comment 5•6 years ago
|
||
This is intentional, see bug 1412485.
Hey again!
We just noticed that the detection we use now works in Firefox 74 (in Windows 10 on both laptop and desktop) and I'm wondering if it's intended?
I just wanted to check if the plans described in https://developer.mozilla.org/en-US/docs/Web/API/Touch_events is still true? That pointer events are to be preferred if we want to support touch and mouse across all types of devices.
Comment 7•5 years ago
|
||
Yes, pointer events are the one to support that case.
Description
•