react-remove-scroll
Advanced tools
Comparing version 2.4.1 to 2.4.2
@@ -9,2 +9,6 @@ var elementCouldBeVScrolled = function (node) { | ||
var styles = window.getComputedStyle(node); | ||
// we allow horizontal scroll on range elements | ||
if (node.type === "range") { | ||
return true; | ||
} | ||
return (styles.overflowX !== 'hidden' && // not-not-scrollable | ||
@@ -11,0 +15,0 @@ !(styles.overflowY === styles.overflowX && styles.overflowX === 'visible') // scrollable |
@@ -11,2 +11,6 @@ "use strict"; | ||
var styles = window.getComputedStyle(node); | ||
// we allow horizontal scroll on range elements | ||
if (node.type === "range") { | ||
return true; | ||
} | ||
return (styles.overflowX !== 'hidden' && // not-not-scrollable | ||
@@ -13,0 +17,0 @@ !(styles.overflowY === styles.overflowX && styles.overflowX === 'visible') // scrollable |
{ | ||
"name": "react-remove-scroll", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"description": "Disables scroll outside of `children` node.", | ||
@@ -5,0 +5,0 @@ "main": "dist/es5/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52753
970