Reputation: 3193
I have a simple drop menu I'm building in jquery. The code is here: http://jsfiddle.net/7Gpww/
it all seems fine, but if you move the mouse around a bit manically and don't wait for the full menu to load before you move to the next one, it'll hang. so for example, if I run the mouse across all the menu items quickly, letting the animation start but not get to the end, and then go back to SUPPORT for example, the dropdown menu will only load about half the items, like it's forgotten how long the <ul>
should actually be.
I keep running into this in a few places. is there a way around this?
Thanks in advance
Upvotes: 3
Views: 181
Reputation: 337714
I've updated your fiddle: http://jsfiddle.net/7Gpww/1/
You were almost there, you just needed to add calls to the .stop()
function before each new animation to clear the previously queued animations.
Upvotes: 3