Structure

NSEvent.SwipeTrackingOptions

Constants that specify swipe-tracking options.

Declaration

struct SwipeTrackingOptions

Topics

Constants

static var lockDirection: NSEvent.SwipeTrackingOptions

Clamp gestureAmount to 0 if the user starts to swipe in the opposite direction than they started.

static var clampGestureAmount: NSEvent.SwipeTrackingOptions

Don't allow gestureAmount to go beyond +/-1.0

Relationships

Conforms To

See Also

Scroll Wheel and Flick Events

var hasPreciseScrollingDeltas: Bool

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

var scrollingDeltaX: CGFloat

The scroll wheel’s horizontal delta.

var scrollingDeltaY: CGFloat

The scroll wheel’s vertical delta.

var momentumPhase: NSEvent.Phase

The momentum phase for a scroll or flick gesture.

var phase: NSEvent.Phase

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

struct NSEvent.Phase

Constants that represent the possible phases during an event phase.

var isDirectionInvertedFromDevice: Bool

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