Fix seaweedchan/4chan-x/issues/62
This commit is contained in:
parent
5e105642ca
commit
f6de1520ce
@ -1771,7 +1771,7 @@
|
|||||||
headRect = Header.bar.getBoundingClientRect();
|
headRect = Header.bar.getBoundingClientRect();
|
||||||
top += -headRect.top - headRect.height;
|
top += -headRect.top - headRect.height;
|
||||||
}
|
}
|
||||||
return ($.engine === 'webkit' ? d.body : doc).scrollTop += top;
|
return doc.scrollTop += top;
|
||||||
},
|
},
|
||||||
addShortcut: function(el) {
|
addShortcut: function(el) {
|
||||||
var shortcut;
|
var shortcut;
|
||||||
|
|||||||
@ -1767,7 +1767,7 @@
|
|||||||
headRect = Header.bar.getBoundingClientRect();
|
headRect = Header.bar.getBoundingClientRect();
|
||||||
top += -headRect.top - headRect.height;
|
top += -headRect.top - headRect.height;
|
||||||
}
|
}
|
||||||
return ($.engine === 'webkit' ? d.body : doc).scrollTop += top;
|
return doc.scrollTop += top;
|
||||||
},
|
},
|
||||||
addShortcut: function(el) {
|
addShortcut: function(el) {
|
||||||
var shortcut;
|
var shortcut;
|
||||||
|
|||||||
@ -1769,7 +1769,7 @@
|
|||||||
headRect = Header.bar.getBoundingClientRect();
|
headRect = Header.bar.getBoundingClientRect();
|
||||||
top += -headRect.top - headRect.height;
|
top += -headRect.top - headRect.height;
|
||||||
}
|
}
|
||||||
return ($.engine === 'webkit' ? d.body : doc).scrollTop += top;
|
return d.body.scrollTop += top;
|
||||||
},
|
},
|
||||||
addShortcut: function(el) {
|
addShortcut: function(el) {
|
||||||
var shortcut;
|
var shortcut;
|
||||||
|
|||||||
@ -303,7 +303,7 @@ Header =
|
|||||||
if Conf['Fixed Header'] and not Conf['Bottom Header']
|
if Conf['Fixed Header'] and not Conf['Bottom Header']
|
||||||
headRect = Header.bar.getBoundingClientRect()
|
headRect = Header.bar.getBoundingClientRect()
|
||||||
top += - headRect.top - headRect.height
|
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) ->
|
addShortcut: (el) ->
|
||||||
shortcut = $.el 'span',
|
shortcut = $.el 'span',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user