This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
comfilepi:add_a_long-touch_right-click_context_menu [2023/04/19 18:07] COMFILE Technology [Configure Touchscreen Gestures] |
comfilepi:add_a_long-touch_right-click_context_menu [2023/04/19 20:17] (current) COMFILE Technology [Configure Touchscreen Gestures] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Configure Touchscreen Gestures ====== | ====== Configure Touchscreen Gestures ====== | ||
- | The following configurations require the evdev. If it is not already installed, install it with ''sudo apt install xserver-xorg-input-evdev''. For more information about the evdev options and their syntax please see the [[https://linux.die.net/man/4/evdev|evdev manpage]] and the [[https://www.x.org/releases/current/doc/man/man5/xorg.conf.5.xhtml#heading9.|InputClass configuration options]]. | + | The following configurations require the evdev. If it is not already installed, install it with ''sudo apt install xserver-xorg-input-evdev''. For more information about the evdev options and their syntax please see the [[https://manpages.debian.org/stable/xserver-xorg-input-evdev/evdev.4.en.html|evdev manpage]] and the [[https://www.x.org/releases/current/doc/man/man5/xorg.conf.5.xhtml#heading9|InputClass configuration options]]. |
Line 27: | Line 27: | ||
The following procedure will configure X Windows so when you touch and drag your finger up and down the touchscreen it will scroll. | The following procedure will configure X Windows so when you touch and drag your finger up and down the touchscreen it will scroll. | ||
- | - Create the file ///etc/X11/xorg.conf.d/91-touch-gestures.conf// with the following contents:<code> | + | - Create the file ///etc/X11/xorg.conf.d/90-touch-gestures.conf// with the following contents:<code> |
Section "InputClass" | Section "InputClass" | ||
Identifier "touch gestures" | Identifier "touch gestures" | ||
Line 36: | Line 36: | ||
Option "EmulateWheelInertia" "10" | Option "EmulateWheelInertia" "10" | ||
Option "EmulateWheelTimeout" "200" | Option "EmulateWheelTimeout" "200" | ||
+ | Option "YAxisMapping" "4 5" | ||
EndSection | EndSection | ||
</code> | </code> | ||
Line 45: | Line 46: | ||
{{ :comfilepi:drag.mp4?600x338 |}} | {{ :comfilepi:drag.mp4?600x338 |}} | ||
<html><center><code>"EmulateWheelInertia" "100"</code></center></html> | <html><center><code>"EmulateWheelInertia" "100"</code></center></html> | ||
+ | |||
+ | Use <html><code>Option "YAxisMapping" "5 4"</code></html> to invert the scroll direction. |