From 3e929cd97c84fbf49fc39f96fb568ddd6eea3459 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Wed, 6 Mar 2024 16:34:26 +0300 Subject: [PATCH] cursor movement fix --- src/window/Events.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/window/Events.cpp b/src/window/Events.cpp index eb0e399e..2b993ad0 100644 --- a/src/window/Events.cpp +++ b/src/window/Events.cpp @@ -54,6 +54,7 @@ bool Events::jclicked(int button) { } void Events::toggleCursor() { + cursor_drag = false; _cursor_locked = !_cursor_locked; Window::setCursorMode(_cursor_locked ? GLFW_CURSOR_DISABLED : GLFW_CURSOR_NORMAL); }