question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable better touchscreen usage on linux

See original GitHub issue

Problem Description

Currently, firefoxpwa apps cannot scroll via touch, instead touch events default to selecting text on linux.

Proposed Solution

Enable an option (either via CLI or otherwise) for to set MOZ_USE_XINPUT2=1 on Linux

Additional Information

This also enables Pixel-perfect trackpad scrolling

Workaround

if you’re on Xorg:

echo export MOZ_USE_XINPUT2=1 | sudo tee /etc/profile.d/use-xinput2.sh

then restart computer.

Edit:

If you’re on Wayland:

echo export MOZ_ENABLE_WAYLAND=1 | sudo tee /etc/profile.d/use-moz-enable-wayland.sh

then restart computer

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
filips123commented, Dec 17, 2021

Currently firefoxpwa directly launches Firefox binary so it just uses its defaults, while normally /usr/bin/firefox is a shell script that sets MOZ_ENABLE_WAYLAND and some other environment variables.

I will add a way to specify environment variables that are set when launching Firefox via config (and probably also through extension).

1reaction
filips123commented, Sep 15, 2022

Activating Use Wayland should work fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Configure a Touchscreen on Linux
To install this extension click Tools > Add-ons and then click Get Add-ons. In the search bar of the new tab, enter “grab...
Read more >
Touchscreen - ArchWiki
Touchegg is a multitouch gesture program, only compatible with X, that runs as a user in the background, recognizes gestures, and translates ...
Read more >
Linux on a Touchscreen Is Better Than You Think - MakeUseOf
Want to install Linux on a touchscreen 2-in-1 laptop but not sure if that would work? Here's a detailed review of how Linux...
Read more >
Configure Touch Screen for Linux Operating System - YouTube
We map a touch screen controller to a touch screen connected to a linux computer. If we don't do this then touch will...
Read more >
How to Enable, Disable Keyboard, Mouse and Touch Devices ...
Xinput is a utility that gives you configuration options to control mouse, keyboard, touchpad, and touch screen devices in Linux (applicable ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found