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 1.0.7 to 1.0.8

6

dist/es2015/handleScroll.js

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

2

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

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