diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 5d8c00d4..9e64b2d3 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -479,7 +479,11 @@ static int convertMacKeyCode(unsigned int macKeyCode) - (void)scrollWheel:(NSEvent *)event { - _glfwInputScroll(window, [event deltaX], [event deltaY]); + double deltaX = [event deltaX]; + double deltaY = [event deltaY]; + + if (fabs(deltaX) > 0.0 || fabs(deltaY) > 0.0) + _glfwInputScroll(window, deltaX, deltaY); } @end