sync scroll after syntax highlight update
This commit is contained in:
parent
0d8436aec6
commit
2b653ac8a1
|
@ -902,6 +902,7 @@ export class QuickReply {
|
||||||
`<div>${hljs.highlight(`${message.value}${message.value.slice(-1) == '\n' ? ' ' : ''}`, { language:'stscript', ignoreIllegals:true })?.value}</div>`,
|
`<div>${hljs.highlight(`${message.value}${message.value.slice(-1) == '\n' ? ' ' : ''}`, { language:'stscript', ignoreIllegals:true })?.value}</div>`,
|
||||||
{ childrenOnly: true },
|
{ childrenOnly: true },
|
||||||
);
|
);
|
||||||
|
updateScrollDebounced();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let lastSyntaxUpdate = 0;
|
let lastSyntaxUpdate = 0;
|
||||||
|
|
Loading…
Reference in New Issue