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:
parent
1498d90b58
commit
d93bacb76e
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue