Closed Bug 1587760 Opened 6 years ago Closed 6 years ago

Touch events completely disabled on windows 10 laptop

Categories

(Core :: DOM: Events, defect)

69 Branch
Unspecified
Windows 10
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

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)

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.

Flags: needinfo?(nikle)
OS: Unspecified → Linux
Hardware: Unspecified → x86_64

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.

Component: Untriaged → Panning and Zooming
OS: Linux → Windows 10
Product: Firefox → Core
Hardware: x86_64 → Unspecified

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.

This is intentional, see bug 1412485.

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Component: Panning and Zooming → DOM: Events
Resolution: --- → WONTFIX

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.

Flags: needinfo?(nikle)

Yes, pointer events are the one to support that case.

Thank you for the fast answer!

You need to log in before you can comment on or make changes to this bug.