From fff095b496b0480e48d90e238497bf2736a84f3c Mon Sep 17 00:00:00 2001 From: Gnome Ann <> Date: Mon, 27 Sep 2021 18:10:33 -0400 Subject: [PATCH] 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. --- static/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/application.js b/static/application.js index 6aea6735..89c8bf7d 100644 --- a/static/application.js +++ b/static/application.js @@ -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); }