sync scroll after syntax highlight update

This commit is contained in:
LenAnderson 2024-07-22 18:25:16 -04:00
parent 0d8436aec6
commit 2b653ac8a1
1 changed files with 1 additions and 0 deletions

View File

@ -902,6 +902,7 @@ export class QuickReply {
`<div>${hljs.highlight(`${message.value}${message.value.slice(-1) == '\n' ? ' ' : ''}`, { language:'stscript', ignoreIllegals:true })?.value}</div>`,
{ childrenOnly: true },
);
updateScrollDebounced();
}
};
let lastSyntaxUpdate = 0;