Aller au contenu

scroll

Ce contenu n’est pas encore disponible dans votre langue.

Actions to add scrolling behavior, like custom scrolling or scroll into view.

See

Functions

horizontalScroll()

function horizontalScroll<Node>(...args): void | ActionReturn<undefined | object, Record<never, any>>

Adds horizontal scrolling to an element.

This action removes the needs to press ctrl or right to scroll horizontally.

Type Parameters

Node extends HTMLElement

Parameters

• …args: [Node, object]

Returns

void | ActionReturn<undefined | object, Record<never, any>>

svelte action

Defined in

tmp/commons/src/lib/actions/scroll.ts:22


scrollIntoView()

function scrollIntoView<Node>(...args): void | ActionReturn<undefined | boolean, Record<never, any>>

Scrolls into view an element.

Type Parameters

Node extends HTMLElement

Parameters

• …args: [Node, boolean]

Returns

void | ActionReturn<undefined | boolean, Record<never, any>>

Defined in

tmp/commons/src/lib/actions/scroll.ts:84