]> _ Git - fluidbook-html5.git/commitdiff
fix #1778 @2
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 2 Nov 2017 17:29:51 +0000 (18:29 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 2 Nov 2017 17:29:51 +0000 (18:29 +0100)
js/libs/fluidbook/fluidbook.desktop.js

index 7082082a8a42362793ccee661e20b04952087a34..9183b291c3315deee82987192b45190791b7a1f8 100644 (file)
@@ -1,5 +1,8 @@
 function FluidbookDesktop(fluidbook) {
     this.fluidbook = fluidbook;
+    if (this.fluidbook.support.iOS || this.fluidbook.support.android) {
+        return;
+    }
     this.init();
 }
 
@@ -35,7 +38,7 @@ FluidbookDesktop.prototype = {
             var y = e.pageY / this.fluidbook.resize.hh;
 
             this.fluidbook.zoom.setOriginPct(x, y, force);
-        }catch(err){
+        } catch (err) {
 
         }
     },