No scroll if user is not fully scrolled down in messages

This commit is contained in:
Jeremy Zhang 2017-10-07 15:20:27 +00:00
parent 2422ec0e28
commit 6fef2853cd

View File

@ -870,7 +870,7 @@
message_users_cache[usrcachekey]["msgs"].push(message.id); message_users_cache[usrcachekey]["msgs"].push(message.id);
last = message.id; last = message.id;
} }
if (replace == null) { if (replace == null && jumpscroll) {
$("html, body").animate({ scrollTop: $(document).height() }, "slow"); $("html, body").animate({ scrollTop: $(document).height() }, "slow");
} }
$('#chatcontent').linkify({ $('#chatcontent').linkify({