Closed rashdeva closed 6 years ago
+1. Stack with same problem with infinity scrolling.
It's a nice idea to use "getter", but unfortunately this solution will not work, because "scrollFinish" requires another parameters to be properly recalculated.
Here should be used "defineDimensions".
I will think about how to detect if the DOM was changed and run "defineDimensions".
Hi!
If our page can adding elements which change height of window, scrollFinish still have first defined value.
For example. Body height is 1000px. Then we add new element with 1000px height and now body height is 2000px. But scrollFinish is 1000px anyway.
Maybe you will use getter, won't you?