mirror of
https://github.com/mastodon/mastodon.git
synced 2025-02-06 06:55:04 +00: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…
Reference in New Issue
Block a user