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

Adding an extra optional parameter on refresh() that forces the refresh of viewport when set to true #167

Merged
merged 1 commit into from
Jan 25, 2018

Conversation

mateusmeyer
Copy link
Contributor

This fixed a problem where I need to add a item to the beginning (unshift()) of the array. But the viewport wasn't updating, even when calling refresh() manually. The viewport was only updating on user scroll.

This adds an extra optional parameter on refresh() that forces the refresh of viewport when set to true. This allows to bypass the scroll check and, when called, will force the viewport to refresh.

@rintoj rintoj merged commit 7a4348a into rintoj:master Jan 25, 2018
@rintoj
Copy link
Owner

rintoj commented Jan 25, 2018

Thanks for your contribution. Changes are merged and published (v0.3.2)

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.

2 participants