mirror of
https://github.com/anotherhadi/ilovetui.git
synced 2026-10-05 19:08:25 +02:00
@@ -46,7 +46,10 @@ export function Sidebar(props: SidebarProps) {
|
||||
const handleMouseDown = (event: MouseEvent) => {
|
||||
if (!select) return;
|
||||
const index = itemIndexAtScreenY(select, event.y);
|
||||
if (index !== null) select.setSelectedIndex(index);
|
||||
if (index !== null) {
|
||||
select.setSelectedIndex(index);
|
||||
select.selectCurrent();
|
||||
}
|
||||
};
|
||||
|
||||
const handleMouseScroll = (event: MouseEvent) => {
|
||||
|
||||
Reference in New Issue
Block a user