Skip to content

DragUpdateEvent

DragUpdateEvent #

Bases: Event[EventControlType]

control #

control: EventControlType = field(repr=False)

data #

data: Any | None = field(default=None, kw_only=True)

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.

name #

name: str

page #

page: Page | PageView | None

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.

target #

target: int

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.