From 8e59b386e37713673c0fbdc1e08d41ee84e682a6 Mon Sep 17 00:00:00 2001 From: jane400 <5940129-jane400@users.noreply.gitlab.com> Date: Sun, 2 Apr 2023 18:33:20 +0000 Subject: [PATCH] mobile-config-prefs.js: enable TouchEvents API for mobile detection (MR 29) --- src/mobile-config-prefs.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mobile-config-prefs.js b/src/mobile-config-prefs.js index b1a7b7c..b99398d 100644 --- a/src/mobile-config-prefs.js +++ b/src/mobile-config-prefs.js @@ -11,6 +11,10 @@ pref('dom.w3c.touch_events.enabled', true); pref('apz.allow_zooming', true); pref('apz.allow_double_tap_zooming', true); +// Enable legacy touch event APIs, as some websites use this to check for mobile compatibility +// and Firefox on Android behaves the same way +pref('dom.w3c_touch_events.legacy_apis.enabled', true); + // Save vertical space by hiding the titlebar pref('browser.tabs.inTitlebar', 1);