mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Disabled another scroll. Performance appears better.
This commit is contained in:
@@ -299,7 +299,7 @@ function do_story_text_updates(data) {
|
|||||||
item.original_text = data.value.action['Selected Text'];
|
item.original_text = data.value.action['Selected Text'];
|
||||||
item.setAttribute("world_info_uids", "");
|
item.setAttribute("world_info_uids", "");
|
||||||
item.classList.remove("pulse")
|
item.classList.remove("pulse")
|
||||||
item.scrollIntoView();
|
//item.scrollIntoView();
|
||||||
if (item.textContent != "") {
|
if (item.textContent != "") {
|
||||||
assign_world_info_to_action(item, null);
|
assign_world_info_to_action(item, null);
|
||||||
}
|
}
|
||||||
@@ -315,8 +315,8 @@ function do_story_text_updates(data) {
|
|||||||
|
|
||||||
|
|
||||||
story_area.append(span);
|
story_area.append(span);
|
||||||
//clearTimeout(game_text_scroll_timeout);
|
clearTimeout(game_text_scroll_timeout);
|
||||||
//game_text_scroll_timeout = setTimeout(function() {document.getElementById("Selected Text").scrollTop = document.getElementById("Selected Text").scrollHeight;}, 200);
|
game_text_scroll_timeout = setTimeout(function() {document.getElementById("Selected Text").scrollTop = document.getElementById("Selected Text").scrollHeight;}, 500);
|
||||||
if (span.textContent != "") {
|
if (span.textContent != "") {
|
||||||
assign_world_info_to_action(span, null);
|
assign_world_info_to_action(span, null);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user