Commit 945e215b by doszhang

dos

parent a74424db
......@@ -369,6 +369,7 @@ function confirmAvatar() {
function inputLength() {}
function bindMc(mc, ctx, myCanvas, img, imgInfo) {
console.log(imgInfo.x, imgInfo.y)
mc.get('pan').set({
direction: Hammer.DIRECTION_ALL
});
......@@ -392,10 +393,10 @@ function bindMc(mc, ctx, myCanvas, img, imgInfo) {
var movedY = (event.deltaY - oldpoz.y);
oldpoz.x = event.deltaX;
oldpoz.y = event.deltaY;
console.log("movedX:" + movedX + ' movedY:' + movedY + 'event.deltaX:' + event.deltaX + ' event.deltaY:' + event.deltaY + "\r\n");
// console.log("movedX:" + movedX + ' movedY:' + movedY + 'event.deltaX:' + event.deltaX + ' event.deltaY:' + event.deltaY + "\r\n");
imgInfo.x += movedX;
imgInfo.y += movedY;
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