From a0e72ba6e59756f622f044d4a6513e5f137a3fe9 Mon Sep 17 00:00:00 2001 From: ebolam Date: Fri, 7 Oct 2022 12:20:14 -0400 Subject: [PATCH] Scroll bug fix --- static/koboldai.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/koboldai.js b/static/koboldai.js index f4bfe968..f1581d1a 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -4711,7 +4711,7 @@ function run_infinite_scroll_update(action_type, actions, first_action) { console.log(scroll_trigger_element); } } else if (action_type == "prepend") { - if (Math.min.apply(null,Object.keys(actions_data).map(Number).filter(function(x){return x>0})) == 0) { + if (Math.min.apply(null,Object.keys(actions_data).map(Number).filter(function(x){return x>=0})) == 0) { //We've hit our prompt, so let's unhide it, move it to the begining, and kill the infinite_scroll scroll_trigger_element = undefined; document.getElementById("Selected Text").onscroll = undefined;