From 85668becdee8eb91bd999a5a58d01979c532e1c0 Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 29 Jan 2025 10:26:06 +0100 Subject: [PATCH] Change language detection debouncing behavior to refresh at least once every 1.5 seconds (#33770) --- .../mastodon/features/compose/util/language_detection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/compose/util/language_detection.js b/app/javascript/mastodon/features/compose/util/language_detection.js index b3be07d516..ed22a2bd9c 100644 --- a/app/javascript/mastodon/features/compose/util/language_detection.js +++ b/app/javascript/mastodon/features/compose/util/language_detection.js @@ -73,4 +73,4 @@ const guessLanguage = (text) => { export const debouncedGuess = debounce((text, setGuess) => { setGuess(guessLanguage(text)); -}, 500, { leading: true, trailing: true }); \ No newline at end of file +}, 500, { maxWait: 1500, leading: true, trailing: true });