ScrollSmoother.get
ScrollSmoother.get( ) : ScrollSmoother
返回 ScrollSmoother 实例(如果已经创建了一个)。任何时候只能存在一个实例。
细节
返回 ScrollSmoother 实例(如果已经创建了一个)。任何时候只能存在一个实例。
let smoother = ScrollSmoother.create({...});
// then later, you can get that instance (perhaps in another file) like this:
let previouslyCreatedSmoother = ScrollSmoother.get();