diff --git a/src/renderer/library/components/opds/PageNavigation.tsx b/src/renderer/library/components/opds/PageNavigation.tsx index 075b5ec24..be85191da 100644 --- a/src/renderer/library/components/opds/PageNavigation.tsx +++ b/src/renderer/library/components/opds/PageNavigation.tsx @@ -68,7 +68,7 @@ class PageNavigation extends React.Component { this.registerAllKeyboardListeners(); } } - + public adjustElementPosition = () => { const element = this.fixedElementRef.current; const container = document.getElementById("opds_browserResults"); @@ -238,7 +238,7 @@ class PageNavigation extends React.Component { ...this.props.location, pathname: buildRoute(pageLinks.previous[0]), }, this.props.location.state as IRouterLocationState); - } else if (pageLinks?.next[0]?.url) { // TODO RTL + } else if (pageLinks?.next[0]?.url && !isPrevious) { // TODO RTL this.props.historyPush({ ...this.props.location, pathname: buildRoute(pageLinks.next[0]),