feat: 修改移动端列表模式节流时长
This commit is contained in:
@@ -343,7 +343,7 @@ export default function MobileFundTable({
|
|||||||
setShowPortalHeader(tableRect.top <= nextStickyTop);
|
setShowPortalHeader(tableRect.top <= nextStickyTop);
|
||||||
};
|
};
|
||||||
|
|
||||||
const throttledVerticalUpdate = throttle(updateVerticalState, 50, { leading: true, trailing: true });
|
const throttledVerticalUpdate = throttle(updateVerticalState, 1000/60, { leading: true, trailing: true });
|
||||||
|
|
||||||
updateVerticalState();
|
updateVerticalState();
|
||||||
window.addEventListener('scroll', throttledVerticalUpdate, { passive: true });
|
window.addEventListener('scroll', throttledVerticalUpdate, { passive: true });
|
||||||
|
|||||||
Reference in New Issue
Block a user