Open Yrobot opened 3 months ago
autoScroll({ selector: "#scroll-container-id" })
will return a function, which is for unsubscribe.
const unsubscribe = autoScroll({ selector: "#scroll-container-id" });
// call the unsubscribe() when you dont need it
unsubscribe()