mirror of
https://github.com/anotherhadi/ilovetui.git
synced 2026-10-05 19:08:25 +02:00
@@ -32,8 +32,10 @@ function Sidebar(props) {
|
|||||||
return;
|
return;
|
||||||
const index = itemIndexAtScreenY(select, event.y);
|
const index = itemIndexAtScreenY(select, event.y);
|
||||||
if (index !== null) {
|
if (index !== null) {
|
||||||
|
select.focus();
|
||||||
select.setSelectedIndex(index);
|
select.setSelectedIndex(index);
|
||||||
select.selectCurrent();
|
select.selectCurrent();
|
||||||
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const handleMouseScroll = (event) => {
|
const handleMouseScroll = (event) => {
|
||||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
// @bun
|
// @bun
|
||||||
import {
|
import {
|
||||||
Sidebar
|
Sidebar
|
||||||
} from "../chunk-89xtp8sa.js";
|
} from "../chunk-kd78dgfb.js";
|
||||||
import"../chunk-x7m82z3z.js";
|
import"../chunk-x7m82z3z.js";
|
||||||
import"../chunk-7f8jagy5.js";
|
import"../chunk-7f8jagy5.js";
|
||||||
import"../chunk-hcq62p48.js";
|
import"../chunk-hcq62p48.js";
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
// @bun
|
// @bun
|
||||||
import {
|
import {
|
||||||
Sidebar
|
Sidebar
|
||||||
} from "../chunk-89xtp8sa.js";
|
} from "../chunk-kd78dgfb.js";
|
||||||
import {
|
import {
|
||||||
NotificationHost
|
NotificationHost
|
||||||
} from "../chunk-b0h95a6q.js";
|
} from "../chunk-b0h95a6q.js";
|
||||||
|
|||||||
@@ -47,8 +47,10 @@ export function Sidebar(props: SidebarProps) {
|
|||||||
if (!select) return;
|
if (!select) return;
|
||||||
const index = itemIndexAtScreenY(select, event.y);
|
const index = itemIndexAtScreenY(select, event.y);
|
||||||
if (index !== null) {
|
if (index !== null) {
|
||||||
|
select.focus();
|
||||||
select.setSelectedIndex(index);
|
select.setSelectedIndex(index);
|
||||||
select.selectCurrent();
|
select.selectCurrent();
|
||||||
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user