From: Vincent Vanwaelscappel Date: Mon, 5 Nov 2018 12:56:38 +0000 (+0100) Subject: wip #2321 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=31db50e9ef29f8349615c700ca0ee415c8639c78;p=fluidbook-html5.git wip #2321 @0.5 --- diff --git a/js/libs/fluidbook/fluidbook.3dflip.js b/js/libs/fluidbook/fluidbook.3dflip.js index e3fd989e..5e7b4116 100644 --- a/js/libs/fluidbook/fluidbook.3dflip.js +++ b/js/libs/fluidbook/fluidbook.3dflip.js @@ -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; diff --git a/js/libs/fluidbook/fluidbook.support.js b/js/libs/fluidbook/fluidbook.support.js index 2491e094..995f8203 100644 --- a/js/libs/fluidbook/fluidbook.support.js +++ b/js/libs/fluidbook/fluidbook.support.js @@ -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;