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

animateScroll in conjunction with a full page scroll resets the scroll position on browser resize #36

Closed
tony2nite opened this issue Dec 13, 2010 · 1 comment

Comments

@tony2nite
Copy link

I'm using the full-page scrolling demo as a base, but when I set 'animateScroll' to true, the scroll position resets to zero whenever the browser is resized. I've found an untested fix by making sure animate is not triggered in the initialise function:

if (isMaintainingPositon) {
  scrollToX(lastContentX, false);  // explicitly declare false
  scrollToY(lastContentY, false);  // explicitly declare false
}

This works for me but might break other animate uses(?)

@vitch
Copy link
Owner

vitch commented Jan 30, 2011

Thanks - fixed in 103f255

This issue was closed.
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

No branches or pull requests

2 participants