Revert automatic horizontal scroll in scrollable

This commit is contained in:
Héctor Ramón Jiménez 2025-02-01 02:16:29 +01:00
parent 7a6d4d580e
commit ed0ffb5963
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -788,13 +788,7 @@ where
(x, y) (x, y)
}; };
let is_vertical = match self.direction { let movement = if !is_shift_pressed {
Direction::Vertical(_) => true,
Direction::Horizontal(_) => false,
Direction::Both { .. } => !is_shift_pressed,
};
let movement = if is_vertical {
Vector::new(x, y) Vector::new(x, y)
} else { } else {
Vector::new(y, x) Vector::new(y, x)