Instance Property


A Boolean value that indicates whether the user has changed the device inversion.


@property(getter=isDirectionInvertedFromDevice, readonly) BOOL directionInvertedFromDevice;


This property is set to YES if the direction is inverted; otherwise, NO.

This property is valid for NSEventScrollWheel and NSEventTypeSwipe 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.

To accomplish this, deltaX and deltaY and scrollingDeltaX and scrollingDeltaY values are automatically inverted for NSEventScrollWheel events according to the user's preferences.

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.

See Also

Scroll Wheel and Flick Events


A Boolean value that indicates whether precise scrolling deltas are available.


The scroll wheel’s horizontal delta.


The scroll wheel’s vertical delta.


The momentum phase for a scroll or flick gesture.


The phase of a gesture event, such as a magnify, scroll, or pressure change.


Constants that represent the possible phases during an event phase.

- trackSwipeEventWithOptions:dampenAmountThresholdMin:max:usingHandler:

Allows tracking and user interface feedback of scroll wheel events.


Constants that specify swipe-tracking options.