1

On clicking a link I'm using ajax to refresh the contents of a div, and then using scrollTop to move to the top of the content. The problem is, for a second or two after the animation, if you try to scroll down, the page scrolls back up. The only way to get around it is with a fast animation, but I want to keep it a little bit slow so the user can see what is happening. It's like its still running the animation.

4

1 回答 1

0

Try using serialScroll and scrollTo instead of the native jQuery scrolling for more advanced features. Flesler's scrollTo allows the user mouse scroll to interrupt the current action. You can see it the demo

于 2012-04-22T21:03:51.377 回答