Skip to content

Commit

Permalink
Merge pull request ether#2508 from ether/fix-chat-scroll
Browse files Browse the repository at this point in the history
Fix chat scroll
  • Loading branch information
JohnMcLear committed Feb 8, 2015
2 parents 4e3c106 + ebff7d1 commit 5c31d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/static/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 5c31d1f

Please sign in to comment.