Scroll bug fix

This commit is contained in:
ebolam
2022-10-07 12:20:14 -04:00
parent 526c5592fe
commit a0e72ba6e5

View File

@@ -4711,7 +4711,7 @@ function run_infinite_scroll_update(action_type, actions, first_action) {
console.log(scroll_trigger_element); console.log(scroll_trigger_element);
} }
} else if (action_type == "prepend") { } 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 //We've hit our prompt, so let's unhide it, move it to the begining, and kill the infinite_scroll
scroll_trigger_element = undefined; scroll_trigger_element = undefined;
document.getElementById("Selected Text").onscroll = undefined; document.getElementById("Selected Text").onscroll = undefined;