The phase of a gesture event, such as a magnify, scroll, or pressure change.
- macOS 10.7+
A gesture phase corresponds to a fluid gesture event. As a gesture event occurs, its phase begins with
NSEvent and ends with either
NSEvent. All the gesture events are sent to the view under the cursor when the
Technically, a gesture scroll event starts with a
NSEvent phase and ends with a
NSEvent. However, when the user puts two fingers down on a trackpad, the trackpad issues
NSEvent, followed by
NSEvent event phase signals that scrolling is about to begin before the gesture has technically started. A Magic Mouse does not issue
NSEvent scroll wheel events.
A pressure event (type
NSEvent) is a fluid gesture. Like the other fluid gesture events, it has a phase that describes the sequence of the pressure gesture stream.
Legacy scroll wheel events (say from a Mighty Mouse) and momentum scroll wheel events both have a phase of
NSEvent. (Legacy scroll wheel events also have a
NSEvent.) To learn more about scroll wheel events, see Handling Trackpad Events.
NSEvent for possible values.