The momentum phase for a scroll or flick gesture.
Language
- Swift
- Objective-C
SDK
- macOS 10.7+
Declaration
var momentumPhase: NSEventPhase { get }
Discussion
This property is valid for NSScroll 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 NSEvent for possible values.