macOS expose scroll invertion in event
applied patch from #18358, thanks for the patch Andy
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user