Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 520ad9f commit 2685792Copy full SHA for 2685792
js/load-image-ios.js
@@ -1,5 +1,5 @@
1
/*
2
- * JavaScript Load Image iOS scaling fixes 1.0.1
+ * JavaScript Load Image iOS scaling fixes 1.0.2
3
* https://github.com/blueimp/JavaScript-Load-Image
4
*
5
* Copyright 2013, Sebastian Tschan
@@ -120,6 +120,7 @@
120
}
121
vertSquashRatio = loadImage.detectVerticalSquash(img, subsampled);
122
if (subsampled && vertSquashRatio !== 1) {
123
+ sourceY *= vertSquashRatio;
124
destWidth = Math.ceil(tileSize * destWidth / sourceWidth);
125
destHeight = Math.ceil(
126
tileSize * destHeight / sourceHeight / vertSquashRatio
0 commit comments