All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.lib.dom-utils.isScrollParent.js Maven / Gradle / Ivy

There is a newer version: 2.11.8
Show newest version
import getComputedStyle from "./getComputedStyle.js";
export default function isScrollParent(element) {
  // Firefox wants us to check `-x` and `-y` variations as well
  var _getComputedStyle = getComputedStyle(element),
      overflow = _getComputedStyle.overflow,
      overflowX = _getComputedStyle.overflowX,
      overflowY = _getComputedStyle.overflowY;

  return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy