diff options
author | 2025-02-03 05:45:51 +0100 | |
---|---|---|
committer | 2025-02-03 05:45:51 +0100 | |
commit | 0c0651de5b1722194d48c19cd645e747fb72ccb6 (patch) | |
tree | 09cd27c82871be6b252c4654addf5b11e85fe359 /widget/src/scrollable.rs | |
parent | 3029481b72a2ca975a9bb915e23c0461334ba54f (diff) | |
download | iced-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.rs | 6 |
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; }; |