Skip to main content

DragUpdateEvent

Incremental payload for drag progress updates.

Inherits: Event

Properties

  • global_delta - The amount the pointer has moved in the global coordinate space since the start of the drag.
  • global_position - The pointer's global position when it triggered this update.
  • local_delta - The amount the pointer has moved in the local coordinate space of the event receiver since the start of the drag.
  • local_position - The local position in the coordinate system of the event receiver at which the pointer contacted the screen.
  • primary_delta - The amount the pointer has moved along the primary axis in the coordinate space of the event receiver since the previous update.
  • timestamp - Recorded timestamp of the source pointer event that triggered the drag event.

Properties

global_deltaclass-attributeinstance-attribute

global_delta: Optional[Offset] = field(default=None, metadata={'data_field': 'gd'})

The amount the pointer has moved in the global coordinate space since the start of the drag.

global_positionclass-attributeinstance-attribute

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

The pointer's global position when it triggered this update.

local_deltaclass-attributeinstance-attribute

local_delta: Optional[Offset] = field(default=None, metadata={'data_field': 'ld'})

The amount the pointer has moved in the local coordinate space of the event receiver since the start of the drag.

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.

primary_deltaclass-attributeinstance-attribute

primary_delta: Optional[float] = field(default=None, metadata={'data_field': 'pd'})

The amount the pointer has moved along the primary axis in the coordinate space of the event receiver since the previous update.

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.