Merge pull request #520 from BriFuture/master

fixed wrong annotation at line 38 and 40
This commit is contained in:
Ilya Kantor 2018-09-30 23:49:18 +03:00 committed by GitHub
commit 39991afee6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,9 +35,9 @@ When we scroll till the end, assuming that the window height is `600px`:
```js ```js
// document top is above the window 500px // document top is above the window 1400px
document.documentElement.getBoundingClientRect().top = -1400 document.documentElement.getBoundingClientRect().top = -1400
// document bottom is 500px closer // document bottom is below the window 600px
document.documentElement.getBoundingClientRect().bottom = 600 document.documentElement.getBoundingClientRect().bottom = 600
``` ```