Don't scroll down on event notifications
(when user manually scrolled up). Updates #352
This commit is contained in:
parent
28f5ee855b
commit
6dcafb5b2c
@ -1420,8 +1420,11 @@
|
||||
if (!keep_old) {
|
||||
this.clearStatusNotification();
|
||||
}
|
||||
var was_at_bottom = this.$content.scrollTop() + this.$content.innerHeight() >= this.$content[0].scrollHeight;
|
||||
this.$content.append($('<div class="chat-info chat-event"></div>').text(message));
|
||||
this.scrollDown();
|
||||
if (was_at_bottom) {
|
||||
this.scrollDown();
|
||||
}
|
||||
},
|
||||
|
||||
clearChatRoomMessages: function (ev) {
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
## 0.10.1 (Unreleased)
|
||||
|
||||
- #352 When the user has manually scrolled up in a chat window, don't scroll
|
||||
down on chat event notifications. [jcbrand]
|
||||
- #524 Added `auto_join_on_invite` parameter for automatically joining chatrooms. [ben]
|
||||
- #521 Not sending presence when connecting after disconnection. [jcbrand]
|
||||
- #536 Presence not sent out (in cases where it should) after page refresh. [jcbrand]
|
||||
|
Loading…
Reference in New Issue
Block a user