UmbraLuminosa / sickle_ui

A widget library built on top of bevy_ui.
Apache License 2.0
205 stars 24 forks source link

Add CursorGrab back with Windows-only run condition #34

Closed physgun closed 1 month ago

physgun commented 1 month ago

Objective

A previous PR addressing a macOS drag bug (#31) removed the CursorGrabMode-setting system. However, some sickle_ui Windows users would like that functionality to return.

Solution

Reverted removal of update_cursor_confinement_from_drag system, added is_windows_os run condition so it only runs when compiling on Windows.

Testing

Tested both examples on my personal macOS and windows machines to apparent success.