macOS expose scroll invertion in event

applied patch from #18358, thanks for the patch Andy
This commit is contained in:
Stefan Csomor
2019-03-12 12:22:41 +01:00
parent 593257ea05
commit f163578c94
5 changed files with 28 additions and 3 deletions

View File

@@ -708,9 +708,10 @@ void MyCanvas::OnMouseWheel( wxMouseEvent &event )
int x,y;
CalcUnscrolledPosition( pt.x, pt.y, &x, &y );
wxLogMessage( "Mouse wheel event at: %d %d, scrolled: %d %d\n"
"Rotation: %d, delta = %d",
"Rotation: %d, delta: %d, inverted: %d",
pt.x, pt.y, x, y,
event.GetWheelRotation(), event.GetWheelDelta() );
event.GetWheelRotation(), event.GetWheelDelta(),
event.IsWheelInverted() );
event.Skip();
}