]> _ Git - fluidbook-html5.git/commitdiff
fix #2802 @0:05
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 28 May 2019 14:46:10 +0000 (16:46 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 28 May 2019 14:46:10 +0000 (16:46 +0200)
js/libs/fluidbook/fluidbook.js

index 355e0c24cdbe5f98bd45fa7b04a24bed390a5a02..d246ddbb47db1d6ca4c993ed94db25defd24e3f0 100644 (file)
@@ -171,13 +171,23 @@ Fluidbook.prototype = {
             $this.goFirstPage();
         });
         key('end', function () {
+
             $this.goLastPage();
+
         });
         key('left', function () {
-            $this.goPreviousPage();
+            if ($this.l10n.dir === 'ltr') {
+                $this.goPreviousPage();
+            } else {
+                $this.goNextPage();
+            }
         });
         key('right', function () {
-            $this.goNextPage();
+            if ($this.l10n.dir === 'ltr') {
+                $this.goNextPage();
+            } else {
+                $this.goPreviousPage();
+            }
         });
         // See fluidbook.audiodescription.js for specific shortcuts
     },