Changed: #947 improved mouse wheel handling (thresholding)
This commit is contained in:
parent
bc7fb5fbe9
commit
0169f5f1b8
1 changed files with 5 additions and 3 deletions
|
@ -920,9 +920,11 @@ void submitEvents(NLMISC::CEventServer& server,
|
||||||
/*
|
/*
|
||||||
TODO modifiers with mouse events
|
TODO modifiers with mouse events
|
||||||
*/
|
*/
|
||||||
server.postEvent(new NLMISC::CEventMouseWheel(
|
if(fabs(event.deltaY) > 0.1)
|
||||||
mouseX, mouseY, (NLMISC::TMouseButton)0 /* modifiers */,
|
server.postEvent(new NLMISC::CEventMouseWheel(
|
||||||
(event.deltaY > 0), eventEmitter));
|
mouseX, mouseY, (NLMISC::TMouseButton)0 /* modifiers */,
|
||||||
|
(event.deltaY > 0), eventEmitter));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case NSTabletPoint:break;
|
case NSTabletPoint:break;
|
||||||
|
|
Loading…
Reference in a new issue