Merge pull request #272 from shihao7i/1-endless-page

fixed typo in 1-endless-page
This commit is contained in:
Ilya Kantor 2017-11-01 10:44:40 +03:00 committed by GitHub
commit 1c7557cd42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ For instance, if the height of the whole HTML document is 2000px, then:
document.documentElement.getBoundingClientRect().top = 0 document.documentElement.getBoundingClientRect().top = 0
// window-relative bottom = 2000 // 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 document.documentElement.getBoundingClientRect().bottom = 2000
``` ```

View file

@ -12,7 +12,7 @@ Like this:
Please note two important features of the scroll: 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. 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. So, "scrolling to the end" should mean that the visitor is no more than 100px away from the document end.