mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-02 02:26:45 +01:00
Stop all animations before performing scroll-to-bottom
So that if the animation is triggered multiple times you don't have to wait for all the animations to be performed one after the other before you can finally manually scroll.
This commit is contained in:
parent
09d540b580
commit
fff095b496
@ -402,7 +402,7 @@ function hideWaitAnimation() {
|
||||
|
||||
function scrollToBottom() {
|
||||
setTimeout(function () {
|
||||
game_text.animate({scrollTop: game_text.prop('scrollHeight')}, 500);
|
||||
game_text.stop(true).animate({scrollTop: game_text.prop('scrollHeight')}, 500);
|
||||
}, 5);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user