Skip to content

Prevented negative scrolling - #17

Open
simonrobb wants to merge 1 commit into
oblador:masterfrom
simonrobb:master
Open

Prevented negative scrolling#17
simonrobb wants to merge 1 commit into
oblador:masterfrom
simonrobb:master

Conversation

@simonrobb

Copy link
Copy Markdown

On browsers with rubber-band scrolling, scrolling beyond the top of the
document leads to undesirable displacement of the image. This fix
prevents scrolling beyond the bounds of the document.

On browsers with rubber-band scrolling, scrolling beyond the top of the
document leads to undesirable displacement of the image. This fix
prevents scrolling beyond the bounds of the document.
@oblador

oblador commented Aug 18, 2014

Copy link
Copy Markdown
Owner

There's a min/max setting in the createAnimator function, maybe that's enough? Personally I think it sometimes can be nice for the animation to continue below 0.

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