src/Draggable/Plugins/Scrollable/Scrollable.js
function hasOverflow(element) {
  const overflowRegex = /(auto|scroll)/;
  const computedStyles = getComputedStyle(element, null);

  const overflow =
    computedStyles.getPropertyValue('overflow') +
    computedStyles.getPropertyValue('overflow-y') +
    computedStyles.getPropertyValue('overflow-x');

  return overflowRegex.test(overflow);
}
function hasOverflow(element) {
  const overflowRegex = /(auto|scroll)/;
  const computedStyles = getComputedStyle(element, null);

  const overflow =
    computedStyles.getPropertyValue('overflow') +
    computedStyles.getPropertyValue('overflow-y') +
    computedStyles.getPropertyValue('overflow-x');

  return overflowRegex.test(overflow);
}
function hasOverflow ( element ) { const overflowRegex = / (auto|scroll) / ; const computedStyles = getComputedStyle ( element , null ) ; const overflow = computedStyles . getPropertyValue ( 'overflow' ) + computedStyles . getPropertyValue ( 'overflow-y' ) + computedStyles . getPropertyValue ( 'overflow-x' ) ; return overflowRegex . test ( overflow ) ; }
Returns true if the passed element has overflow
@param {HTMLElement} element
@return {Boolean}
@private
Returns true if the passed element has overflow