mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
Paginator: add scroll amount option
This commit is contained in:
@@ -335,12 +335,12 @@ export class View extends HTMLElement {
|
||||
console.error(`Could not get ${target}`)
|
||||
}
|
||||
}
|
||||
async prev() {
|
||||
await this.renderer.prev()
|
||||
async prev(distance) {
|
||||
await this.renderer.prev(distance)
|
||||
this.history.replaceState(this.lastLocation.cfi)
|
||||
}
|
||||
async next() {
|
||||
await this.renderer.next()
|
||||
async next(distance) {
|
||||
await this.renderer.next(distance)
|
||||
this.history.replaceState(this.lastLocation.cfi)
|
||||
}
|
||||
goLeft() {
|
||||
|
||||
Reference in New Issue
Block a user