Merge pull request #2508 from ether/fix-chat-scroll

Fix chat scroll
pull/2509/head
John McLear 2015-02-08 14:35:59 +00:00
commit 5c31d1f528
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ var chat = (function()
if(!self.lastMessage || !self.lastMessage.position() || self.lastMessage.position().top < $('#chattext').height()) {
// if we use a slow animate here we can have a race condition when a users focus can not be moved away
// from the last message recieved.
$('#chattext').animate({scrollTop: $('#chattext')[0].scrollHeight}, "fast");
$('#chattext').animate({scrollTop: $('#chattext')[0].scrollHeight}, { duration: 400, queue: false });
self.lastMessage = $('#chattext > p').eq(-1);
}
}