mobile-config-prefs.js: enable TouchEvents API for mobile detection (MR 29)

This commit is contained in:
jane400 2023-04-02 18:33:20 +00:00 committed by Jane Rachinger
parent 02df05f8e9
commit 8e59b386e3
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -11,6 +11,10 @@ pref('dom.w3c.touch_events.enabled', true);
pref('apz.allow_zooming', true); pref('apz.allow_zooming', true);
pref('apz.allow_double_tap_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 // Save vertical space by hiding the titlebar
pref('browser.tabs.inTitlebar', 1); pref('browser.tabs.inTitlebar', 1);