From: Vincent Vanwaelscappel Date: Mon, 2 Oct 2017 15:47:17 +0000 (+0200) Subject: fix #1692 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=b729db39135bd95d06e6f0826357c0174bd04bcf;p=fluidbook-html5.git fix #1692 @0.25 --- diff --git a/js/libs/fluidbook/fluidbook.slider.js b/js/libs/fluidbook/fluidbook.slider.js index 18decfc1..3cc3597e 100644 --- a/js/libs/fluidbook/fluidbook.slider.js +++ b/js/libs/fluidbook/fluidbook.slider.js @@ -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); + } } },