mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00: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:
@@ -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) });
|
||||
|
||||
Reference in New Issue
Block a user