iohook icon indicating copy to clipboard operation
iohook copied to clipboard

throttling or debouncing interval [feature erequest]

Open damianobarbati opened this issue 6 years ago • 1 comments

Would it be possible to add some kind of configuration to receive at-most on event every n seconds? Without implementing this manually in user-space with lodash.debounce?

damianobarbati avatar May 23 '18 12:05 damianobarbati

Not likely. The issue I see here is that an IO capture library should capture all events, implementing some form of filter should be something added-on, not a part or feature of the capture solution. Debouncing is the wrong term here too. The possible use for such a feature would be time-delimited repetitive action activated on IO events, but not debouncing. This will be left open as a feature request and the way I think this should be implemented (if implemented) would be something like a frequency filter iohook.setFrequency('mousemove', 0.2) (1 of every 5 consecutive mousemove events will be propagated) or something similar.

ash0x0 avatar Jun 11 '21 19:06 ash0x0