Firefox touch screen linux

One finger scrolling (touchscreen) in Firefox

I try to enable one finger scrolling in firefox ( it’s more comfortable to scroll like that with a touchscreen). The default fedora version of firefox and chromium work like that. I tried to launch firefox with the option MOZ_USE_XINPUT2=1 but it doesn’t work.. Can you help me ??

It would help a little if you explain how you are trying to use MOZ_USE_XINPUT2=1 , as in where did you place this command?

3 Answers 3

I had similar issues with the HP Pavilion x360. I found that MOZ_USE_XINPUT2=1 only works in Wayland, not Xorg. Furthermore, to make it a permanent solution I needed to follow these steps:

  1. open about:config in firefox to set dom.w3c_touch_events.enabled=1 (default is 2).
  2. edit /etc/security/pam_env.conf and add MOZ_USE_XINPUT2 DEFAULT=1
  3. reboot and restart firefox

I just might have the solution for you.

I was facing the exact same issue with Firefox where I could only scroll with two-fingers and single finger selected text.

After a lot of searching I found this Gentoo Wacom page mentioning that the Wacom driver has gesture emulation that causes a problem with Firefox and my Thinkpad X1 Yoga has a Wacom touchscreen.

The fix is to turn off the Wacom gesture setting by creating the following file:

/etc/X11/xorg.conf.d/50-wacom.conf 
Section "InputClass" Identifier "Wacom class" MatchProduct "Wacom|WACOM|Hanwang|PTK-540WL|ISDv4|ISD-V4|ISDV4" MatchDevicePath "/dev/input/event*" Driver "wacom" Option "Gesture" "off" EndSection 

Any idea if this can be tweaked to work for the stylus as well — it’s still selecting text instead of scrolling?

So a bit of searching didn’t turn up anything using wacom driver but found mention of [easystroke]github.com/thjaeger/easystroke/wiki) to map pen button to enable scrolling in browser etc. Source: sandeel.github.io/wacom-tablet-scrolling-in-linux.html

found a solution based on the wacom config file Cas mentioned, whose solution ultimately didnt work for me on my yoga 7. however, based on this i found, in the KDE system control panel, under input devices the section graphic tablets. there is a register card touch with a checkbox enable gestures which is activated by default. after disabling it, gestures worked again in firefox. seems they enabled it from 21.10 to 22.04. and yes, as also mentioned by Cas, when this checkbox remains enabled, i have to scroll with two fingers in firefox. i didnt know that.

[checkbox][1] [1]: https://i.stack.imgur.com/9fpTP.png

You must log in to answer this question.

Linked

Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Читайте также:  Linux как войти суперпользователем

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.14.43533

Ubuntu and the circle of friends logo are trade marks of Canonical Limited and are used under licence.

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

How to make touch-screen scrolling work in Firefox Quantum?

Using Firefox quantum 57 and Ubuntu 17.10, I am unable to scroll a web page by touching the screen and sliding the page. However this works in Chrome browser. How to make touch-screen scrolling work in Firefox Quantum?

1 Answer 1

The same solution for Firefox 50 and Ubuntu 16.xx still works for Firefox Quantum 57 and Ubuntu 17.10: Ubuntu 16 and touchscreen scrolling in FireFox

The solution is to launch firefox using:

env MOZ_USE_XINPUT2=1 firefox 

You can make this permanent by modifying the launcher using the following:

sudo sed -i "s|Exec=|Exec=env MOZ_USE_XINPUT2=1 |g" /usr/share/applications/firefox.desktop 
sudo sed -i "s|Exec=env MOZ_USE_XINPUT2=1 |Exec=|g" /usr/share/applications/firefox.desktop 

EDIT: Per @poomerang’s comment below, if you are using the Snap version of Firefox, the path in the above commands should be /var/lib/snapd/desktop/applications/firefox_firefox.desktop

Comparing touch scrolling in Firefox Quantum, using this solution. with touch scrolling in Chrome:

  • Scrolling is one finger only; two finger scrolling causes the web page to zoom. This is different from Chrome, where you can scroll using two fingers, but still pinch to zoom or un-zoom.
  • You can only scroll vertically or horizontally, depending on which direction your initial motion is in; this is different from Chrome, where you can scroll horizontally or vertically (or in circles) without lifting your finger(s).

YOU ARE A GOD PJ. I’ve been searching for how to do that for 2 months now and using half baked extensions for touch dragging that really didn’t work that well. Funny thing is that I came across this answer while searching for something completely different. Thanks!

After a bit of testing, it seems to be too unstable to be usable, probably why it’s still off by default. It works great at first but as soon as you long click to select text, it makes a context menu popup and things turn really buggy after that. Ah well. Probably a work in progress.

@thebunnyrules I think I’m having the same problem as you, check out bugzilla.mozilla.org/show_bug.cgi?id=1451587 if you have the chance.

Ok so, when you extract the source, find: /gfx/thebes/gfxPrefs.h . Open that file and look for ui.click_hold_context_menus.delay ( the full line is DECL_GFX_PREF(Live, «ui.click_hold_context_menus.delay», UiClickHoldContextMenusDelay, int32_t, 500); ) You want to change that 500 at the very end to 9999 (that’s 500ms of delay to 10 second). That’s it. You won’t have a context menu anymore but at least touch will be stable in X11. Once you get touch working, I’d really recommend the Tablet Gestures addon, it puts ff on parity with chrome for touch at that point.

Читайте также:  Изменить все права файлов linux

This still works for Ubuntu 22.04, BUT: the file to modify is no longer /usr/share/applications/firefox.desktop (doesn’t do anything), but /var/lib/snapd/desktop/applications/firefox_firefox.desktop . Apparently

Источник

Как сделать прокрутку сенсорного экрана в Firefox Quantum?

Используя Firefox quant 57 и Ubuntu 17.10, я не могу прокручивать веб-страницу, касаясь экрана и перемещая страницу. Однако это работает в браузере Chrome.

Как сделать прокрутку сенсорного экрана в Firefox Quantum?

3 ответа

То же самое решение для Firefox 50 и Ubuntu 16.xx по-прежнему работает для Firefox Quantum 57 и Ubuntu 17.10: Ubuntu 16 и прокрутка сенсорного экрана в FireFox

Решение состоит в том, чтобы запустить firefox, используя:

env MOZ_USE_XINPUT2=1 firefox 

Вы можете сделать это постоянным, изменив пусковую установку, используя следующее:

sudo sed -i "s|Exec=|Exec=env MOZ_USE_XINPUT2=1 |g" /usr/share/applications/firefox.desktop 

Чтобы отменить это изменение, используйте:

sudo sed -i "s|Exec=env MOZ_USE_XINPUT2=1 |Exec=|g" /usr/share/applications/firefox.desktop 

Сравнение прокрутки прокрутки в Firefox Quantum, используя это решение. с сенсорной прокруткой в ​​Chrome:

Прокрутка — только один палец; прокрутка двумя пальцами приводит к увеличению масштаба веб-страницы. Это отличается от Chrome, где вы можете прокручивать, используя два пальца, но все же щепотку для увеличения или уменьшения масштаба. Вы можете прокручивать только по вертикали или по горизонтали, в зависимости от того, в каком направлении находится ваше начальное движение; это отличается от Chrome, где вы можете прокручивать по горизонтали или по вертикали (или в кругах), не поднимая палец (и).

ВЫ БОЖЬЕ PJ . Я искал, как это сделать в течение 2 месяцев, и использование полупродуманных расширений для перетаскивания касания, которые действительно не так хорошо работают. Смешно, что я наткнулся на этот ответ, ища что-то совершенно другое . Спасибо! – thebunnyrules 23 January 2018 в 02:45

После небольшого тестирования это кажется слишком неустойчивым, чтобы его можно было использовать, вероятно, почему он по-прежнему отключен по умолчанию. Сначала он работает отлично, но как только вы долго нажимаете, чтобы выбрать текст, он вызывает всплывающее контекстное меню, и после этого все становится чересчур багги. Ах хорошо. Вероятно, работа продолжается. – thebunnyrules 23 January 2018 в 03:25

@ thebunnyrules Я думаю, что у меня такая же проблема, как и вы, посмотрите bugzilla.mozilla.org/show_bug.cgi?id=1451587 , если у вас есть такая возможность. – blendmaster 5 April 2018 в 04:12

Читайте также:  Alt linux rdp server

@blendmaster Когда я использую FF wayland, неустойчивость уходит. Всплывающее меню по-прежнему сталкивается с каретой, но вместо длительного нажатия можно использовать двойной кран, чтобы вызвать его. Для X11 я просто отключил длительное нажатие для контекстного меню в качестве временного решения. Я могу рассказать вам, как это сделать, если вы знаете, как скомпилировать ff. – thebunnyrules 10 April 2018 в 02:43

Спасибо за подробности @ thebunnyrules. Если вы можете опубликовать патч для отключения долгого нажатия, это будет полезно. Возможно, вы сможете добавить и отладочную информацию для этой проблемы. – blendmaster 14 April 2018 в 21:56

То же самое решение для Firefox 50 и Ubuntu 16.xx по-прежнему работает для Firefox Quantum 57 и Ubuntu 17.10: Ubuntu 16 и прокрутка сенсорного экрана в FireFox

Решение состоит в том, чтобы запустить firefox, используя:

env MOZ_USE_XINPUT2=1 firefox

Вы можете сделать это постоянным, изменив пусковую установку, используя следующее:

sudo sed -i «s|Exec=|Exec=env MOZ_USE_XINPUT2=1 |g» /usr/share/applications/firefox.desktop

Чтобы отменить это изменение, используйте:

sudo sed -i «s|Exec=env MOZ_USE_XINPUT2=1 |Exec=|g» /usr/share/applications/firefox.desktop

Сравнение прокрутки прокрутки в Firefox Quantum, используя это решение. с сенсорной прокруткой в ​​Chrome:

Прокрутка — только один палец; прокрутка двумя пальцами приводит к увеличению масштаба веб-страницы. Это отличается от Chrome, где вы можете прокручивать, используя два пальца, но все же щепотку для увеличения или уменьшения масштаба. Вы можете прокручивать только по вертикали или по горизонтали, в зависимости от того, в каком направлении находится ваше начальное движение; это отличается от Chrome, где вы можете прокручивать по горизонтали или по вертикали (или в кругах), не поднимая палец (и).

То же самое решение для Firefox 50 и Ubuntu 16.xx по-прежнему работает для Firefox Quantum 57 и Ubuntu 17.10: Ubuntu 16 и прокрутка сенсорного экрана в FireFox

Решение состоит в том, чтобы запустить firefox, используя:

env MOZ_USE_XINPUT2=1 firefox

Вы можете сделать это постоянным, изменив пусковую установку, используя следующее:

sudo sed -i «s|Exec=|Exec=env MOZ_USE_XINPUT2=1 |g» /usr/share/applications/firefox.desktop

Чтобы отменить это изменение, используйте:

sudo sed -i «s|Exec=env MOZ_USE_XINPUT2=1 |Exec=|g» /usr/share/applications/firefox.desktop

Сравнение прокрутки прокрутки в Firefox Quantum, используя это решение. с сенсорной прокруткой в ​​Chrome:

Прокрутка — только один палец; прокрутка двумя пальцами приводит к увеличению масштаба веб-страницы. Это отличается от Chrome, где вы можете прокручивать, используя два пальца, но все же щепотку для увеличения или уменьшения масштаба. Вы можете прокручивать только по вертикали или по горизонтали, в зависимости от того, в каком направлении находится ваше начальное движение; это отличается от Chrome, где вы можете прокручивать по горизонтали или по вертикали (или в кругах), не поднимая палец (и).

Источник

Оцените статью
Adblock
detector