From b7fb17591c6dec5d3ca5cf17593618e21aac7d03 Mon Sep 17 00:00:00 2001 From: ebolam Date: Wed, 5 Oct 2022 15:57:49 -0400 Subject: [PATCH] Fix --- static/koboldai.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/koboldai.js b/static/koboldai.js index c37b5f5e..70059876 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -588,7 +588,7 @@ function var_changed(data) { //We are adding new game text to the screen (not past actions) console.log("Scrolling to 'Selected Text Chunk '"+actions[actions.length-1].id); console.log(document.getElementById('Selected Text Chunk '+actions[actions.length-1].id)); - setTimeout(function() {document.getElementById('Selected Text Chunk '+actions[actions.length-1].id).scrollIntoView(false);}, 200); + setTimeout(function() {document.getElementById('Selected Text Chunk '+actions[actions.length-1].id).scrollIntoView(false);}, 20); //If this is the first add, then we need to set our scroll trigger up if (document.getElementsByClassName("rawtext").length == actions.length+1) { scroll_trigger_element = document.getElementById('Selected Text Chunk '+actions[0].id);