]> _ Git - fluidbook-html5.git/commitdiff
(no commit message)
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 24 Jun 2014 09:13:47 +0000 (09:13 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 24 Jun 2014 09:13:47 +0000 (09:13 +0000)
js/libs/fluidbook/fluidbook.js
js/libs/fluidbook/fluidbook.loader.js
js/libs/fluidbook/fluidbook.support.js

index aeba36b2376ae5684a70325a5ebc386add35c562..bc9454d528c4d5b727e81464e2fd0236866182d2 100644 (file)
@@ -75,7 +75,6 @@ Fluidbook.prototype = {
                if (!this.support.isMobile) {
                        this.desktop = new FluidbookDesktop(this);
                }
-
                this.initLoading();
        },
        initLoading: function() {
index 3576571247fd0eddef4a212f0c5d62f643e54ea6..52d595ac6fd59be591100408f8b08a31afce0c3a 100644 (file)
@@ -6,7 +6,6 @@ function FluidbookLoader(fluidbook) {
        this.toPreload = [];
        this.numPreload = 6;
        this.imagesErrors = [];
 }
 
 FluidbookLoader.prototype = {
index 855669e6adfc9e737298b54203e609cc31a71c81..9a128f4995ed9a8dc7dc54cf1eb0f93456a33e3e 100644 (file)
@@ -9,7 +9,12 @@ function FluidbookSupport(fluidbook) {
        this.transitions3d = Modernizr.csstransforms3d && Modernizr.csstransformspreserve3d && this.transitions2d;
 
        this.transitionendevent = null;
-       this.resolution = 150;
+
+       if (window.resolution == 'auto') {
+               this.resolution = Modernizr.mq('(-webkit-min-device-pixel-ratio: 2)') ? 300 : 150;
+       } else {
+               this.resolution = window.resolution;
+       }
 
        this.isMobile = isMobile();
        this.SVG = Modernizr.svg && this.fluidbook.datas.mobileIconVector;