Home › Forums › JavaScript › jQuery animation flickers during scroll (Please Help) › Re: jQuery animation flickers during scroll (Please Help)
December 29, 2012 at 7:59 pm
#119350
DustinWoods
Member
Add this:
return false;
to the last line of _scrollThis()_. When you use mousewheel, you need to return false if you don’t want the user’s action to actually move the scrollbar. What’s happening in your code, is when the user scrolls the mouse wheel, the scrollbar is moving _and_ your javascript is firing. You just want your javascript to fire and ignore the native behavior.