1
0
Fork 0
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:
Ali Dubaisi 2020-05-18 21:25:53 +03:00
parent 26075c2d49
commit 290ffc8eef

View file

@ -517,9 +517,9 @@ class DefaultViewManager {
this.scrollLeft = this.container.scrollLeft;
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);
} else {
prev = this.views.first().section.prev();