Bugzilla – Bug 7395
Touch is not working on Firefox and Chrome
Last modified: 2019-10-21 14:45:32
You need to
before you can comment on or make changes to this bug.
Firefox has stopped showing the touch buttons when running on a Windows system
with touch support. Tested with Firefox 69 on our Windows 10 laptop.
It must have worked at some point as bug 6348 had issues with the keyboard
button with Firefox on Windows.
Also note bug 5882 which had the same issue but for Edge.
Check bug 6348 after fixing this as it can most likely be closed.
Firefox apparently had problems last time upstream changed the touch detection:
Might have been an issue for a long time.
Touch support completely disabled. Seems to be a bug in Firefox as older
versions work. Latest working is Firefox 66. Filed a bug upstream:
So upstream has gotten back to us with the fact that this is intentional.
Apparently they see a huge problem with sites assuming that touch means mobile
and make the site difficult to use on a desktop machine.
Their solution is to surrender the TouchEvent API to the mobile only domain,
and sites that want touch on desktop need to use the newer PointerEvent API. So
I guess we'll have to have a look at that. Most browsers support it (even IE!),
but unfortunately Safari only does in the latest version. So we probably need
to keep some backwards compatibility.
They also claim that Chrome and Edge will also follow this behaviour. Safari is
unknown, but touch on macOS doesn't seem to be a big thing anyway.
Upstream also claims that we can get the old behaviour back by setting:
dom.w3c_touch_events.enabled = 1
dom.w3c_touch_events.legacy_apis.enabled = true
(In reply to comment #4)
> They also claim that Chrome and Edge will also follow this behaviour. Safari is
> unknown, but touch on macOS doesn't seem to be a big thing anyway.
Chrome on Unix (touch) seems to follow this behavior now also.