Skip to main content

TapEvent

Payload for tap press/release events.

Inherits: Event

Properties

  • global_position - The global position at which the pointer contacted the screen.
  • kind - The kind of the device that initiated the event.
  • local_position - The local position at which the pointer contacted the screen.

Properties

global_positionclass-attributeinstance-attribute

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

The global position at which the pointer contacted the screen.

kindclass-attributeinstance-attribute

kind: PointerDeviceType | None = field(
    default=None, metadata={"data_field": "k"}
)

The kind of the device that initiated the event.

local_positionclass-attributeinstance-attribute

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

The local position at which the pointer contacted the screen.