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