The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Christmas story with Santa sleigh progress bar Reply To: Christmas story with Santa sleigh progress bar


I was thinking 500ms exactly. Then a twilight zone between about 300-500ms where keeping the events throttled (and in some cases slightly delayed) might not be very noticeable – and anything shorter than that is probably not considered a deliberate user action anyway, so not continually throttling can make the start of new sequence fire quit randomly right after a debounce.

So that extra condition looks spot on. :-)

It certainly makes events have a nice flow, starting and ending with one – with everything in between having exactly the delay time. In some cases the debounce of the original function could become somewhat erratic. Up to twice the delay time, which with the earlier logic would become noticeable from around 250ms on.

I think I’ll be using this one a lot. B-)