Skip to content

Commit 16ad92c

Browse files
authored
fix(scrollMode: if-needed): multiple edge cases fixed (#134)
1 parent af81185 commit 16ad92c

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ This option deviates from `scroll-into-view-if-needed` in two ways.
7575
- The default value is `smooth` instead of `auto`
7676
- 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.
7777

78+
The options `auto`, `instant` or `Function` behaves exactly like in `scroll-into-view-if-needed`.
79+
7880
#### duration
7981

8082
Type: `number`<br> Default: `300`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"typecheck": "tsc --noEmit"
3232
},
3333
"dependencies": {
34-
"scroll-into-view-if-needed": "2.2.12"
34+
"scroll-into-view-if-needed": "2.2.13"
3535
},
3636
"devDependencies": {
3737
"@babel/cli": "7.0.0-beta.54",

yarn.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,9 +1289,9 @@ component-emitter@^1.2.1:
12891289
version "1.2.1"
12901290
resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6"
12911291

1292-
1293-
version "1.0.3"
1294-
resolved "https://registry.yarnpkg.com/compute-scroll-into-view/-/compute-scroll-into-view-1.0.3.tgz#73646ffc8d62cd524829ba9c34b52579ac7781b8"
1292+
1293+
version "1.0.4"
1294+
resolved "https://registry.yarnpkg.com/compute-scroll-into-view/-/compute-scroll-into-view-1.0.4.tgz#0d0917907b0d613f7d93a8c7575152ac0a512d43"
12951295

12961296
12971297
version "0.0.1"
@@ -4026,11 +4026,11 @@ sax@^1.2.4:
40264026
version "1.2.4"
40274027
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
40284028

4029-
4030-
version "2.2.12"
4031-
resolved "https://registry.yarnpkg.com/scroll-into-view-if-needed/-/scroll-into-view-if-needed-2.2.12.tgz#71ca681c0f2433edcc03d214da8d0b6600a959bf"
4029+
4030+
version "2.2.13"
4031+
resolved "https://registry.yarnpkg.com/scroll-into-view-if-needed/-/scroll-into-view-if-needed-2.2.13.tgz#1ddad92c1dc37695c9992e05f56a2fc0873330ff"
40324032
dependencies:
4033-
compute-scroll-into-view "1.0.3"
4033+
compute-scroll-into-view "1.0.4"
40344034

40354035
40364036
version "15.8.0"

0 commit comments

Comments
 (0)