]> _ Git - fluidbook-html5.git/commitdiff
fix #3246 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 17 Dec 2019 17:53:54 +0000 (18:53 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 17 Dec 2019 17:53:54 +0000 (18:53 +0100)
js/libs/fluidbook/fluidbook.support.js

index e81249331a2bf883719a48143fa4b9516b53e536..be6a6841766187eda1072e360307b635d241b2a4 100644 (file)
@@ -9,7 +9,7 @@ function FluidbookSupport(fluidbook) {
     this.macOs = navigator.platform.toUpperCase().indexOf('MAC') >= 0;
     this.android = this.fitScreenAtZero = this.userAgent.search(/android/i) > -1 || this.userAgent.search(/galaxy/i) > -1;
     this.android3 = this.android && this.userAgent.search(/android 3/i) > -1;
-    this.iOS = this.userAgent.search(/ipad/i) > -1 || this.userAgent.search(/iphone/i) > -1 || this.userAgent.search(/ipod/i) > -1;
+    this.iOS = (/iPad|iPhone|iPod/.test(navigator.platform) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) && !window.MSStream
     this.edge = this.userAgent.search(/edge/i) > -1;
     // If in node-webkit or if the index.html fluidbook is locally open in a browser
     this.offline = (typeof process !== "undefined" && process.versions['node-webkit']) || window.location.toString().indexOf("file://") == 0;