Browse Source

Disable middle-click triggering HoverScroll event.

tags/v1.0.0
Andrew Belt 6 years ago
parent
commit
7ba1ddafb6
1 changed files with 0 additions and 5 deletions
  1. +0
    -5
      src/window.cpp

+ 0
- 5
src/window.cpp View File

@@ -132,11 +132,6 @@ static void cursorPosCallback(GLFWwindow *win, double xpos, double ypos) {
window->mousePos = mousePos;

APP->event->handleHover(mousePos, mouseDelta);

// Scroll if middle button is held
if (glfwGetMouseButton(win, GLFW_MOUSE_BUTTON_MIDDLE)) {
APP->event->handleScroll(mousePos, mouseDelta);
}
}

static void cursorEnterCallback(GLFWwindow *win, int entered) {


Loading…
Cancel
Save