Travis build: 391
This commit is contained in:
@ -6,9 +6,10 @@ Use `scrollY`, `scrollHeight` and `clientHeight` to determine if the bottom of t
|
||||
|
||||
```js
|
||||
const bottomVisible = () =>
|
||||
document.documentElement.clientHeight + window.scrollY >= (document.documentElement.scrollHeight || document.documentElement.clientHeight);
|
||||
document.documentElement.clientHeight + window.scrollY >=
|
||||
(document.documentElement.scrollHeight || document.documentElement.clientHeight);
|
||||
```
|
||||
|
||||
```js
|
||||
bottomVisible() // true
|
||||
bottomVisible(); // true
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user