oblador / angular-parallax

Lightweight & performant parallax scrolling for angular.js.
http://oblador.github.io/angular-parallax/
MIT License
203 stars 44 forks source link

Prevented negative scrolling #17

Open simonrobb opened 10 years ago

simonrobb commented 10 years ago

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 commented 10 years ago

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.