Added back scroll into view

This commit is contained in:
WardPearce
2025-11-08 14:48:18 +13:00
parent 20d19b0f6a
commit 7034b91c1d
@@ -192,6 +192,16 @@
// Watch for focus changes to detect when we're active
document.addEventListener('focusin', checkComponentFocus);
document.addEventListener('focusout', checkComponentFocus);
} else if ($feedLastItemId) {
const element = document.getElementById($feedLastItemId);
if (element) {
element.scrollIntoView({
behavior: 'instant',
block: 'start',
inline: 'nearest'
});
}
}
});