diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-04-20 12:36:54 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-04-25 02:00:18 -0700 |
| commit | 59a42249a4da4bda44fa08a2e6a460ac1bd2000f (patch) | |
| tree | 38032bc743852a156f69fc5cb5c3e6eabb32cb6f /src/layout/scrolling.rs | |
| parent | 74b016202b1989f400f536d3837c8e1259c42c33 (diff) | |
| download | niri-59a42249a4da4bda44fa08a2e6a460ac1bd2000f.tar.gz niri-59a42249a4da4bda44fa08a2e6a460ac1bd2000f.tar.bz2 niri-59a42249a4da4bda44fa08a2e6a460ac1bd2000f.zip | |
Remove cancellation from swipe gestures
It only worked for workspace switch, and even there it was more confusing than
helpful.
Diffstat (limited to 'src/layout/scrolling.rs')
| -rw-r--r-- | src/layout/scrolling.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/scrolling.rs b/src/layout/scrolling.rs index 87f6c7ba..c50a6bf7 100644 --- a/src/layout/scrolling.rs +++ b/src/layout/scrolling.rs @@ -2989,7 +2989,7 @@ impl<W: LayoutElement> ScrollingSpace<W> { gesture.current_view_offset = clamped_offset; } - pub fn view_offset_gesture_end(&mut self, _cancelled: bool, is_touchpad: Option<bool>) -> bool { + pub fn view_offset_gesture_end(&mut self, is_touchpad: Option<bool>) -> bool { let ViewOffset::Gesture(gesture) = &mut self.view_offset else { return false; }; @@ -3279,7 +3279,7 @@ impl<W: LayoutElement> ScrollingSpace<W> { return; } - self.view_offset_gesture_end(false, None); + self.view_offset_gesture_end(None); } pub fn interactive_resize_begin(&mut self, window: W::Id, edges: ResizeEdge) -> bool { |
