mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 20:28:49 -05: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