mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 03:26:40 +03:00
Scroll horizontal flex lists by whichever scroll delta dimension is greater
This commit is contained in:
parent
4ef69c8361
commit
26ccd70e77
@ -259,7 +259,7 @@ impl Element for Flex {
|
||||
if remaining_space < 0. {
|
||||
let mut delta = match axis {
|
||||
Axis::Horizontal => {
|
||||
if e.delta.x() != 0. {
|
||||
if e.delta.x().abs() >= e.delta.y().abs() {
|
||||
e.delta.x()
|
||||
} else {
|
||||
e.delta.y()
|
||||
|
Loading…
Reference in New Issue
Block a user