d4nyll/smartscroll

scroll method has hardcoded speed

Closed this issue · 1 comments

I've noticed that there is hardcoded animation speed in scroll method

scrollToPixel(sections[i], 700);

scrollToPixel(sections[i - 1] - $(window).height(), 700);

I believe it should use options.animationSpeed instead of specifying value 700.

You're right @tomashavlas! Thanks for the spot. Fixed it with a commit just now!