Bug Fix: Smooth movement with arrow keys while mouse hovers over dropdown

This commit is contained in:
Christian Bastian
2024-01-27 05:43:38 -05:00
parent f76c28e832
commit 31c1ed9dbb

View File

@@ -252,6 +252,7 @@ class DirectoryDropdown {
const selection_select = (e) => {
const selection = e.target;
if (e.movementX === 0 && e.movementY === 0) { return ; }
if (!selection.classList.contains(DROPDOWN_DIRECTORY_SELECTION_CLASS)) {
// assumes only one will ever selected at a time
e.stopPropagation();