Skip to content

Commit 965affd

Browse files
committed
Add note about not using body by itself for scrollElement option
1 parent f040c54 commit 965affd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ for `$.smoothScroll`:
130130
}
131131
```
132132

133+
#### Note:
134+
If you use `$.smoothScroll`, do NOT use the `body` element (`document.body` or `$('body')`) alone for the `scrollElement` option. Probably not a good idea to use `document.documentElement` (`$('html')`) by itself either.
135+
133136
### $.fn.scrollable
134137

135138
* Selects the matched element(s) that are scrollable. Acts just like a

0 commit comments

Comments
 (0)