Commit a9489a3b authored by Lwd's avatar Lwd

commit

parent d4b9be3b
......@@ -35,7 +35,6 @@ cc.Class({
this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.touchCancel, this);
},
//触摸开始
touchBegan: function (event) {
this.isMove = false;
......@@ -44,7 +43,10 @@ cc.Class({
//触摸移动
touchMove: function (event) {
console.log("触发移动事件")
if (this.node.isComplent || this._isRotate) {
console.log("移动停止")
return
}
......@@ -52,6 +54,8 @@ cc.Class({
this.node.x += delta.x;
this.node.y += delta.y;
console.log("开始移动", "x坐标:" + this.node.x, "y坐标:" + this.node.y)
var deltaPos = this.node.x + this.node.y;
if (Math.abs(this.deltaPos - deltaPos) > 10) {
this.isMove = true;
......
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 to comment