FREE TRIAL

|

☀
☾
struct

Gesture.OnDrag

Details of a drag event.

Implements

IGestureEvent
IEvent
Remarks

Gesture.OnDrag events will begin to fire when a drag distance threshold is surpassed while a pointer is pressed, Gesture.OnPress.
Once the drag interaction is initiated, a new Gesture.OnDrag event will fire each time the Interaction
intersects a different position on the Receiver's gesture plane. This process will continue to until either
the interaction is canceled, Gesture.OnCancel, or the pointer is released, Gesture.OnRelease.

Fields

DraggableAxes

The configured draggable axes of the Receiver.

PointerPositions

The start, previous, and current pointer positions, in world space, of this drag event.

RawPointerPositions

The start, previous, and current positions of the pointer, in the world space position in which they actually occured, of this drag event.

Properties

DragDeltaLocalSpace

The delta between PointerPositions.Previous and PointerPositions.Current values in local space.

DragDeltaWorldSpace

The delta between PointerPositions.Previous and PointerPositions.Current values in world space.

ID

A unique identifier associated with the event.

Interaction

The interaction update responsible for triggering the event. Either passed into or created by an Interaction method.

RawDeltaLocalSpace

The delta between PointerPositions.Previous and PointerPositions.Current in Receiver local space.

RawTranslationLocalSpace

The total translation from PointerPositions.Start to PointerPositions.Current in Receiver local space.

Receiver

The UIBlock from which the event was invoked.

Target

An ancestor of the Receiver (or the Receiver itself) holding information pertinent to the event handler.

☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC