scroll only when needed (#1441)

I believe this was just a simple typo

// FREEBIE
This commit is contained in:
Michael Kirk 2017-09-07 12:55:31 -04:00 committed by Scott Nonnenberg
parent af81b1a045
commit f389380b26
No known key found for this signature in database
GPG key ID: A4931C09644C654B

View file

@ -48,7 +48,7 @@
this.$el.scrollTop(this.scrollPosition - this.$el.outerHeight());
},
scrollToBottomIfNeeded: function() {
if (this.atBottom()) {
if (!this.atBottom()) {
this.scrollToBottom();
}
},