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