d-oliveros / ngSmoothScroll

AngularJS directives for animating smooth scrolling to elements.
276 stars 110 forks source link

When page is scrolled to the bottom, scroll-to does not work #21

Open ashakiddyup opened 9 years ago

ashakiddyup commented 9 years ago

When page is scrolled to the bottom, scroll-to does not work. I found an work around for this as below

var getScrollLocation = function() { return window.pageYOffset ? window.pageYOffset -1: document.documentElement.scrollTop-1; };

or var startLocation = getScrollLocation()-1,

Could you fix this please?

rebelliard commented 9 years ago

I can confirm the bug.

zsoltszabo commented 9 years ago

I have the bug too

cyrilepinat commented 9 years ago

I confirm this bug too on IE10

harm-less commented 8 years ago

It happens in Firefox too. In Chrome however it does work...