wesmiler 6 年之前
父节点
当前提交
a43c09618c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/static/weixin/lib/cropper/cropper.js

+ 1 - 1
public/static/weixin/lib/cropper/cropper.js

@@ -148,7 +148,7 @@
 
     function getSourceCanvas(image, data) {
         var canvas = $('<canvas>')[0],
-            context = canvas.getContext('2d'),
+            context = canvas.getContext('2d').translate(0.5, 0.5),
             width = data.naturalWidth,
             height = data.naturalHeight,
             rotate = data.rotate,