|
@@ -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)
|
|
|
})
|