Skip to content

Commit 1c7557c

Browse files
authored
Merge pull request javascript-tutorial#272 from shihao7i/1-endless-page
fixed typo in 1-endless-page
2 parents 4aa190b + 6d29e74 commit 1c7557c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

2-ui/3-event-details/8-onscroll/1-endless-page/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ For instance, if the height of the whole HTML document is 2000px, then:
1818
document.documentElement.getBoundingClientRect().top = 0
1919

2020
// window-relative bottom = 2000
21-
// the document is long, so that is probably far beyound the window bottom
21+
// the document is long, so that is probably far beyond the window bottom
2222
document.documentElement.getBoundingClientRect().bottom = 2000
2323
```
2424

2-ui/3-event-details/8-onscroll/1-endless-page/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Like this:
1212

1313
Please note two important features of the scroll:
1414

15-
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).
15+
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).
1616
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.
1717

1818
So, "scrolling to the end" should mean that the visitor is no more than 100px away from the document end.

0 commit comments

Comments
 (0)