Skip to content

DragEndEvent

DragEndEvent #

Bases: Event[EventControlType]

control #

control: EventControlType = field(repr=False)

data #

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

global_position #

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

The global position the pointer is located at when the drag gesture has been completed.

local_position #

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

The local position in the coordinate system of the event receiver when the drag gesture has been completed.

name #

name: str

page #

page: Page | PageView | None

primary_velocity #

primary_velocity: float | None = field(
    default=None, metadata={"data_field": "pv"}
)

The velocity the pointer was moving along the primary axis when it stopped contacting the screen, in logical pixels per second.

target #

target: int

velocity #

velocity: Offset = field(metadata={'data_field': 'v'})

The velocity vector the pointer was moving when it stopped contacting the screen, in logical pixels per second.