Use scrollStop in chat (#5326)

This commit is contained in:
Anil Mandepudi
2016-12-29 11:25:05 -08:00
committed by Julian Lam
parent 8df47f333e
commit 8ddf7eb922
2 changed files with 6 additions and 3 deletions

View File

@@ -8,8 +8,9 @@ define('chat', [
'sounds',
'forum/chats',
'forum/chats/messages',
'translator'
], function (components, taskbar, S, sounds, Chats, ChatsMessages, translator) {
'translator',
'scrollStop'
], function (components, taskbar, S, sounds, Chats, ChatsMessages, translator, scrollStop) {
var module = {};
var newMessage = false;
@@ -196,6 +197,8 @@ define('chat', [
handle: '.modal-header'
});
});
scrollStop.apply(chatModal.find('[component="chat/messages"]'));
chatModal.find('#chat-close-btn').on('click', function () {
module.close(chatModal);