Skip to content

Tankōbon / lib/reader-navigation / disabledControls

Function: disabledControls() ​

disabledControls(direction, page, pageCount): object

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

Whether the physical left (isPrevDisabled) and right (isNextDisabled) click zones have nowhere to go: the first and last page swap sides in right-to-left order.

Parameters ​

direction ​

"ltr" | "rtl"

page ​

number

pageCount ​

number

Returns ​

object

isNextDisabled ​

isNextDisabled: boolean

isPrevDisabled ​

isPrevDisabled: boolean