From 7b31190b93b00899430945c771dee90257af8b5c Mon Sep 17 00:00:00 2001 From: ebolam Date: Tue, 4 Oct 2022 20:21:23 -0400 Subject: [PATCH] Bug Fix for Scrolling --- static/koboldai.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/koboldai.js b/static/koboldai.js index 3c932655..6cf071f3 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -579,9 +579,9 @@ function var_changed(data) { if (actions.length > 0) { if ((scroll_trigger_element == undefined) || (actions[actions.length-1].id < parseInt(scroll_trigger_element.getAttribute("chunk")))) { if (scroll_trigger_element != undefined) { - scroll_trigger_element.scrollIntoView(); + scroll_trigger_element.scrollIntoView(false); } else { - document.getElementById("Selected Text Chunk "+actions[actions.length-1].id).scrollIntoView(); + document.getElementById("Selected Text Chunk "+actions[actions.length-1].id).scrollIntoView(false); } scroll_trigger_element = document.getElementById("Selected Text Chunk "+actions[0].id);