Commit 25d11a63 authored by liujiangnan's avatar liujiangnan

feat: 修改个事件问题

parent fc3011da
...@@ -275,6 +275,7 @@ cc.Class({ ...@@ -275,6 +275,7 @@ cc.Class({
console.log("TOUCH_ENDED"); console.log("TOUCH_ENDED");
this.updateBarByPos(this.barTag.x); this.updateBarByPos(this.barTag.x);
}); });
this.barTag.off(cc.Node.EventType.MOUSE_UP);
this.barTag.on(cc.Node.EventType.MOUSE_UP, (e) => { this.barTag.on(cc.Node.EventType.MOUSE_UP, (e) => {
if (!this._isReadyToPlay) { if (!this._isReadyToPlay) {
return; return;
......
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