Skip to content

ScaleStartEvent

ScaleStartEvent #

Bases: Event[EventControlType]

control #

control: EventControlType = field(repr=False)

data #

data: Any | None = field(default=None, kw_only=True)

global_focal_point #

global_focal_point: Offset = field(
    metadata={"data_field": "gfp"}
)

The initial focal point of the pointers in contact with the screen, in global coordinates.

local_focal_point #

local_focal_point: Offset = field(
    metadata={"data_field": "lfp"}
)

The initial focal point of the pointers in contact with the screen, in local coordinates.

name #

name: str

page #

page: Page | PageView | None

pointer_count #

pointer_count: int = field(metadata={'data_field': 'pc'})

The number of pointers being tracked by the gesture recognizer.

Typically this is the number of fingers being used to pan the control using the gesture recognizer.

target #

target: int

timestamp #

timestamp: Duration | None = field(
    default=None, metadata={"data_field": "ts"}
)

Recorded timestamp of the source pointer event that triggered the scale event.

Could be None if triggered from proxied events such as accessibility.