Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-remove-scroll

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-remove-scroll - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

4

dist/es2015/handleScroll.js

@@ -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

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc