bevy/examples/tools/scene_viewer
François a94830f0c9 break feedback loop when moving cursor (#7298)
# 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.
2023-01-21 00:01:28 +00:00
..
camera_controller_plugin.rs break feedback loop when moving cursor (#7298) 2023-01-21 00:01:28 +00:00
main.rs Windows as Entities (#5589) 2023-01-19 00:38:28 +00:00
mod.rs Organized scene_viewer into plugins for reuse and organization (#6936) 2022-12-25 00:23:13 +00:00
scene_viewer_plugin.rs Organized scene_viewer into plugins for reuse and organization (#6936) 2022-12-25 00:23:13 +00:00