mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Fix left offset calculation of RTL prev navigation
This commit is contained in:
parent
26075c2d49
commit
290ffc8eef
1 changed files with 2 additions and 2 deletions
|
@ -517,9 +517,9 @@ class DefaultViewManager {
|
||||||
this.scrollLeft = this.container.scrollLeft;
|
this.scrollLeft = this.container.scrollLeft;
|
||||||
|
|
||||||
if (this.settings.rtlScrollType === "default"){
|
if (this.settings.rtlScrollType === "default"){
|
||||||
left = this.container.scrollLeft + this.container.offsetWidth + this.layout.delta;
|
left = this.container.scrollLeft + this.container.offsetWidth;
|
||||||
|
|
||||||
if (left <= this.container.scrollWidth) {
|
if (left < this.container.scrollWidth) {
|
||||||
this.scrollBy(-this.layout.delta, 0, true);
|
this.scrollBy(-this.layout.delta, 0, true);
|
||||||
} else {
|
} else {
|
||||||
prev = this.views.first().section.prev();
|
prev = this.views.first().section.prev();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue