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

@@ -2795,6 +2795,22 @@ public:
*/
int GetWheelDelta() const;
/**
On Mac, has the user selected "Natural" scrolling in their System
Preferences? Currently false on all other OS's.
"Natural" scrolling means that content scrolling happens in the
opposite direction, and if you are indeed scrolling content then
you don't need to use this function because macOS has already
inverted the scroll direction.
But there can be special situations where you want the mouse wheel
action to work always in the same direction and in that case you
will need this function.
@since 3.1.3
*/
bool IsWheelInverted() const;
/**
Get wheel rotation, positive or negative indicates direction of rotation.