Skip to content

DragEndEvent

Inherits: Event[EventControlType]

Properties

  • global_position(Offset) –

    The global position the pointer is located at when the drag gesture

  • local_position(Offset) –

    The local position in the coordinate system of the event receiver

  • primary_velocity(float | None) –

    The velocity the pointer was moving along the primary axis when it stopped

  • velocity(Offset) –

    The velocity vector the pointer was moving when it stopped contacting the screen,

Properties#

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.

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.

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.