Skip to content

Scrollable Element

This is an interface for elements that are scrollable.

Interface methods:

  • getScroll: Gets the scroll position.
  • setScroll: Sets the scroll postiion.
  • scroll: Scrolls the element.
  • getSmoothScroll: Gets the smoothened scroll position.
  • getMaxScroll: Gets the maximum scroll postiion.
  • getScrollerWidth: Gets the scroller width.
  • getContentHeight: Gets the content’s height.
  • isOverflowing: Returns true if the contents are overflowing.