summaryrefslogtreecommitdiffstats
path: root/widget/src/scrollable.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-03 05:45:51 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-03 05:45:51 +0100
commit0c0651de5b1722194d48c19cd645e747fb72ccb6 (patch)
tree09cd27c82871be6b252c4654addf5b11e85fe359 /widget/src/scrollable.rs
parent3029481b72a2ca975a9bb915e23c0461334ba54f (diff)
downloadiced-0c0651de5b1722194d48c19cd645e747fb72ccb6.tar.gz
iced-0c0651de5b1722194d48c19cd645e747fb72ccb6.tar.bz2
iced-0c0651de5b1722194d48c19cd645e747fb72ccb6.zip
Introduce `Levitating` variant for `mouse::Cursor`
Diffstat (limited to 'widget/src/scrollable.rs')
-rw-r--r--widget/src/scrollable.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/widget/src/scrollable.rs b/widget/src/scrollable.rs
index 312aee29..2dbe0479 100644
--- a/widget/src/scrollable.rs
+++ b/widget/src/scrollable.rs
@@ -563,7 +563,8 @@ where
Event::Mouse(mouse::Event::CursorMoved { .. })
| Event::Touch(touch::Event::FingerMoved { .. }) => {
if let Some(scrollbar) = scrollbars.y {
- let Some(cursor_position) = cursor.position()
+ let Some(cursor_position) =
+ cursor.land().position()
else {
return;
};
@@ -635,7 +636,8 @@ where
match event {
Event::Mouse(mouse::Event::CursorMoved { .. })
| Event::Touch(touch::Event::FingerMoved { .. }) => {
- let Some(cursor_position) = cursor.position() else {
+ let Some(cursor_position) = cursor.land().position()
+ else {
return;
};