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.21 to 2.2.22

4

package.json

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

},
"version": "2.2.21",
"version": "2.2.22",
"main": "index.js",

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

"tslint-config-prettier": "1.18.0",
"typescript": "3.1.6"
"typescript": "3.7.4"
},

@@ -70,0 +70,0 @@ "keywords": [

@@ -127,3 +127,3 @@ [![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)

Type: `'auto' | 'smooth' | 'instant' | Function`<br> Default: `'auto'`
Type: `'auto' | 'smooth' | Function`<br> Default: `'auto'`

@@ -158,4 +158,2 @@ > Introduced in `v2.1.0`

Quick note, in the CSS property the `auto` keyword equals `behavior: 'instant'`, not `behavior: 'auto'` on `scrollIntoView`. **Yes**, this is confusing.
##### `'smooth'`

@@ -165,6 +163,2 @@

##### `'instant'`
This is useful for scenarios where it's certain that smooth scrolling would make an interaction feel sluggish. Like keyboard navigation and other user experiences where the end user expect things to move _instantly_.
##### `Function`

@@ -171,0 +165,0 @@

@@ -1,2 +0,2 @@

export declare type ScrollBehavior = 'auto' | 'instant' | 'smooth';
export declare type ScrollBehavior = 'auto' | 'smooth';
export declare type ScrollLogicalPosition = 'start' | 'center' | 'end' | 'nearest';

@@ -3,0 +3,0 @@ export declare type ScrollMode = 'always' | 'if-needed';

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