Instance Property

deltaY

The y-coordinate change for mouse-move, mouse-drag, and swipe events.

Declaration

@property(readonly) CGFloat deltaY;

Discussion

This property is only valid for scroll wheel, mouse-move, mouse-drag, and swipe events. For swipe events, a nonzero value represents a vertical swipe: -1 for swipe down and 1 for swipe up.

For scroll wheel events, use scrollingDeltaY instead.

See Also

Getting Scroll Wheel Event Information

deltaX

The x-coordinate change for mouse-move, mouse-drag, and swipe events.

deltaZ

The z-coordinate change for a scroll wheel, mouse-move, or mouse-drag event.