Instance Property

momentumPhase

The momentum phase for a scroll or flick gesture.

Declaration

@property(readonly) NSEventPhase momentumPhase;

Discussion

This property is valid for NSScrollWheel events. With the Magic Mouse and some trackpads, the user can use a scroll wheel or flick gesture resulting in a stream of scroll events that dissipate over time.

The location of these scroll wheel events changes as the user moves the cursor. These events are attached to the view that is under the cursor when the flick occurs. A custom view can use this method to recognize these momentum scroll events and further route the event to the appropriate sub component.

See NSEventPhase for possible values.

See Also

Scroll Wheel and Flick Events

hasPreciseScrollingDeltas

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

scrollingDeltaX

The scroll wheel’s horizontal delta.

scrollingDeltaY

The scroll wheel’s vertical delta.

phase

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

NSEventPhase

Constants that represent the possible phases during an event phase.

- trackSwipeEventWithOptions:dampenAmountThresholdMin:max:usingHandler:

Allows tracking and user interface feedback of scroll wheel events.

NSEventSwipeTrackingOptions

Constants that specify swipe-tracking options.

directionInvertedFromDevice

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