Skip to content

Commit 0790541

Browse files
authored
fix: 'instant' isn't in the spec (#741)
1 parent 8b3d4d6 commit 0790541

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ Type: `Object`
7272

7373
#### behavior
7474

75-
Type: `'auto' | 'smooth' | 'instant' | Function`<br> Default: `'smooth'`
75+
Type: `'auto' | 'smooth' | Function`<br> Default: `'smooth'`
7676

7777
This option deviates from `scroll-into-view-if-needed` in two ways.
7878

7979
- The default value is `smooth` instead of `auto`
8080
- Using `smooth` adds it to browsers that miss it, and overrides the native smooth scrolling in the browsers that have it to ensure the scrolling is consistent in any browser.
8181

82-
The options `auto`, `instant` or `Function` behaves exactly like in `scroll-into-view-if-needed`.
82+
The options `auto` or `Function` behaves exactly like in `scroll-into-view-if-needed`.
8383

8484
#### duration
8585

0 commit comments

Comments
 (0)