only scroll focused tabs
This commit is contained in:
parent
1801244ce5
commit
74762bc916
@ -1555,6 +1555,14 @@
|
||||
updater = {
|
||||
init: function() {
|
||||
var checkbox, checked, dialog, html, input, name, title, _i, _len, _ref;
|
||||
if (conf['Scrolling']) {
|
||||
$.bind(window, 'focus', (function() {
|
||||
return updater.focus = true;
|
||||
}));
|
||||
$.bind(window, 'blur', (function() {
|
||||
return updater.focus = false;
|
||||
}));
|
||||
}
|
||||
html = "<div class=move><span id=count></span> <span id=timer>-" + conf['Interval'] + "</span></div>";
|
||||
checkbox = config.updater.checkbox;
|
||||
for (name in checkbox) {
|
||||
@ -1644,7 +1652,7 @@
|
||||
while ((reply = replies.pop()) && (reply.id > id)) {
|
||||
arr.push(reply.parentNode.parentNode.parentNode);
|
||||
}
|
||||
scroll = conf['Scrolling'] && arr.length && (d.body.scrollHeight - d.body.clientHeight - window.scrollY < 20);
|
||||
scroll = updater.focus && arr.length && (d.body.scrollHeight - d.body.clientHeight - window.scrollY < 20);
|
||||
updater.timer.textContent = '-' + conf['Interval'];
|
||||
if (conf['Verbose']) {
|
||||
updater.count.textContent = '+' + arr.length;
|
||||
|
||||
@ -1255,6 +1255,9 @@ threadHiding =
|
||||
|
||||
updater =
|
||||
init: ->
|
||||
if conf['Scrolling']
|
||||
$.bind window, 'focus', (-> updater.focus = true)
|
||||
$.bind window, 'blur', (-> updater.focus = false)
|
||||
html = "<div class=move><span id=count></span> <span id=timer>-#{conf['Interval']}</span></div>"
|
||||
{checkbox} = config.updater
|
||||
for name of checkbox
|
||||
@ -1330,7 +1333,7 @@ updater =
|
||||
while (reply = replies.pop()) and (reply.id > id)
|
||||
arr.push reply.parentNode.parentNode.parentNode #table
|
||||
|
||||
scroll = conf['Scrolling'] && arr.length && (d.body.scrollHeight - d.body.clientHeight - window.scrollY < 20)
|
||||
scroll = updater.focus && arr.length && (d.body.scrollHeight - d.body.clientHeight - window.scrollY < 20)
|
||||
|
||||
updater.timer.textContent = '-' + conf['Interval']
|
||||
if conf['Verbose']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user