Skip to content

Conversation

zmen
Copy link

@zmen zmen commented Jan 24, 2019

DEMO

How to Reproduce

Open the demo in Chrome, wait until the first loading complete. Then scroll to bottom quickly so that the spinner covers the container, you will found it continuously loading data until all data complete.

Description

Generally, the vue-infinite-loading component will be 'pushed' out of viewport as data loading. But if it is bigger than the container, for example, if I use a spinner slot whose height is bigger than the container, it will never be pushed out of viewport until all data complete.
Safari works fine as the scrollTop of container keeps unchanged in this case.

How to Fix

Add an option to reset the scrollTop attribute of the container after loading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant