Skip to content

Commit c722334

Browse files
authored
SwipeTrigger: trigger only on scroll events on touchpad (#2771)
Fixes #2767 ToucheggBackend sends pinch events and SwipeTrigger doesn't filter them.
1 parent dcd2ff8 commit c722334

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

data/gala.metainfo.xml.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@
2727
<update_contact>contact_at_elementary.io</update_contact>
2828

2929
<releases>
30+
<release version="8.4.2" date="2026-02-116" urgency="medium">
31+
<description>
32+
<p>Improvements:</p>
33+
<ul>
34+
<li>Updated translations</li>
35+
</ul>
36+
</description>
37+
<issues>
38+
<issue url="https://github.com/elementary/gala/issues/2767">Pinch gestures are switching between workspaces instead of zooming</issue>
39+
</issues>
40+
</release>
41+
3042
<release version="8.4.1" date="2026-02-10" urgency="medium">
3143
<description>
3244
<p>Improvements:</p>

lib/Gestures/SwipeTrigger.vala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public class Gala.SwipeTrigger : Object, GestureTrigger {
2020

2121
internal bool triggers (Gesture gesture) {
2222
return (
23-
gesture.fingers == 1 && gesture.performed_on_device_type == TOUCHSCREEN_DEVICE ||
24-
gesture.fingers == 2 && gesture.performed_on_device_type == TOUCHPAD_DEVICE
23+
gesture.fingers == 1 && gesture.performed_on_device_type == TOUCHSCREEN_DEVICE && gesture.type == TOUCHPAD_SWIPE ||
24+
gesture.fingers == 2 && gesture.performed_on_device_type == TOUCHPAD_DEVICE && gesture.type == SCROLL
2525
);
2626
}
2727

0 commit comments

Comments
 (0)