react-remove-scroll
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -1,2 +0,6 @@ | ||
var elementCouldBeScrolled = function (node) { return (window.getComputedStyle(node).overflowY !== 'hidden'); }; | ||
var elementCouldBeScrolled = function (node) { | ||
var styles = window.getComputedStyle(node); | ||
return (styles.overflowY !== 'hidden' && | ||
!(styles.overflowY === styles.overflowX && styles.overflowY === 'visible')); | ||
}; | ||
export var handleScroll = function (endTarget, event, sourceDelta) { | ||
@@ -3,0 +7,0 @@ var delta = sourceDelta; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var elementCouldBeScrolled = function (node) { return (window.getComputedStyle(node).overflowY !== 'hidden'); }; | ||
var elementCouldBeScrolled = function (node) { | ||
var styles = window.getComputedStyle(node); | ||
return (styles.overflowY !== 'hidden' && | ||
!(styles.overflowY === styles.overflowX && styles.overflowY === 'visible')); | ||
}; | ||
exports.handleScroll = function (endTarget, event, sourceDelta) { | ||
@@ -5,0 +9,0 @@ var delta = sourceDelta; |
{ | ||
"name": "react-remove-scroll", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"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
23505
450