Merge pull request #520 from BriFuture/master
fixed wrong annotation at line 38 and 40
This commit is contained in:
commit
39991afee6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue