Permalink
Browse files

Fixed stutter on opening scrollback

  • Loading branch information...
1 parent 603d933 commit 21e7e353a21d044d13ff7f063a95cf8fd9c20f8a @zquestz committed Jul 28, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 simplechat.js
View
@@ -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);
}
});

0 comments on commit 21e7e35

Please sign in to comment.