aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app/js/navigate.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/js/navigate.js b/src/app/js/navigate.js
index 908a432..b5b98a6 100644
--- a/src/app/js/navigate.js
+++ b/src/app/js/navigate.js
@@ -483,8 +483,8 @@ navigate.move = async (direction) => {
}
}
- if (scroll_el.closest("#modsdiv .el")) {
- return;
+ if (scroll_el.closest(".grid .el")) {
+ scroll_el = scroll_el.closest(".grid .el");
}
// scroll `scroll_el` smoothly into view, centered