3 ms·
This is a delay or added latency, not hysteresis.
by DeathArrow 4y ago
This is a delay or added latency, not hysteresis.
- nmstoker 4y agoTo me, it seems consistent with the definition/origin of the word, ie lagging behind https://en.m.wikipedia.org/wiki/Hysteresis#Etymology_and_history https://en.m.wikipedia.org/wiki/Hysteresis#Etymology_and_his... Maybe you are deriving your sense of the word from examples in physics and engineering where hysteresis is referred to that do not look quite like the situation described in UIs here?
- overlisted 4y agoIt's neither of those terms. I'm not sure if anyone knows this word outside of web dev, but I would call that "debouncing", because all that effect does is ignore input states that haven't stuck for long enough. There's no latency, no lag and no "behind". Only a threshold.
- spacemanmatt 4y agoDebouncing is exactly hysteresis. We often implement it with a very poor digital method but the analog inspiration is a capacitor that must fill before current flows through a closed switch, effecting hysteresis.
- Karliss 4y agoDebouncing using capacitor+schmitt trigger(which even has hysteresis response graph drawn on top) is no doubts a hysteresis. But I wouldn't call all debouncing strategies a hysteresis. One (easy to implement in code) debouncing strategy is lockout - after the first input transition perform the output change immediately and then stop reading any new inputs for some time. This has the benefit of having no delay, but downside is that it amplifies random noise caused by other factors when the switch isn't moving.
- elromulous 4y agoFyi debouncing predates web development by many decades E.g. your keyboard almost certainly has debounce logic implemented on the microcontroller in it. And long before digital circuits existed, it was implemented with capacitors.