mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-24 08:41:31 +01:00
Reset scroll position to top on render.
Prevents an issue where the next article would inherit the previous article's scroll position.
This commit is contained in:
parent
0b6683d073
commit
1c9117ab8e
@ -182,6 +182,7 @@
|
||||
|
||||
function render(data) {
|
||||
document.body.innerHTML = data.body;
|
||||
window.scrollTo(0, 0);
|
||||
var anchors = document.getElementsByTagName("a");
|
||||
for (var i = 0; i < anchors.length; i++) {
|
||||
anchors[i].addEventListener("mouseenter", function() { mouseDidEnterLink(this) });
|
||||
|
Loading…
Reference in New Issue
Block a user