Skip to content

Commit

Permalink
optimize wording in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hirasso committed Dec 26, 2023
1 parent 5719ff5 commit 5b4d026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ import ScrollMirror from "scrollmirror";
new ScrollMirror(document.querySelectorAll(".scroller"));
```

To mirror the scroll position from and to the `documentElement`, you would have to add one of `:root`, `html` or `body` to the selector:
To mirror the scroll position from and to the `window`, you would have to add one of `:root`, `html` or `body` to the selector:

```js
new ScrollMirror(document.querySelectorAll(':root, .scroller'));
Expand Down

0 comments on commit 5b4d026

Please sign in to comment.