Fixed incorrect size calculation of photos
This commit is contained in:
parent
5d5f86307e
commit
e8a1c1ea30
BIN
dist/main.js
vendored
BIN
dist/main.js
vendored
Binary file not shown.
@ -566,7 +566,7 @@ photo.getSize = function() {
|
|||||||
// Detect if the photo will be shown scaled,
|
// Detect if the photo will be shown scaled,
|
||||||
// because the screen size is smaller than the photo
|
// because the screen size is smaller than the photo
|
||||||
if (photo.json.width>view.width||
|
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
|
// Calculate pixel ratio of screen
|
||||||
if (pixelRatio!==undefined&&pixelRatio>1) {
|
if (pixelRatio!==undefined&&pixelRatio>1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user