mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-02 21:13:02 -05:00
Change language detection debouncing behavior to refresh at least once every 1.5 seconds (#33770)
This commit is contained in:
parent
82183d8a79
commit
85668becde
@ -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