Optional
options: { active?: boolean; axis?: "x" | "y"; noCache?: boolean }Optional
active?: booleanIf true, then if the target's current scroll offset is 0, it will attempt to scroll it rather than looking at the clientWidth/Height to scrollWidth/Height. This is more reliable but can cause issues, see note above.
Optional
axis?: "x" | "y"One of "x" or "y" for horizontal or vertical scroll respectively. If not given, it checks both.
Optional
noCache?: booleanBy default the result of a check is cached for 1s and if there's already a cached result for this element, it is returns. Set this to true to disable checking the cache and also saving the result into the cache.
Returns true if the given element is scrollable in the given direction, or in either direction (if
axis
is not given).IMPORTANT: If you enable
active
then be aware that: