Socket
Socket
Sign inDemoInstall

scroll-into-view-if-needed

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scroll-into-view-if-needed - npm Package Compare versions

Comparing version 2.2.9 to 2.2.10

3

compute.js

@@ -180,3 +180,2 @@ "use strict";

exports.default = _default;
module.exports = exports["default"];
exports.default = _default;

@@ -66,3 +66,2 @@ "use strict";

var _default = scrollIntoView;
exports.default = _default;
module.exports = exports["default"];
exports.default = _default;

@@ -11,3 +11,3 @@ {

},
"version": "2.2.9",
"version": "2.2.10",
"main": "index.js",

@@ -43,3 +43,3 @@ "module": "es/index.js",

"babel-eslint": "8.2.5",
"babel-plugin-add-module-exports": "0.2.1",
"babel-plugin-add-module-exports": "0.3.1",
"babel-plugin-dev-expression": "0.2.1",

@@ -63,3 +63,3 @@ "concurrently": "3.6.0",

"rollup-plugin-terser": "1.0.1",
"semantic-release": "15.6.0",
"semantic-release": "15.6.3",
"tslint": "5.10.0",

@@ -66,0 +66,0 @@ "tslint-config-prettier": "1.13.0",

@@ -71,6 +71,6 @@ [![CircleCI Status](https://img.shields.io/circleci/project/github/stipsan/scroll-into-view-if-needed.svg?style=flat-square)](https://circleci.com/gh/stipsan/scroll-into-view-if-needed)

// Even if all you do is this
scrollIntoIntoView(node, { scrollMode: 'if-needed' })
scrollIntoView(node, { scrollMode: 'if-needed' })
// You end up with the same bundlesize as people who need
// smooth scrolling to work in browsers that don't support it natively
scrollIntoIntoView(node, { behavior: 'smooth', scrollMode: 'if-needed' })
scrollIntoView(node, { behavior: 'smooth', scrollMode: 'if-needed' })
```

@@ -77,0 +77,0 @@

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