Skip to content

OnScrollEvent

OnScrollEvent #

Bases: Event['ScrollableControl']

control #

control: EventControlType = field(repr=False)

data #

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

direction #

direction: ScrollDirection | None = None

event_type #

event_type: ScrollType

max_scroll_extent #

max_scroll_extent: float

min_scroll_extent #

min_scroll_extent: float

name #

name: str

overscroll #

overscroll: float | None = None

page #

page: Page | PageView | None

pixels #

pixels: float

scroll_delta #

scroll_delta: float | None = None

target #

target: int

velocity #

velocity: float | None = None

viewport_dimension #

viewport_dimension: float

get_event_field_type #

get_event_field_type(control: Any, field_name: str)