In a mousewheel
event handler, I changed a statement that updates a element's scrollTop
:
- list.scrollTop(newScrollTop);
+ list.animate({
+ scrollTop: newScrollTop
+ }, 80);
I added this animate
to make the list scroll smoothly, and it works on Chrome like the original statement.
But on IE7, the animate
version make the scroll unusable, when I scroll, the list move only some 10px on the screen.
What could possibly be the reason of this?