From fecae7d20537783ad24e23b732b27e2b23ef89e6 Mon Sep 17 00:00:00 2001 From: ebolam Date: Thu, 29 Sep 2022 09:00:26 -0400 Subject: [PATCH] Disabled another scroll. Performance appears better. --- static/koboldai.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/koboldai.js b/static/koboldai.js index 000d42b3..164e22a1 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -299,7 +299,7 @@ function do_story_text_updates(data) { item.original_text = data.value.action['Selected Text']; item.setAttribute("world_info_uids", ""); item.classList.remove("pulse") - item.scrollIntoView(); + //item.scrollIntoView(); if (item.textContent != "") { assign_world_info_to_action(item, null); } @@ -315,8 +315,8 @@ function do_story_text_updates(data) { story_area.append(span); - //clearTimeout(game_text_scroll_timeout); - //game_text_scroll_timeout = setTimeout(function() {document.getElementById("Selected Text").scrollTop = document.getElementById("Selected Text").scrollHeight;}, 200); + clearTimeout(game_text_scroll_timeout); + game_text_scroll_timeout = setTimeout(function() {document.getElementById("Selected Text").scrollTop = document.getElementById("Selected Text").scrollHeight;}, 500); if (span.textContent != "") { assign_world_info_to_action(span, null); }