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 7138ab1 commit 1334f95Copy full SHA for 1334f95
README.md
@@ -22,6 +22,20 @@ var Scrollparent = require("scrollparent");
22
Scrollparent(document.getElementById("inside-a-scrolling-div")) // HTMLDivElement
23
```
24
25
+## Note about the root scrolling element
26
+
27
+Internally, the root scrolling element is determined in this library
28
+as the result of
29
30
+```js
31
+document.scrollingElement || document.htmlElement
32
+```
33
34
+This should give a usable result in most browsers today
35
+but if you want to ensure full support
36
+you should use a `document.scrollingElement` polyfill such as
37
+[this one](https://github.com/mathiasbynens/document.scrollingElement).
38
39
## Contributors
40
41
* Ola Holmström (@olahol)
0 commit comments