跳过主要内容

.scrollTrigger

.scrollTrigger: ScrollTrigger

ScrollSmoother 内部创建的 ScrollTrigger 实例,用于管理页面的平滑滚动效果。

细节

这个ScrollTriggerScrollSmoother 内部创建的实例,用于管理页面平滑滚动效果。

let smoother = ScrollSmoother.create({...});

let nativeScrollVelocity = smoother.scrollTrigger.getVelocity();

目录