mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-16 17:29:14 +00:00
[Glitch] Change language detection debouncing behavior to refresh at least once every 1.5 seconds
Port 85668becde to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user