mirror of
https://github.com/glfw/glfw.git
synced 2024-11-29 15:44:35 +00:00
Discarded uninteresting scroll events.
This commit is contained in:
parent
c9163e56d1
commit
171db6d6cb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user