[Website] Queue buildup on dropdown

This subforum contains all the issues which we already resolved.
pokuit
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Apr 11, 2015 10:26 am
Contact:

[Website] Queue buildup on dropdown

Post 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/
User avatar
Gandalf
Filter Inserter
Filter Inserter
Posts: 294
Joined: Fri Dec 19, 2014 10:15 pm
Contact:

Re: [Website] Queue buildup on dropdown

Post 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)
OS: Linux Mint 19 x64 | desktop: Awesome 4.2  |  Intel Core i5 8600k  |  16GB DDR4  |  NVidia GTX 1050 Ti (driver version: 410.104)    (2019-03)
slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: [Website] Queue buildup on dropdown

Post by slpwnd »

Thanks for the report guys. The stop solution works quite well.
Post Reply

Return to “Resolved Problems and Bugs”