ElemeFE / vue-infinite-scroll

An infinite scroll directive for vue.js.
2.86k stars 416 forks source link

Infinite scroll logic does not fire on browser resize. #72

Open pulekies opened 7 years ago

pulekies commented 7 years ago

Infinite scroll logic should fire when the browser resizes.

How to repro: 1) Open the infinite scrolling page when the browser height is very small. 2) Resize the browser to make it much taller.

Expected: The infinite scroll logic fires and more items are loaded.

Actual: Infinite scroll logic does not fire, no more items are loaded. Attempting to scroll does nothing since there is no scrollbar (there isn't enough content yet to need one).

soanvig commented 7 years ago

Fix should be easy and include listening to window resize, using throttle the scroll event uses.