Browse Source

Increase delay even more in Window::cursorLock() to ignore mouse delta on Mac.

tags/v2.6.5
Andrew Belt 9 months ago
parent
commit
43772d071d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/window/Window.cpp

+ 1
- 1
src/window/Window.cpp View File

@@ -640,7 +640,7 @@ void Window::cursorLock() {
// https://github.com/glfw/glfw/issues/2523
// Empirically, this seems to be up to 3-6 frames at 60 Hz but in fewer frames at lower framerates, so we use time units.
#if defined ARCH_MAC
internal->ignoreMouseDeltaUntil = internal->frameTime + 0.12;
internal->ignoreMouseDeltaUntil = internal->frameTime + 0.15;
#endif
}



Loading…
Cancel
Save