UNPKG

@fancyapps/ui

Version:

Robust JavaScript UI Component Library

1 lines 646 B
!/*! License details at fancyapps.com/license */function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).window=e.window||{})}(this,function(e){"use strict";let n=function(e){if(!(e&&e instanceof Element&&e.offsetParent))return!1;let n=e.scrollHeight>e.clientHeight,t=window.getComputedStyle(e).overflowY,o=-1!==t.indexOf("hidden"),i=-1!==t.indexOf("visible");return n&&!o&&!i},t=function(e,o){return!e||e===document.body||o&&e===o?null:n(e)?e:t(e.parentElement,o)};e.getScrollableParent=t,e.isScrollable=n});