From 09b5bfe2aedf126603df77712c1ee445ab1ae4f5 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 3 Jul 2019 14:19:30 -0700 Subject: [PATCH] Decrease scroll speed on Mac for all mice. --- src/window.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/window.cpp b/src/window.cpp index 7409d29c..01bd0e36 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -153,7 +153,11 @@ static void cursorEnterCallback(GLFWwindow *win, int entered) { static void scrollCallback(GLFWwindow *win, double x, double y) { Window *window = (Window*) glfwGetWindowUserPointer(win); math::Vec scrollDelta = math::Vec(x, y); +#if defined ARCH_MAC + scrollDelta = scrollDelta.mult(10.0); +#else scrollDelta = scrollDelta.mult(50.0); +#endif APP->event->handleScroll(window->mousePos, scrollDelta); }