future 1 year ago
parent
commit
3cf42ed7d4
2 changed files with 2 additions and 2 deletions
  1. 1 1
      assets/script/run/scene_page.ts
  2. 1 1
      assets/script/run/widget/widget_drag.ts

+ 1 - 1
assets/script/run/scene_page.ts

@@ -45,7 +45,7 @@ export class scene_page extends Component {
         }else{
             this.content.getComponent(Widget).enabled = false;
         }
-
+        this.content.position = Vec3.ZERO;
         this.mAnimationList = this.mSceneAtt.animation_list;
         console.log(" this.mAnimationList", this.mAnimationList)
         if(this.mIsMask){

+ 1 - 1
assets/script/run/widget/widget_drag.ts

@@ -32,7 +32,7 @@ export class widget_drag extends widget_base {
 
     }
     protected start(): void {
-        if(this.mIsActive){
+        if(this.mIsActive&&this.isInit){
             this.registeredEvent()
         }
     }