Skip to content

DragUpdateEvent

Inherits: Event[EventControlType]

Properties

  • global_delta(Offset | None) –

    The amount the pointer has moved in the global coordinate space

  • global_position(Offset) –

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

  • local_delta(Offset | None) –

    The amount the pointer has moved in the local coordinate space of the event receiver

  • local_position(Offset) –

    The local position in the coordinate system of the event receiver

  • primary_delta(float | None) –

    The amount the pointer has moved along the primary axis in the coordinate space

  • timestamp(Duration | None) –

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

Properties#

global_delta #

global_delta: Offset | None = 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_position #

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

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

local_delta #

local_delta: Offset | None = 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_position #

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_delta #

primary_delta: float | None = 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.

timestamp #

timestamp: Duration | None = 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.