Commit 4dfe8269 by doszhang

dos

parent 42ec57ac
......@@ -380,7 +380,6 @@ function bindMc(mc, ctx, myCanvas, img, imgInfo) {
});
var oldpoz = {};
mc.on('panstart panmove panend', function (event) {
console.log(img)
event.preventDefault();
if (!img) {
return;
......@@ -396,6 +395,7 @@ function bindMc(mc, ctx, myCanvas, img, imgInfo) {
//console.log("movedX:" + movedX + ' movedY:' + movedY + 'event.deltaX:' + event.deltaX + ' event.deltaY:' + event.deltaY + "\r\n");
imgInfo.x += movedX * 2;
imgInfo.y += movedY * 2;
console.log(imgInfo.x, imgInfo.y)
drawImage(ctx, myCanvas, img, imgInfo);
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment