]> _ Git - fluidbook-html5.git/commitdiff
wip #2321 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 5 Nov 2018 12:56:38 +0000 (13:56 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 5 Nov 2018 12:56:38 +0000 (13:56 +0100)
js/libs/fluidbook/fluidbook.3dflip.js
js/libs/fluidbook/fluidbook.support.js

index e3fd989e5160a85b4c1b9f97e212032afb7c7578..5e7b41168921b27bf817c2036ef015761c01706e 100644 (file)
@@ -70,7 +70,7 @@ Fluidbook3DFlip.prototype = {
 
         if (performanceMode === undefined || performanceMode === 'auto' || performanceMode === 'performancesTest') {
             this.veryLowPerf = this.fluidbook.support.IE > 0 || this.fluidbook.support.iOS;
-            this.lowPerf = !Modernizr.webgl || this.veryLowPerf || this.fluidbook.support.edge || this.fluidbook.support.android;
+            this.lowPerf = !Modernizr.webgl || this.veryLowPerf || this.fluidbook.support.edge || this.fluidbook.support.android  || this.fluidbook.support.macOs;
         } else if (performanceMode === 'lowPerf') {
             this.lowPerf = true;
             this.veryLowPerf = false;
index 2491e094f618a89a692ab5af83d475924ef9cd60..995f820310ca1753eba77466bf7b2f98ec8a335b 100644 (file)
@@ -7,6 +7,7 @@ function FluidbookSupport(fluidbook) {
     }
     catch (e) {
     }
+    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;