Skip to content
Snippets Groups Projects
Unverified Commit 99a23989 authored by Seth Falco's avatar Seth Falco
Browse files

fix: let clients detect touch screen (MR 54)

parent 3fbea365
No related branches found
No related tags found
1 merge request!54fix: let clients detect touch screen
Pipeline #208125 passed
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment