Skip to main content

LongPressEndEvent

End payload for a completed long-press gesture.

Inherits: Event

Properties

  • global_position - The global position at which the pointer lifted from the screen.
  • local_position - The local position at which the pointer contacted the screen.
  • velocity - The pointer's velocity when it stopped contacting the screen, in pixels per second.

Properties

global_positionclass-attributeinstance-attribute

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

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

local_positionclass-attributeinstance-attribute

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

The local position at which the pointer contacted the screen.

velocityclass-attributeinstance-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.