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.
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, addedis_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.