summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-09-18 20:54:42 +0200
committerLibravatar GitHub <noreply@github.com>2024-09-18 20:54:42 +0200
commit1cf284a850cf13591efbf6a28a98862aaa02ba08 (patch)
tree9c133d86ec3abbc75c3f6facfa114c1f48c9c9a4
parent035d4e37d5a1c818aa134b8c99b31d635a7b8996 (diff)
parent45992109ddea00b24484e68ac78ae4b55d2c6c22 (diff)
downloadiced-1cf284a850cf13591efbf6a28a98862aaa02ba08.tar.gz
iced-1cf284a850cf13591efbf6a28a98862aaa02ba08.tar.bz2
iced-1cf284a850cf13591efbf6a28a98862aaa02ba08.zip
Merge pull request #2583 from iced-rs/fix/scrolling-direction-with-trackpad
Fix scrolling direction with trackpad in `scrollable`
-rw-r--r--widget/src/scrollable.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/widget/src/scrollable.rs b/widget/src/scrollable.rs
index af6a3945..a5610166 100644
--- a/widget/src/scrollable.rs
+++ b/widget/src/scrollable.rs
@@ -751,7 +751,7 @@ where
// TODO: Configurable speed/friction (?)
-movement * 60.0
}
- mouse::ScrollDelta::Pixels { x, y } => Vector::new(x, y),
+ mouse::ScrollDelta::Pixels { x, y } => -Vector::new(x, y),
};
state.scroll(