From 2b653ac8a17be867839f05f0fdd351a48bb4c937 Mon Sep 17 00:00:00 2001 From: LenAnderson Date: Mon, 22 Jul 2024 18:25:16 -0400 Subject: [PATCH] sync scroll after syntax highlight update --- public/scripts/extensions/quick-reply/src/QuickReply.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/scripts/extensions/quick-reply/src/QuickReply.js b/public/scripts/extensions/quick-reply/src/QuickReply.js index 8b7def730..8e7f9d56f 100644 --- a/public/scripts/extensions/quick-reply/src/QuickReply.js +++ b/public/scripts/extensions/quick-reply/src/QuickReply.js @@ -902,6 +902,7 @@ export class QuickReply { `
${hljs.highlight(`${message.value}${message.value.slice(-1) == '\n' ? ' ' : ''}`, { language:'stscript', ignoreIllegals:true })?.value}
`, { childrenOnly: true }, ); + updateScrollDebounced(); } }; let lastSyntaxUpdate = 0;