From ed0ffb59634424bb58540bdfdc4994d6665028ea Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 1 Feb 2025 02:16:29 +0100 Subject: Revert automatic horizontal scroll in `scrollable` --- widget/src/scrollable.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'widget/src') diff --git a/widget/src/scrollable.rs b/widget/src/scrollable.rs index 966e4ac7..9ba8cdea 100644 --- a/widget/src/scrollable.rs +++ b/widget/src/scrollable.rs @@ -788,13 +788,7 @@ where (x, y) }; - let is_vertical = match self.direction { - Direction::Vertical(_) => true, - Direction::Horizontal(_) => false, - Direction::Both { .. } => !is_shift_pressed, - }; - - let movement = if is_vertical { + let movement = if !is_shift_pressed { Vector::new(x, y) } else { Vector::new(y, x) -- cgit