Page 1 of 1

[Website] Queue buildup on dropdown

Posted: Sat Apr 11, 2015 10:40 am
by pokuit
When you hover over the dropdown menus on the main factorio website a couple times before the jquery slide down animation is complete the queue builds up and the animations play out even if the mouse is no longer present.

Example:
Image

Suggested code fix:
https://www.diffchecker.com/dbon8wj7
By calling stop() before animating with slideDown() or slideUp() it empties the animation queue which prevents build up

Further Reading:
https://api.jquery.com/stop/

Re: [Website] Queue buildup on dropdown

Posted: Mon Jul 06, 2015 9:30 pm
by Gandalf
Heh, that is fun! :D

Make dropdowns with CSS only! Lot's of tutorials on the web and compatibility has caught up pretty well. x)

Re: [Website] Queue buildup on dropdown

Posted: Tue Jul 07, 2015 2:35 pm
by slpwnd
Thanks for the report guys. The stop solution works quite well.