mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-10-24 22:59:51 -04:00
Paginator: add scroll amount option
This commit is contained in:
1 parent
9b366ad1c4
commit
44c5eca4e9
2 files changed
+16
-16
No files matched your search
@@ -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