diff --git a/ListViewV2Demo/assets/Script/ListViewFactory.ts b/ListViewV2Demo/assets/Script/ListViewFactory.ts index 65747e2..417106a 100644 --- a/ListViewV2Demo/assets/Script/ListViewFactory.ts +++ b/ListViewV2Demo/assets/Script/ListViewFactory.ts @@ -53,6 +53,8 @@ export default class ListViewFactory extends cc.Component { }); //显示 this.listView.set_data(data); + this.scrollview.scrollToTop(); + this.scrollview.stopAutoScroll(); } update(dt) {