mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
a94830f0c9
# Objective - Fixes #7294 ## Solution - Do not trigger change detection when setting the cursor position from winit When moving the cursor continuously, Winit sends events: - CursorMoved(0) - CursorMoved(1) - => start of Bevy schedule execution - CursorMoved(2) - CursorMoved(3) - <= End of Bevy schedule execution if Bevy schedule runs after the event 1, events 2 and 3 would happen during the execution but would be read only on the next system run. During the execution, the system would detect a change on cursor position, and send back an order to winit to move it back to 1, so event 2 and 3 would be ignored. By bypassing change detection when setting the cursor from winit event, it doesn't trigger sending back that change to winit out of order. |
||
---|---|---|
.. | ||
camera_controller_plugin.rs | ||
main.rs | ||
mod.rs | ||
scene_viewer_plugin.rs |