cleaner fix for queue issue

pull/2508/head
John McLear 2015-02-08 14:34:48 +00:00
parent 1652ed42c5
commit 7adcd5cba4
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);
}
}