Introduce Levitating variant for mouse::Cursor
This commit is contained in:
parent
3029481b72
commit
0c0651de5b
3 changed files with 45 additions and 21 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue