such as the title, the effect has been achieved, but not very smooth, using lodash"s throttle and debounce functions to cut costs, but the response
is always not timely, without the effect of Dianping, what special skills do you have?
this.scrollHandler = throttle(({ mp: { detail: { scrollTop } } }) => {
if (storage.length === 0 && !storage.isGetting) {
this.collectContentHeight();
}
if (helpParams.isScrolling) {
return;
}
this.contentScroll = scrollTop;
this.judge(scrollTop);
}, 50);