Skip to content

LongPressEndEvent

Inherits: Event[EventControlType]

Properties

  • global_position(Offset | None) –

    The global position at which the pointer lifted from the screen.

  • local_position(Offset | None) –

    The local position at which the pointer contacted the screen.

  • velocity(Offset) –

    The pointer's velocity when it stopped contacting the screen,

Properties#

global_position #

global_position: Offset | None = field(
    default=None, metadata={"data_field": "g"}
)

The global position at which the pointer lifted from the screen.

local_position #

local_position: Offset | None = field(
    default=None, metadata={"data_field": "l"}
)

The local position at which the pointer contacted the screen.

velocity #

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

The pointer's velocity when it stopped contacting the screen, in pixels per second.

Defaults to zero if not specified in the constructor.