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