velocity(in:)
The velocity of the pan, measured in points per second.
Declaration
func velocity(in view: NSView?) -> NSPointParameters
- view:
The view that provides the coordinate system for computing the velocity value. This parameter must not be
nil.
Return Value
The horizontal and vertical velocity of the pan gesture. These values are relative to the specified view.