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

@@ -1801,6 +1801,10 @@ public:
// should occur for each delta.
int GetWheelDelta() const { return m_wheelDelta; }
// On Mac, has the user selected "Natural" scrolling in their System
// Preferences? Currently false on all other OS's.
bool IsWheelInverted() const { return m_wheelInverted; }
// Gets the axis the wheel operation concerns; wxMOUSE_WHEEL_VERTICAL
// (most common case) or wxMOUSE_WHEEL_HORIZONTAL (for horizontal scrolling
// using e.g. a trackpad).
@@ -1834,6 +1838,7 @@ public:
wxMouseWheelAxis m_wheelAxis;
int m_wheelRotation;
int m_wheelDelta;
bool m_wheelInverted;
int m_linesPerAction;
int m_columnsPerAction;
float m_magnification;