New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

isolate-scroll

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isolate-scroll - npm Package Compare versions

Comparing version 0.0.1-security to 1.0.1

.babelrc

46

package.json
{
"name": "isolate-scroll",
"version": "0.0.1-security",
"description": "security holding package",
"repository": "npm/security-holder"
"version": "1.0.1",
"description": "A small no-dependency Javascript lib for prevent browser to scroll parent container on wheel or touch event",
"main": "dist/isolateScroll.js",
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.5",
"clean-webpack-plugin": "^1.0.0",
"eslint": "^5.12.0",
"eslint-loader": "^2.1.1",
"html-webpack-plugin": "^3.2.0",
"lodash": "^4.17.11",
"uglifyjs-webpack-plugin": "^2.1.1",
"webpack": "^4.28.4",
"webpack-cli": "^3.2.1",
"webpack-dev-server": "^3.1.14",
"webpack-merge": "^4.2.1"
},
"scripts": {
"start": "webpack-dev-server --progress --colors --config webpack.dev.js",
"build": "webpack --config webpack.demo.js && webpack --config webpack.prod.js",
"build:demo": "webpack --config webpack.demo.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/AleeeKoi/isolate-scroll.git"
},
"keywords": [
"scroll",
"lock",
"prevent",
"propagation",
"js",
"javascript"
],
"author": "Alessandro Pellizzari <aleeekoi@hotmail.it>",
"license": "MIT",
"bugs": {
"url": "https://github.com/AleeeKoi/isolate-scroll/issues"
},
"homepage": "https://github.com/AleeeKoi/isolate-scroll#readme"
}

@@ -1,9 +0,89 @@

# Security holding package
<p align="center">
<a href="http://alessandropellizzari.it" target="_blank" rel="noopener noreferrer">
<img height="150" src="http://alessandropellizzari.it/github/alessandro_pellizzari.png" alt="AP Logo" />
</a>
</p>
This package name is not currently in use, but was formerly occupied
by another package. To avoid malicious use, npm is hanging on to the
package name, but loosely, and we'll probably give it to you if you
want it.
---
You may adopt this package by contacting support@npmjs.com and
requesting the name.
# Isolate Scroll
<p align="center">
<a href="https://www.npmjs.com/package/isolate-scroll"><img src="https://img.shields.io/npm/v/isolate-scroll.svg" alt="Version"></a>
<a href="https://www.npmjs.com/package/isolate-scroll"><img src="https://img.shields.io/npm/l/isolate-scroll.svg" alt="License"></a>
</p>
## Introduction
Isolate Scroll is a small JavaScript library with no external dependency.
Activating this library on an element, parents container will don't move when you scroll inside a child.
This library prevent scroll on wheel and thouch event.
### Browser Compatibility
Isolate Scroll supports all browsers that are [ES5-compliant] (http://kangax.github.io/compat-table/es5/) (IE8 and below are not supported).
### Mobile support
Isolate Scroll also prevent parent scroll in mobile browsers.
---
### Installing
With a package manager (**recomanded**):
```js
npm install isolate-scroll --save
```
**Manually:**
Download this library from https://github.com/AleeeKoi/isolate-scroll/releases
---
### Basic usage
### As ES6 module
```js
import IsolateScroll from 'isolate-scroll';
var target = '.target-element';
// or:
// var target = document.querySelector('.target-element');
var isolateScrollInstance = new IsolateScroll(target);
```
#### Including directly as library
```html
<script src="/path/to/isolateScroll.min.js"></script>
<script>
(function(w) {
w.addEventListener('load', function () {
var isolateScrollInstance = IsolateScroll('.container');
}, true);
})(window);
</script>
```
### DOM change/resize
On inizialization this library caches some values, if DOM changes or is resized you need to manually call following method:
```js
isolateScrollInstance.update();
```
---
### License
[MIT](http://opensource.org/licenses/MIT)
Copyright (c) 2019-present, Alessandro Pellizzari
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