From 6fef2853cd6e81986ed9747ac42533d556c1d6ac Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Sat, 7 Oct 2017 15:20:27 +0000 Subject: [PATCH] No scroll if user is not fully scrolled down in messages --- webapp/titanembeds/static/js/embed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index b396180..6bb84d5 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -870,7 +870,7 @@ message_users_cache[usrcachekey]["msgs"].push(message.id); last = message.id; } - if (replace == null) { + if (replace == null && jumpscroll) { $("html, body").animate({ scrollTop: $(document).height() }, "slow"); } $('#chatcontent').linkify({