Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed stutter on opening scrollback

  • Loading branch information...
commit 21e7e353a21d044d13ff7f063a95cf8fd9c20f8a 1 parent 603d933
Josh Ellithorpe authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  simplechat.js
3  simplechat.js
@@ -6,7 +6,8 @@ if (Meteor.is_client) {
6 6
     var messages = Messages.find({user: { $exists: true }, text: { $exists: true }, date: { $exists: true}, formatted_date: { $exists: true} }, { sort: {date: 1} });
7 7
     var handle = messages.observe({
8 8
       added: function (message) {
9  
-        $('#chat').animate({ scrollTop: 9999999999 }, 1);        
  9
+        $('#chat').stop();
  10
+        $('#chat').animate({ scrollTop: 9999999999 }, 10);        
10 11
       }
11 12
     });
12 13
     

0 notes on commit 21e7e35

Please sign in to comment.
Something went wrong with that request. Please try again.