mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Merge 5304cecbae
into f09089cf77
This commit is contained in:
commit
a916ec7a33
1 changed files with 3 additions and 4 deletions
|
@ -350,10 +350,9 @@ class DefaultViewManager {
|
|||
distX = this.container.scrollWidth - this.layout.delta;
|
||||
}
|
||||
|
||||
distY = Math.floor(offset.top / this.layout.delta) * this.layout.delta;
|
||||
|
||||
if (distY + this.layout.delta > this.container.scrollHeight) {
|
||||
distY = this.container.scrollHeight - this.layout.delta;
|
||||
distY = Math.floor(offset.top / this.layout.height) * this.layout.height;
|
||||
if (distY + this.layout.height > this.container.scrollHeight) {
|
||||
distY = this.container.scrollHeight - this.layout.height;
|
||||
}
|
||||
}
|
||||
if(this.settings.direction === 'rtl'){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue