diff options
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 6edc1e7..eb61ded 100644 --- a/src/main.rs +++ b/src/main.rs @@ -287,7 +287,7 @@ fn toggle_ui( } else { dear_imgui_context.enabled = true; window.cursor_visible = true; - window.cursor_grab_mode = WindowCursorGrabMode::None; + window.cursor_grab_mode = WindowCursorGrabMode::Confined; controllable_camera.control_enabled = false; } |
