tkahn/Smooth-Div-Scroll — pull request #1 by geraldcor (2012-02-27 20:28:19+00:00)
Title: Continuous Scrolling Updates

Hello Thomas,

Here are my code updates to allow for continuous scrolling while using hotspots. In 1.1 I also changed the algorithm for the hotspot speed change based on cursor position to make it more uniform and match the right hotspot.

In 1.2 I tried to follow your new "ing" conventions as much as possible (and made a change in 1.1 to stick with the old non-ing convention).

Basically all I did was copy your autoscrolling code but had the hotspots call it as well as autoscrolling. I set up two new functions to accomplish this. Feel free to optimize to your heart's content or ask me to do more optimizations as well. I tested 1.1 and 1.2 and they both appear to be working as planned.

Let me know if you need anything from me.

Greg