diff --git a/iOS/Resources/main_ios.js b/iOS/Resources/main_ios.js index 2945aa292..329225e0b 100644 --- a/iOS/Resources/main_ios.js +++ b/iOS/Resources/main_ios.js @@ -37,7 +37,7 @@ class ImageViewer { var canvas = document.createElement("canvas"); canvas.width = this.img.naturalWidth; canvas.height = this.img.naturalHeight; - canvas.getContext("2d").drawImage(this.img, 0, 0); + canvas.getContext("2d").drawImage(this.img, 0, 0, canvas.width, canvas.height); const rect = this.img.getBoundingClientRect(); const message = {