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

Suspend VirtualFlow's scroll-related values until after fully rendered #60

Closed
JordanMartinez opened this issue Dec 19, 2017 · 0 comments · Fixed by #78 or #113
Closed

Suspend VirtualFlow's scroll-related values until after fully rendered #60

JordanMartinez opened this issue Dec 19, 2017 · 0 comments · Fixed by #78 or #113
Labels

Comments

@JordanMartinez
Copy link
Contributor

The VirtualFlow's scroll-related values (estimated & total) are calculated based on the average height/width of a given cell's node. When the VirtualFlow is rendering its children, sometimes these averages get recalculated to a different value than they were before the rendering began. After rendering, these values are often set back to what they were before the rendering started.

However, since there is nothing stopping these values from propagating to their public end points (estimated & total scroll X/Y values), anything listening to them or subscribed to them will be updated immediately as well. As a result, one cannot use the scroll values to trigger some change when they are updated, as the layout process itself will always trigger such a change even when one doesn't ultimately occur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant