fixed wrong annotation at line 38 and 40

This commit is contained in:
周家未 2018-09-28 11:01:15 +08:00 committed by GitHub
parent dac2e71cff
commit 0b79c657bd
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
// document top is above the window 500px
// document top is above the window 1400px
document.documentElement.getBoundingClientRect().top = -1400
// document bottom is 500px closer
// document bottom is below the window 600px
document.documentElement.getBoundingClientRect().bottom = 600
```