onLoad: function () {
this.node.on(cc.Node.EventType.TOUCH_START,function()
{var oldx = this.x;},this.node);
this.node.on(cc.Node.EventType.TOUCH_MOVE,function(event){
var delta = event.touch.getDelta();
if(delta.x > 0)
{this.x+=delta.x;}
},this.node);
this.node.on(cc.Node.EventType.TOUCH_END, function ()
{
if(this.x<this.oldx+400)
{ this.x= this.oldx;}
}, this.node);
},
我在开始拖拽时记录了位置为什么不能返回呢?