Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit 71136d6

Browse files
committed
fix(readme): incorrect external onScroll example
1 parent 5f71a61 commit 71136d6

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
@@ -147,9 +147,9 @@ import scrollManager from "scroll-utility"
147147

148148
scrollManager.onScroll = (external) => {
149149
if (external) {
150-
console.log("this 'scroll-utility' scrolled")
151-
} else {
152150
console.log("external scroll") // ussualy the user via the mouse or keyboard, or some other script running in the browser
151+
} else {
152+
console.log("this 'scroll-utility' scrolled")
153153
}
154154
```
155155

0 commit comments

Comments
 (0)