Skip to content

Fix top visible scrolling #71

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

Closed

Conversation

observstream
Copy link

This is a fix for #70. This changes only one test to allow for the adding of $timeout to the calculateProperties function.

@dhilt
Copy link
Member

dhilt commented Mar 23, 2016

Thanks for your contribution. We have researched a problem and made a decision to fix it in a minimal way: just two lines of code which are pretty enough to let topVisible property to be recalculated during scrolling without fetching. Note that $scope.$apply runs digest cycle only for scroller scope while $timeout forces digest for all available scopes in the App... May it is a good time to think about other $timeout's optimization?

Also I've added a group of 4 tests on topVisible property. The last test fails without this fix.

Thanks again!

@dhilt dhilt closed this Mar 23, 2016
@observstream observstream deleted the fix-top-visible-scrolling branch March 23, 2016 14:38
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