{"id":468,"date":"2025-11-23T20:39:22","date_gmt":"2025-11-24T02:39:22","guid":{"rendered":"https:\/\/tekweis.com\/?p=468"},"modified":"2025-11-24T08:36:17","modified_gmt":"2025-11-24T14:36:17","slug":"linux-firefox-touchscreen-support","status":"publish","type":"post","link":"https:\/\/tekweis.com\/index.php\/2025\/11\/23\/linux-firefox-touchscreen-support\/","title":{"rendered":"Linux Firefox touchscreen support"},"content":{"rendered":"\n<p>I updated my laptop to Ubuntu 25.10 which no longer has Xorg. Since I am not a fan of Wayland due to issues with some applications I use have with Wayland, I decided to install the <a href=\"https:\/\/mate-desktop.org\/\" data-type=\"link\" data-id=\"https:\/\/mate-desktop.org\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Mate<\/strong><\/a> desktop environment which has Xorg support. I then noticed that Firefox does not work well with touchscreens (No pinch and zoom and scrolling) unless you make a couple of adjustments. Below is what worked for me to resolve this issue.<\/p>\n\n\n\n<p>Open Firefox and go to <strong>about:config<\/strong>. Search for <strong>dom.w3c_touch_events.enabled<\/strong>. Set the value to <strong>1<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"950\" height=\"367\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2025\/11\/Touchscreen-firefox1.png\" alt=\"\" class=\"wp-image-469\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2025\/11\/Touchscreen-firefox1.png 950w, https:\/\/tekweis.com\/wp-content\/uploads\/2025\/11\/Touchscreen-firefox1-300x116.png 300w, https:\/\/tekweis.com\/wp-content\/uploads\/2025\/11\/Touchscreen-firefox1-768x297.png 768w, https:\/\/tekweis.com\/wp-content\/uploads\/2025\/11\/Touchscreen-firefox1-660x255.png 660w\" sizes=\"auto, (max-width: 950px) 100vw, 950px\" \/><\/figure>\n\n\n\n<p>Now open the file <strong>\/etc\/security\/pam_env.conf<\/strong> and add this line to the bottom of the file:<br><strong>MOZ_USE_XINPUT2 DEFAULT=1<\/strong><br>Save the file. Then reboot your computer. Touchscreen support such as pinch and zoom should now work just fine.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"862\" height=\"566\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2025\/11\/Touchscreen-firefox2.png\" alt=\"\" class=\"wp-image-470\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2025\/11\/Touchscreen-firefox2.png 862w, https:\/\/tekweis.com\/wp-content\/uploads\/2025\/11\/Touchscreen-firefox2-300x197.png 300w, https:\/\/tekweis.com\/wp-content\/uploads\/2025\/11\/Touchscreen-firefox2-768x504.png 768w, https:\/\/tekweis.com\/wp-content\/uploads\/2025\/11\/Touchscreen-firefox2-660x433.png 660w\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I updated my laptop to Ubuntu 25.10 which no longer has Xorg. Since I am not a fan of Wayland due to issues with some applications I use have with Wayland, I decided to install the Mate desktop environment which has Xorg support. I then noticed that Firefox does not work well with touchscreens (No\u2026 <span class=\"read-more\"><a href=\"https:\/\/tekweis.com\/index.php\/2025\/11\/23\/linux-firefox-touchscreen-support\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-468","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/comments?post=468"}],"version-history":[{"count":3,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/468\/revisions"}],"predecessor-version":[{"id":473,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/468\/revisions\/473"}],"wp:attachment":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/media?parent=468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/categories?post=468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/tags?post=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}