Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: continuously trigger scroll if spinner slot is bigger than scrollParent in Chrome #226

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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