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,
|
itemView: Whisper.MessageView,
|
||||||
events: {
|
events: {
|
||||||
'add': 'scrollToBottom',
|
'add': 'scrollToBottom',
|
||||||
'update *': 'scrollToBottom'
|
'update *': 'scrollToBottom',
|
||||||
|
'scroll': 'measureScrollPosition'
|
||||||
},
|
},
|
||||||
measureScrollPosition: function() {
|
measureScrollPosition: function() {
|
||||||
scrollPosition = this.$el.scrollTop() + this.$el.outerHeight();
|
scrollPosition = this.$el.scrollTop() + this.$el.outerHeight();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue