mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 07:36:16 +00:00
Changed: #947 improved mouse wheel handling (thresholding)
This commit is contained in:
parent
ae239a6b94
commit
b9b1605120
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue