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:
Gnome Ann 2021-09-27 18:10:33 -04:00
parent 09d540b580
commit fff095b496
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}