utils/dom/findclosestscrollableancestor
module
Functions
-
findClosestScrollableAncestor( domElement ) → null | HTMLElementmodule:utils/dom/findclosestscrollableancestor~findClosestScrollableAncestorReturns the closest scrollable ancestor of a DOM element.
Parameters
domElement : HTMLElementDOM element.
Returns
null | HTMLElementFirst ancestor of
domElementthat is scrollable or null if such ancestor doesn't exist.