diff options
author | 2025-02-01 02:16:29 +0100 | |
---|---|---|
committer | 2025-02-01 02:16:29 +0100 | |
commit | ed0ffb59634424bb58540bdfdc4994d6665028ea (patch) | |
tree | d9cb9cdf2a2c59e9b0ca01f5760033c994df730d /widget | |
parent | 7a6d4d580e6fe08a9062cfe3a9f92087fc270ff7 (diff) | |
download | iced-ed0ffb59634424bb58540bdfdc4994d6665028ea.tar.gz iced-ed0ffb59634424bb58540bdfdc4994d6665028ea.tar.bz2 iced-ed0ffb59634424bb58540bdfdc4994d6665028ea.zip |
Revert automatic horizontal scroll in `scrollable`
Diffstat (limited to 'widget')
-rw-r--r-- | widget/src/scrollable.rs | 8 |
1 files changed, 1 insertions, 7 deletions
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) |