future 1 年之前
父節點
當前提交
57357ca1f3
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      assets/scene/game.scene
  2. 2 2
      assets/script/run/game_list_view/game_list.ts

+ 1 - 1
assets/scene/game.scene

@@ -14915,7 +14915,7 @@
         "__id__": 435
       }
     ],
-    "_active": true,
+    "_active": false,
     "_components": [
       {
         "__id__": 440

+ 2 - 2
assets/script/run/game_list_view/game_list.ts

@@ -119,14 +119,14 @@ export class game_list extends Component {
             this.content.position = new Vec3(n_p.x-this.x_len ,this.content.position.y);
         })
         this.content.on(Node.EventType.TOUCH_END,()=>{
-            this.x_len = 0
             if(this.onClickItem) { return }
+            this.x_len = 0
             this.touchContentScroll()
             this.content.position = new Vec3(-19,this.content.position.y)
         })
         this.content.on(Node.EventType.TOUCH_CANCEL,()=>{
-            this.x_len = 0
             if(this.onClickItem) { return }
+            this.x_len = 0
             this.touchContentScroll()
             this.content.position = new Vec3(-19,this.content.position.y)
         })