From d93bacb76e4e17acd42af794756e0a7a05ad06e4 Mon Sep 17 00:00:00 2001 From: adambar Date: Wed, 15 Jul 2015 08:08:36 +0200 Subject: [PATCH] Fix for too eager scrolling to bottom when the scroll isn't actually stick to the bottom before resizing the window --- js/views/message_list_view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/views/message_list_view.js b/js/views/message_list_view.js index d02b9ea2..b8d963ad 100644 --- a/js/views/message_list_view.js +++ b/js/views/message_list_view.js @@ -27,7 +27,8 @@ itemView: Whisper.MessageView, events: { 'add': 'scrollToBottom', - 'update *': 'scrollToBottom' + 'update *': 'scrollToBottom', + 'scroll': 'measureScrollPosition' }, measureScrollPosition: function() { scrollPosition = this.$el.scrollTop() + this.$el.outerHeight();