Skip to content

Commit

Permalink
scroll top fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Jun 25, 2024
1 parent 35678ca commit 6b8df6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mobile-app/MobileApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,11 @@ export class BasePage extends AtomControl {
</div>, e, creator);
this.contentElement = this.element.querySelector("[data-page-element='content']");

setTimeout(() => this.contentElement.scrollTo(0, 0), 100);
setTimeout(() => {
// this.contentElement.scrollTo(0, 0);
this.contentElement.scrollTop = 0;
this.contentElement.scrollLeft = 0;
}, 100);
}

protected enablePullToRefreshEvents() {
Expand Down

0 comments on commit 6b8df6d

Please sign in to comment.