Skip to content

Commit

Permalink
MessageListView.measureScrollPosition: reuse variables
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnonnenberg committed May 30, 2017
1 parent c5530b7 commit 13a91ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/views/message_list_view.js
Expand Up @@ -33,7 +33,7 @@
this.outerHeight = this.$el.outerHeight();
this.scrollPosition = this.$el.scrollTop() + this.outerHeight;
this.scrollHeight = this.el.scrollHeight;
this.bottomOffset = this.scrollHeight - this.$el.scrollTop() - this.outerHeight;
this.bottomOffset = this.scrollHeight - this.scrollPosition;
},
resetScrollPosition: function() {
this.$el.scrollTop(this.scrollPosition - this.$el.outerHeight());
Expand Down

1 comment on commit 13a91ee

@WhisperBTC
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! BitHub has sent payment of $129.63USD for this commit.

Please sign in to comment.