fixed typo in 1-endless-page
This commit is contained in:
parent
1a2982650d
commit
6d29e74372
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ For instance, if the height of the whole HTML document is 2000px, then:
|
|||
document.documentElement.getBoundingClientRect().top = 0
|
||||
|
||||
// window-relative bottom = 2000
|
||||
// the document is long, so that is probably far beyound the window bottom
|
||||
// the document is long, so that is probably far beyond the window bottom
|
||||
document.documentElement.getBoundingClientRect().bottom = 2000
|
||||
```
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ Like this:
|
|||
|
||||
Please note two important features of the scroll:
|
||||
|
||||
1. **The scroll is "elastic".** We can scroll a little beyound the document start or end in some browsers/devices (empty space below is shown, and then the document will automatically "bounces back" to normal).
|
||||
1. **The scroll is "elastic".** We can scroll a little beyond the document start or end in some browsers/devices (empty space below is shown, and then the document will automatically "bounces back" to normal).
|
||||
2. **The scroll is imprecise.** When we scroll to page end, then we may be in fact like 0-50px away from the real document bottom.
|
||||
|
||||
So, "scrolling to the end" should mean that the visitor is no more than 100px away from the document end.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue