v1.0.19
This commit is contained in:
1 parent
4b430340db
commit
9c451aedf9
120 files changed
+7777
-6046
No files matched your search
@@ -33,6 +33,9 @@
|
||||
let wordWrap = $state(true);
|
||||
let fontSize = $state(12);
|
||||
|
||||
// RAF-based auto-scroll
|
||||
let scrollRafPending = false;
|
||||
|
||||
// Search state
|
||||
let logSearchActive = $state(false);
|
||||
let logSearchQuery = $state('');
|
||||
@@ -51,9 +54,13 @@
|
||||
// Auto-scroll when logs change
|
||||
$effect(() => {
|
||||
if (autoScroll && logsRef && logs) {
|
||||
setTimeout(() => {
|
||||
logsRef.scrollTop = logsRef.scrollHeight;
|
||||
}, 50);
|
||||
if (!scrollRafPending) {
|
||||
scrollRafPending = true;
|
||||
requestAnimationFrame(() => {
|
||||
if (logsRef) logsRef.scrollTop = logsRef.scrollHeight;
|
||||
scrollRafPending = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user