From: Cory Chaplin Date: Wed, 12 Feb 2014 23:15:58 +0000 (+0100) Subject: Fix auto-scrolling on applets X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8c5113954de1bde45048e98252331716cd42a79e;p=KiwiIRC.git Fix auto-scrolling on applets --- diff --git a/client/src/views/channel.js b/client/src/views/channel.js index cac5365..fb8caaf 100644 --- a/client/src/views/channel.js +++ b/client/src/views/channel.js @@ -209,7 +209,7 @@ _kiwi.view.Channel = _kiwi.view.Panel.extend({ } }).apply(this); - this.scrollToBottom(); + if(this.model.isActive()) this.scrollToBottom(); // Make sure our DOM isn't getting too large (Acts as scrollback) this.msg_count++; diff --git a/client/src/views/panel.js b/client/src/views/panel.js index 3827def..b73fb4d 100644 --- a/client/src/views/panel.js +++ b/client/src/views/panel.js @@ -57,7 +57,7 @@ _kiwi.view.Panel = Backbone.View.extend({ _kiwi.app.view.doLayout(); - this.scrollToBottom(true); + if(!this.model.applet) this.scrollToBottom(true); },