Fix seaweedchan/4chan-x/issues/62

This commit is contained in:
Zixaphir 2013-05-10 04:29:21 -07:00
parent 5e105642ca
commit f6de1520ce
4 changed files with 4 additions and 4 deletions

View File

@ -1771,7 +1771,7 @@
headRect = Header.bar.getBoundingClientRect();
top += -headRect.top - headRect.height;
}
return ($.engine === 'webkit' ? d.body : doc).scrollTop += top;
return doc.scrollTop += top;
},
addShortcut: function(el) {
var shortcut;

View File

@ -1767,7 +1767,7 @@
headRect = Header.bar.getBoundingClientRect();
top += -headRect.top - headRect.height;
}
return ($.engine === 'webkit' ? d.body : doc).scrollTop += top;
return doc.scrollTop += top;
},
addShortcut: function(el) {
var shortcut;

View File

@ -1769,7 +1769,7 @@
headRect = Header.bar.getBoundingClientRect();
top += -headRect.top - headRect.height;
}
return ($.engine === 'webkit' ? d.body : doc).scrollTop += top;
return d.body.scrollTop += top;
},
addShortcut: function(el) {
var shortcut;

View File

@ -303,7 +303,7 @@ Header =
if Conf['Fixed Header'] and not Conf['Bottom Header']
headRect = Header.bar.getBoundingClientRect()
top += - headRect.top - headRect.height
(if $.engine is 'webkit' then d.body else doc).scrollTop += top
<% if (type === 'crx') { %>d.body<% } else { %>doc<% } %>.scrollTop += top
addShortcut: (el) ->
shortcut = $.el 'span',