diff --git a/dist/main.js b/dist/main.js index 189ee16..5750e46 100644 Binary files a/dist/main.js and b/dist/main.js differ diff --git a/src/scripts/photo.js b/src/scripts/photo.js index 6a6ae3c..ecd4fd8 100644 --- a/src/scripts/photo.js +++ b/src/scripts/photo.js @@ -566,7 +566,7 @@ photo.getSize = function() { // Detect if the photo will be shown scaled, // because the screen size is smaller than the photo if (photo.json.width>view.width|| - photo.json.width>view.height) scaled = true; + photo.json.height>view.height) scaled = true; // Calculate pixel ratio of screen if (pixelRatio!==undefined&&pixelRatio>1) {