Skip to main content

DragStartEvent

Start payload for recognized drag gestures.

Inherits: Event

Properties

  • global_position - The global position at which the pointer contacted the screen.
  • kind - The kind of the device that initiated the event.
  • local_position - The local position in the coordinate system of the event receiver at which the pointer contacted the screen.
  • timestamp - Recorded timestamp of the source pointer event that triggered the drag event.

Properties

global_positionclass-attributeinstance-attribute

global_position: Offset = field(metadata={'data_field': 'g'})

The global position at which the pointer contacted the screen.

Defaults to the origin if not specified in the constructor.

kindclass-attributeinstance-attribute

kind: PointerDeviceType = field(metadata={'data_field': 'k'})

The kind of the device that initiated the event.

local_positionclass-attributeinstance-attribute

local_position: Offset = field(metadata={'data_field': 'l'})

The local position in the coordinate system of the event receiver at which the pointer contacted the screen.

timestampclass-attributeinstance-attribute

timestamp: Optional[Duration] = field(default=None, metadata={'data_field': 'ts'})

Recorded timestamp of the source pointer event that triggered the drag event.

Could be None if triggered from proxied events such as accessibility.