Instance Property

momentumPhase

The momentum phase for a scroll or flick gesture.

Declaration

var momentumPhase: NSEventPhase { get }

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.