1.diy滚动监听优化

master
sws 2024-12-26 18:50:51 +08:00
parent 08976de86e
commit 5caa8ff0d8
1 changed files with 3 additions and 1 deletions

View File

@ -567,8 +567,10 @@
//
on_scroll_event(e) {
console.log(1);
const scroll_num = e.detail.scrollTop;
if (scroll_num <= 10) {
console.log(scroll_num);
if (scroll_num <= 20) {
this.head_scroll_top = 0;
} else {
if (scroll_num / (this.sticky_top + 33) <= 1) {