Fix for too eager scrolling to bottom when the scroll isn't actually stick to the bottom before resizing the window

This commit is contained in:
adambar 2015-07-15 08:08:36 +02:00 committed by lilia
parent 1498d90b58
commit d93bacb76e

View file

@ -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();