Skip to content

Commit

Permalink
Fixed stutter on opening scrollback
Browse files Browse the repository at this point in the history
  • Loading branch information
zquestz committed Jul 28, 2012
1 parent 603d933 commit 21e7e35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simplechat.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ if (Meteor.is_client) {
var messages = Messages.find({user: { $exists: true }, text: { $exists: true }, date: { $exists: true}, formatted_date: { $exists: true} }, { sort: {date: 1} });
var handle = messages.observe({
added: function (message) {
$('#chat').animate({ scrollTop: 9999999999 }, 1);
$('#chat').stop();
$('#chat').animate({ scrollTop: 9999999999 }, 10);
}
});

Expand Down

0 comments on commit 21e7e35

Please sign in to comment.