[Website] Queue buildup on dropdown
Posted: Sat Apr 11, 2015 10:40 am
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:

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/
Example:

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/