A Boolean value that indicates whether the user has changed the device inversion.
- macOS 10.7+
This property is set to
true if the direction is inverted; otherwise,
This property is valid for
NSEvent events. The user may choose to change the scrolling behavior such that it feels like they are moving the content instead of the scroll bar.
The direction of fluid swipes matches the direction of scrolling and as such for NSEventTypeSwipe events gestureAmount is inverted. However, for some uses of NSEventScrollWheel and NSEventTypeSwipe events, the behavior should not respect the user preference. This property allows you to determine when the event has been inverted and compensate by multiplying by
-1 if needed.