Skip to content

LongPressEndEvent

Inherits: Event[EventControlType]

Properties

Properties#

global_position class-attribute instance-attribute #

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

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

local_position class-attribute instance-attribute #

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

The local position at which the pointer contacted the screen.

velocity class-attribute instance-attribute #

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.