4 ms·
Thank you for this comment! Suddenly 'bouncing' makes total sense as a mental image when before it only vaguely tracked in some abstract way about tons of tiny
by davnicwil 1y ago
Thank you for this comment! Suddenly 'bouncing' makes total sense as a mental image when before it only vaguely tracked in some abstract way about tons of tiny events bouncing around and triggering things excitedly until you contain them with debounce() :-)
Come to think of it throttle is the much easier to understand analogy.
- Izkata 1y agoThrottling is a different thing though. Debouncing is waiting until the input has stopped occurring so it can run on the final result, throttling is running immediately on the first input and blocking further input for a short duration.
- davnicwil 1y agothanks - I know :-) ambiguous phrasing! Just saying of the two throttling is the one that has the more well-known physical analogy