diff options
author | 0neGal <mail@0negal.com> | 2024-12-20 22:21:45 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2024-12-20 22:21:45 +0100 |
commit | 1da35b8903f20f667086beba96585be4ab32706b (patch) | |
tree | a632e41a7d201e4b51660226969e224c507859d6 /src | |
parent | bd2a77a0f38e4f82fe0a8f437b8d038ae7188dfa (diff) | |
download | Viper-1da35b8903f20f667086beba96585be4ab32706b.tar.gz Viper-1da35b8903f20f667086beba96585be4ab32706b.zip |
fixed being unable to scroll mods list
Diffstat (limited to 'src')
-rw-r--r-- | src/app/js/navigate.js | 4 |
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 |