]> _ Git - fluidbook-html5.git/commitdiff
fix #1692 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 2 Oct 2017 15:47:17 +0000 (17:47 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 2 Oct 2017 15:47:17 +0000 (17:47 +0200)
js/libs/fluidbook/fluidbook.slider.js

index 18decfc1a86c091885935f6d244ace0b9bb51716..3cc3597e649b17c162a84a328244a924dc92f73e 100644 (file)
@@ -65,7 +65,9 @@ FluidbookSlider.prototype = {
             $("#slider").removeClass("drag");
         }
         if (move) {
-            this.updatePageByCursorPosition(this.pageToSlider(e.center.x), end, true);
+            if (e.center != undefined) {
+                this.updatePageByCursorPosition(this.pageToSlider(e.center.x), end, true);
+            }
         }
     },