-
Hi, what is the best way to implement debouncing of |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I am sorry, what do you mean with "debouncing"? |
Beta Was this translation helpful? Give feedback.
-
Ah! Currently that's implemented in the client. Do you need that for click events too? |
Beta Was this translation helpful? Give feedback.
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?