From 59a42249a4da4bda44fa08a2e6a460ac1bd2000f Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sun, 20 Apr 2025 12:36:54 +0300 Subject: Remove cancellation from swipe gestures It only worked for workspace switch, and even there it was more confusing than helpful. --- src/layout/scrolling.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/layout/scrolling.rs') 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 ScrollingSpace { gesture.current_view_offset = clamped_offset; } - pub fn view_offset_gesture_end(&mut self, _cancelled: bool, is_touchpad: Option) -> bool { + pub fn view_offset_gesture_end(&mut self, is_touchpad: Option) -> bool { let ViewOffset::Gesture(gesture) = &mut self.view_offset else { return false; }; @@ -3279,7 +3279,7 @@ impl ScrollingSpace { 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 { -- cgit