scroll-into-view-if-needed
Advanced tools
Comparing version 2.2.21 to 2.2.22
@@ -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'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44752
416