Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gestures obey natural-scroll touchpad setting (#373)
Closes #371 Right now when I three-finger scroll in Wayland, moving my hand to the right makes the windows move to the right as if dragging the proverbial paper. As in, scrolling moves the content, not the view. In Gnome's mouse/trackpad settings, this is referred to as "Natural Scrolling". One can disable "Natural Scrolling" such that two-finger scrolling results in moving the view, not the content. This commit makes PaperWM respect the natural-scroll touchpad global setting. If unnatural scrolling is enabled in Gnome's global settings, then PaperWM will use unnatural scroll touchpad gestures, and vice versa. The scroll direction is encoded as either a 1 or -1 and checks the Gnome settings every Clutter.TouchpadGesturePhase.BEGIN. There could be an extension added to this to make this setting toggle-able separately from Gnome's global settings. There could be a separate setting that overrides the Gnome global setting. There could be people who prefer unnatural scrolling for their browser and such but natural scrolling for PaperWM.
- Loading branch information