aboutsummaryrefslogtreecommitdiff
path: root/src/app/js/navigate.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-12-20 22:21:45 +0100
committer0neGal <mail@0negal.com>2024-12-20 22:21:45 +0100
commit1da35b8903f20f667086beba96585be4ab32706b (patch)
treea632e41a7d201e4b51660226969e224c507859d6 /src/app/js/navigate.js
parentbd2a77a0f38e4f82fe0a8f437b8d038ae7188dfa (diff)
downloadViper-1da35b8903f20f667086beba96585be4ab32706b.tar.gz
Viper-1da35b8903f20f667086beba96585be4ab32706b.zip
fixed being unable to scroll mods list
Diffstat (limited to 'src/app/js/navigate.js')
-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