Skip to content

Commit

Permalink
Merge pull request #1059 from alidbc/master
Browse files Browse the repository at this point in the history
Fix left offset calculation of RTL prev navigation
  • Loading branch information
fchasen committed May 23, 2020
2 parents d8bfe16 + 290ffc8 commit 0adbb08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/managers/default/index.js
Expand Up @@ -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();
Expand Down

0 comments on commit 0adbb08

Please sign in to comment.