From a1c797fb131d50fbc52f083556e6a1de3a77cdd4 Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Mon, 27 Feb 2023 21:19:04 +0200 Subject: [PATCH] Better scrolling (I hope) --- public/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index 0e9331d1c..5497f2662 100644 --- a/public/index.html +++ b/public/index.html @@ -1799,7 +1799,7 @@ // update indicator and scroll down typingIndicator.find('.typing_indicator_name').text(characters[chId].name); $('#chat').append(typingIndicator); - typingIndicator.fadeTo(250, 1, function() { + typingIndicator.show(250, function() { typingIndicator.get(0).scrollIntoView({behavior: 'smooth'}); }); @@ -1814,7 +1814,7 @@ } // hide and reapply the indicator to the bottom of the list - typingIndicator.fadeTo(250, 0); + typingIndicator.hide(250); $('#chat').append(typingIndicator); }