|
@@ -144,7 +144,7 @@ export function DialogSelect<T>(props: DialogSelectProps<T>) {
|
|
|
let next = store.selected + direction
|
|
let next = store.selected + direction
|
|
|
if (next < 0) next = flat().length - 1
|
|
if (next < 0) next = flat().length - 1
|
|
|
if (next >= flat().length) next = 0
|
|
if (next >= flat().length) next = 0
|
|
|
- moveTo(next)
|
|
|
|
|
|
|
+ moveTo(next, true)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function moveTo(next: number, center = false) {
|
|
function moveTo(next: number, center = false) {
|