Add scrolling when selected emoji is not visible

pull/162/head
KindaCrayCray 2023-06-28 17:14:45 +02:00
parent bc8a3dcb9d
commit cfc6f9c4b2
1 changed files with 1 additions and 0 deletions

View File

@ -483,6 +483,7 @@ function speed_carot_navigate(event)
select_items[emoji_index].classList.remove("selected");
modal_keybinds[event.key]();
select_items[emoji_index].classList.add("selected");
select_items[emoji_index].scrollIntoView({inline: "end", block: "nearest"});
event.preventDefault();
}
}