Scroll Manager Constructor
Throttling time for scroll-observers
Example:
manager.root.scroll.subscribe(position => console.log(position));
manager.root.scrollDirectionChange.subscribe(direction => console.log(direction));
Example:
const element = document.getElementById("#content");
const contentScrollObserver = manager.observe(element);
contentScrollObserver.scroll.subscribe(position => console.log(position));
contentScrollObserver.scrollDirectionChange.subscribe(direction => console.log(direction));
Scroll target
Time to throttle the scroll events
Scroll the window into an element
Example:
manager.scrollToElement(document.getElementById("#next-content"))
Element to scroll into
A promise which will be resolved right after the scrolling completed
Scrolls to the top smoothly
A promise which resolves when the scrolling is completed
Generated using TypeDoc
Scroll Manager
Manages whole scroll operations