diff --git a/2-ui/3-event-details/8-onscroll/1-endless-page/solution.md b/2-ui/3-event-details/8-onscroll/1-endless-page/solution.md index f7412bd4..f1f4bd85 100644 --- a/2-ui/3-event-details/8-onscroll/1-endless-page/solution.md +++ b/2-ui/3-event-details/8-onscroll/1-endless-page/solution.md @@ -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 ```