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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix positionFromTop when scrolling window after window resize #548

Merged
merged 1 commit into from
Jan 20, 2017
Merged

Fix positionFromTop when scrolling window after window resize #548

merged 1 commit into from
Jan 20, 2017

Conversation

andrewbranch
Copy link
Contributor

Fixes #544 馃槺

I am unable to explain why this fixes the issue, but I can verify that it does. The getScrollTop(container) term here is necessary when scrolling a custom element. Apparently it breaks things when scrolling window. This keeps the calculation for window scrolling the same as it was pre-8.10.0, while adding the necessary offset to the calculation for scrolling a custom scrollElement.

@bvaughn bvaughn merged commit be389f9 into bvaughn:master Jan 20, 2017
@bvaughn
Copy link
Owner

bvaughn commented Jan 20, 2017

Thanks buddy!

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.

WindowScroller setting incorrect scrollTop after resizing window height
2 participants