Skip to main content

Type Alias: GtkEventControllerScrollProps

GtkEventControllerScrollProps = EventControllerBaseProps & object

Defined in: generated/jsx.ts:10259

Props for the GtkEventControllerScroll controller element.

Type Declaration

NameTypeDescriptionDefined in
flags?Gtk.EventControllerScrollFlagsThe flags affecting event controller behavior.generated/jsx.ts:10261
onDecelerate()?(velX, velY, self) => void | nullEmitted after scroll is finished if the %GTK_EVENT_CONTROLLER_SCROLL_KINETIC flag is set. vel_x and vel_y express the initial velocity that was imprinted by the scroll events. vel_x and vel_y are expressed in pixels/ms.generated/jsx.ts:10270
onScroll()?(dx, dy, self) => boolean | nullSignals that the widget should scroll by the amount specified by dx and dy. For the representation unit of the deltas, see EventControllerScroll.get_unit.generated/jsx.ts:10278
onScrollBegin()?(self) => void | nullSignals that a new scrolling operation has begun. It will only be emitted on devices capable of it.generated/jsx.ts:10284
onScrollEnd()?(self) => void | nullSignals that a scrolling operation has finished. It will only be emitted on devices capable of it.generated/jsx.ts:10290
ref?Ref<Gtk.EventControllerScroll>-generated/jsx.ts:10291