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

@@ -719,9 +719,10 @@ void wxWidgetCocoaImpl::SetupMouseEvent( wxMouseEvent &wxevent , NSEvent * nsEve
}
wxevent.m_wheelDelta = 10;
wxevent.m_wheelInverted = [nsEvent isDirectionInvertedFromDevice];
wxevent.m_linesPerAction = 1;
wxevent.m_columnsPerAction = 1;
if ( fabs(deltaX) > fabs(deltaY) )
{
// wx conventions for horizontal are inverted from vertical (originating from native msw behavior)