mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00:00
Merge pull request #1776 from zed-industries/tabbar-scroll
Scroll horizontal flex lists by whichever scroll delta dimension is g…
This commit is contained in:
commit
6f279c0239
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue