fix: send pointer motion event for pointer enter event

This commit is contained in:
Ashley Wulber 2025-04-29 13:56:51 -04:00
parent 19ff21d298
commit 6829724ac0
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -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()),