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