Skip to content

How to implement on_change debouncing? #144

Answered by fscherf
MShekow asked this question in Q&A
Discussion options

You must be logged in to vote

Ah! lona.html.TextInput does something like that by setting its input timeout. The client then delays all input events and discards them if another event gets fired while the timeout is not met (https://github.com/lona-web-org/lona/blob/master/lona/client/input-events.js#L108)

Currently that's implemented in the client. Do you need that for click events too?

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@MShekow
Comment options

Comment options

You must be logged in to vote
3 replies
@MShekow
Comment options

@fscherf
Comment options

@MShekow
Comment options

Answer selected by MShekow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants