Highlight last selected item

This commit is contained in:
WardPearce
2026-03-02 22:51:58 +13:00
parent f24deb4afe
commit 6bce6e1da1
@@ -40,12 +40,17 @@
if (element) {
await timeout(100);
element.focus();
element.scrollIntoView({
behavior: 'instant',
block: 'start',
inline: 'nearest'
});
const lastItem = items.find((item) => extractUniqueId(item) === $feedLastItemId);
if (lastItem) {
spatialMenu.highlighted = lastItem;
}
}
feedLastItemId.set(undefined);