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); }