Skip to content
Snippets Groups Projects

fix: let clients detect touch screen

Merged Imported Administrator requested to merge touch-device into master
@@ -315,6 +315,11 @@ function set_default_prefs() {
// makes a lot of sense to enable it unconditionally, as cameras usually
// only work with libcamera, not via plain v4l2.
defaultPref('media.webrtc.camera.allow-pipewire', true);
// Make navigator.maxTouchPoints return 1 for clients to determine this is a
// touch device. This is the same value used by Web Developer Tools ->
// Responsive Design Mode -> Enable touch simulation.
defaultPref('dom.maxtouchpoints.testing.value', 1);
}
function main() {
Loading