xx пре 1 година
родитељ
комит
be6ac2a6dd
2 измењених фајлова са 4 додато и 2 уклоњено
  1. 1 0
      assets/script/run/bag/bag_drag_item.ts
  2. 3 2
      assets/script/run/bag/dai_dao_ju_bag.ts

+ 1 - 0
assets/script/run/bag/bag_drag_item.ts

@@ -43,6 +43,7 @@ export class bag_drag_item extends Component {
     public unSelect(){
         this.spr_select_status.active = false;
         this.drag_item.off(Node.EventType.TOUCH_END)
+        this.drag_item.off(Node.EventType.TOUCH_MOVE)
     }
 
     public getRect():Rect{

+ 3 - 2
assets/script/run/bag/dai_dao_ju_bag.ts

@@ -28,6 +28,7 @@ export class dai_dao_ju_bag extends Component {
         this.mWidgetList.clear()
         this.mData = data;
         this.btn_info.active = false;
+        this.drag_des.active = false;
         ClientEvent.off(config.EventRun.NOTICE_EVENT,this.beActive.bind(this),this)
         ClientEvent.on(config.EventRun.NOTICE_EVENT,this.beActive.bind(this),this)
         this.m_tip_call_back = tip_call;
@@ -132,8 +133,8 @@ export class dai_dao_ju_bag extends Component {
     }
 
     addDragRect(r:Rect){
-        this.drag_des.position = new Vec3(r.x+r.width*0.5,r.y+r.height*0.5);
-        this.drag_des.getComponent(UITransform).setContentSize(new Size(r.width,r.height))
+        // this.drag_des.position = new Vec3(r.x+r.width*0.5,r.y+r.height*0.5);
+        // this.drag_des.getComponent(UITransform).setContentSize(new Size(r.width,r.height))
     }
 
 }