The function manages the scroll event on the host element. When the user scrolls, the function will check if the user has scrolled to the top or bottom of the element. If the user has scrolled to the top, the top scroll indicator will be removed. If the user has scrolled to the bottom, the bottom scroll indicator will be removed.
The function observes the host element for changes. When the host element changes, check if the element requires a scroll bar.
The function checks if the element requires a scroll bar by checking if the scrollWidth or scrollHeight is greater than the clientWidth or clientHeight.
boolean
Generated using TypeDoc
The function checks if the element requires a scroll bar and if so, it will manage the scroll event. If the element does not require a scroll bar, the scroll event will be unsubscribed.