From 1da35b8903f20f667086beba96585be4ab32706b Mon Sep 17 00:00:00 2001 From: 0neGal Date: Fri, 20 Dec 2024 22:21:45 +0100 Subject: fixed being unable to scroll mods list --- src/app/js/navigate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3