fix: send pointer motion event for pointer enter event
This commit is contained in:
parent
19ff21d298
commit
6829724ac0
1 changed files with 11 additions and 0 deletions
|
|
@ -380,6 +380,17 @@ impl SctkEvent {
|
|||
(variant.position.0, variant.position.1).into(),
|
||||
)
|
||||
}
|
||||
events.push((
|
||||
id,
|
||||
iced_runtime::core::Event::Mouse(
|
||||
mouse::Event::CursorMoved {
|
||||
position: Point::new(
|
||||
variant.position.0 as f32,
|
||||
variant.position.1 as f32,
|
||||
),
|
||||
},
|
||||
),
|
||||
));
|
||||
}
|
||||
PointerEventKind::Leave { .. } => events.push((
|
||||
surface_ids.get(&variant.surface.id()).map(|id| id.inner()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue