Decreate edit textarea debounce duration

This commit is contained in:
Cohee 2024-07-11 15:37:30 +00:00
parent ac9e87bc53
commit 9754d5361f

View File

@ -9237,7 +9237,7 @@ jQuery(async function () {
e.style.height = `${e.scrollHeight + 4}px`;
is_use_scroll_holder = true;
}
const autoFitEditTextAreaDebounced = debouncedThrottle(autoFitEditTextArea, debounce_timeout.standard);
const autoFitEditTextAreaDebounced = debouncedThrottle(autoFitEditTextArea, debounce_timeout.short);
document.addEventListener('input', e => {
if (e.target instanceof HTMLTextAreaElement && e.target.classList.contains('edit_textarea')) {
const immediately = e.target.scrollHeight > e.target.offsetHeight || e.target.value === '';