Revert automatic horizontal scroll in scrollable
This commit is contained in:
parent
7a6d4d580e
commit
ed0ffb5963
1 changed files with 1 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue