Skip to content

Commit

Permalink
fix: resolve backtop demo
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeJim committed Dec 7, 2022
1 parent fbe7925 commit 92c0cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/back-top/_example/back-top.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Page({

onPageScroll(e) {
if (!this.windowHeight) {
this.windowHeight = wx.getSystemInfoSync().windowHeight;
this.windowHeight = wx.getSystemInfoSync().windowHeight - 200;
}
const isShowBackTop = e.scrollTop > this.windowHeight;
if (isShowBackTop !== this.data.showBackTop) {
Expand Down

0 comments on commit 92c0cec

Please sign in to comment.