Introduce Levitating variant for mouse::Cursor

This commit is contained in:
Héctor Ramón Jiménez 2025-02-03 05:45:51 +01:00
parent 3029481b72
commit 0c0651de5b
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 45 additions and 21 deletions

View file

@ -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;
};