Auto-scroll helper for hands-free reading mode.
- Source:
- scroller.js
Methods
-
<static> faster()
-
Increase auto-scroll speed.
- Source:
- scroller.js
Returns:
- Type
- number | boolean
-
<static> flip()
-
Flip rendered content horizontally.
- Source:
- scroller.js
-
<static> isRunning()
-
Return current running state.
- Source:
- scroller.js
Returns:
- Type
- boolean
-
<static> pause()
-
Pause auto-scrolling at current position.
- Source:
- scroller.js
-
<static> reset()
-
Reset auto-scroll speed from persisted value.
- Source:
- scroller.js
-
<static> reverse( [dir])
-
Reverse current scroll direction.
Parameters:
Name Type Argument Description dirnumber <optional>
Optional direction override.
- Source:
- scroller.js
-
<static> slower()
-
Decrease auto-scroll speed.
- Source:
- scroller.js
Returns:
- Type
- number | boolean
-
<static> speed( [spd])
-
Get or set auto-scroll speed.
Parameters:
Name Type Argument Description spdnumber <optional>
- Source:
- scroller.js
Returns:
- Type
- number
-
<static> start()
-
Start auto-scrolling.
- Source:
- scroller.js
Returns:
- Type
- boolean
-
<static> stop()
-
Stop auto-scrolling and restore wrapper layout.
- Source:
- scroller.js