Browse Source

Merge branch 'v1' of github.com:VCVRack/Rack into v1

tags/v1.1.2
Andrew Belt 5 years ago
parent
commit
11518f9004
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/window.cpp

+ 4
- 0
src/window.cpp View File

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


Loading…
Cancel
Save