Skip to content

Tankōbon / lib/reader-navigation / directionalControls

Function: directionalControls() ​

directionalControls<T>(direction, forward, backward): DirectionalControls<T>

Defined in: lib/reader-navigation.ts:20

Binds advance and retreat to the actions that move one page forward (index + 1) or backward (index - 1), swapping them in right-to-left (manga) reading order.

Type Parameters ​

T ​

T

Parameters ​

direction ​

"ltr" | "rtl"

forward ​

T

backward ​

T

Returns ​

DirectionalControls<T>