]> _ Git - fluidbook-html5.git/commitdiff
fix #3638 @0.75
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 30 Sep 2020 16:00:40 +0000 (18:00 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 30 Sep 2020 16:00:40 +0000 (18:00 +0200)
js/libs/fluidbook/fluidbook.js

index a0f87d1ab62fe735628a4922e95b76285bff8274..12f00cc37993d8437677979802834feac4eb7297 100644 (file)
@@ -56,6 +56,9 @@ Fluidbook.prototype = {
         this.l10n = new FluidbookL10N(this, $_GET['lang']);
         this.search = new FluidbookSearch(this);
         this.mobilefirst = new FluidbookMobileFirst(this);
+        if (!this.mobilefirst.enabled) {
+            this.slider = new FluidbookSlider(this);
+        }
         this.zoom = new FluidbookZoom(this);
         this.zoom.resetZoom();
         this.cache = new FluidbookCache(this.settings);
@@ -212,10 +215,6 @@ Fluidbook.prototype = {
 
         $("#main").css('display', 'block');
 
-        if (!this.mobilefirst.enabled) {
-            this.slider = new FluidbookSlider(this);
-        }
-
         // Trigger a resize
         resize();