Browse Source

代码优化

薛鸿潇 5 năm trước cách đây
mục cha
commit
a19454f20e
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      assets/script/game/module/guideWeak/GuideWeak.ts

+ 0 - 1
assets/script/game/module/guideWeak/GuideWeak.ts

@@ -61,7 +61,6 @@ export default class GuideWeak extends cc.Component {
     private onTouchStart(touch: cc.Touch, event: cc.Event.EventTouch): boolean {
         // cc.log("touch start");
         //此处必须返回true(表示接触到了节点),否则TOUCH_MOVE,TOUCH_END,TOUCH_CANCEL不触发。
-        event.bubbles = true;
         const point_world_pos = touch.getLocation();
         let localPoint = this.node.parent.convertToNodeSpaceAR(new cc.Vec2(point_world_pos.x, point_world_pos.y));
         let result = this.pointInPoly(localPoint, this.node);