We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b678ec2 commit b337645Copy full SHA for b337645
README.md
@@ -68,10 +68,10 @@ Put it this way:
68
```js
69
import scrollIntoView from 'scroll-into-view-if-needed'
70
// Even if all you do is this
71
-scrollIntoIntoView(node, { scrollMode: 'if-needed' })
+scrollIntoView(node, { scrollMode: 'if-needed' })
72
// You end up with the same bundlesize as people who need
73
// smooth scrolling to work in browsers that don't support it natively
74
-scrollIntoIntoView(node, { behavior: 'smooth', scrollMode: 'if-needed' })
+scrollIntoView(node, { behavior: 'smooth', scrollMode: 'if-needed' })
75
```
76
77
Because of this you need to choose a strategy that matches your priorities: load time, consistency or quality.
0 commit comments