mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
Set cursor hittest during window creation (#7966)
This commit is contained in:
parent
3cfcc66bdc
commit
84711e38b1
1 changed files with 6 additions and 0 deletions
|
@ -166,6 +166,12 @@ impl WinitWindows {
|
|||
}
|
||||
|
||||
winit_window.set_cursor_visible(window.cursor.visible);
|
||||
if let Err(err) = winit_window.set_cursor_hittest(window.cursor.hit_test) {
|
||||
warn!(
|
||||
"Could not set cursor hit test for window {:?}: {:?}",
|
||||
window.title, err
|
||||
);
|
||||
}
|
||||
|
||||
self.entity_to_winit.insert(entity, winit_window.id());
|
||||
self.winit_to_entity.insert(winit_window.id(), entity);
|
||||
|
|
Loading…
Reference in a new issue