mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-09 00:12:13 -05:00
[Glitch] Change language detection debouncing behavior to refresh at least once every 1.5 seconds
Port 85668becdee8eb91bd999a5a58d01979c532e1c0 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
2c97a59148
commit
73f599a99e
@ -73,4 +73,4 @@ const guessLanguage = (text) => {
|
||||
|
||||
export const debouncedGuess = debounce((text, setGuess) => {
|
||||
setGuess(guessLanguage(text));
|
||||
}, 500, { leading: true, trailing: true });
|
||||
}, 500, { maxWait: 1500, leading: true, trailing: true });
|
||||
|
Loading…
x
Reference in New Issue
Block a user