From 0169f5f1b8dae9083bf8b3ff72c5a6228781437e Mon Sep 17 00:00:00 2001 From: rti Date: Sun, 4 Jul 2010 19:49:34 +0200 Subject: [PATCH] Changed: #947 improved mouse wheel handling (thresholding) --- code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm b/code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm index 8f7ecf586..b3e54cd36 100644 --- a/code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm +++ b/code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm @@ -920,9 +920,11 @@ void submitEvents(NLMISC::CEventServer& server, /* TODO modifiers with mouse events */ - server.postEvent(new NLMISC::CEventMouseWheel( - mouseX, mouseY, (NLMISC::TMouseButton)0 /* modifiers */, - (event.deltaY > 0), eventEmitter)); + if(fabs(event.deltaY) > 0.1) + server.postEvent(new NLMISC::CEventMouseWheel( + mouseX, mouseY, (NLMISC::TMouseButton)0 /* modifiers */, + (event.deltaY > 0), eventEmitter)); + break; } case NSTabletPoint:break;