]> _ Git - fluidbook-html5.git/commitdiff
wait #5197 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 30 Mar 2022 10:38:51 +0000 (12:38 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 30 Mar 2022 10:38:59 +0000 (12:38 +0200)
js/libs/fluidbook/fluidbook.links.js

index 072bd53e52133128031b14624e1a8ea505b04636..6200b46bbd5f2cf9b7a2c57e7a0bcb73638d934a 100644 (file)
@@ -647,7 +647,6 @@ FluidbookLinks.prototype = {
                 from.rotation += 0.01;
                 to.rotation = from.rotation;
             }
-
         } else if (animation.type === 'fadein') {
             from.display = 'none';
             to.display = 'block';
@@ -788,7 +787,9 @@ FluidbookLinks.prototype = {
                 countup.start();
             }, to.delay * 1000);
         } else if (animation.type === 'draggable') {
-            this.fluidbook.touch.hasDraggableOnPage = true;
+            if (this.fluidbook.touch) {
+                this.fluidbook.touch.hasDraggableOnPage = true;
+            }
             $(link).css('pointer-events', 'auto');
             var $this = this;
             var draggable = new Draggable(link, {