From 13a91eece8740db09e32f2418b2c8dd95bd6ccab Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Tue, 30 May 2017 10:39:42 -0700 Subject: [PATCH] MessageListView.measureScrollPosition: reuse variables --- js/views/message_list_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/views/message_list_view.js b/js/views/message_list_view.js index 53a92bf98354..3d389204b98d 100644 --- a/js/views/message_list_view.js +++ b/js/views/message_list_view.js @@ -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());