Skip to content

Commit cd58815

Browse files
committed
update
1 parent 72818de commit cd58815

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

apps/bplan-client/src/components/midi-player/SFileList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const SFileList = (props: SFileListProps) => {
112112
onSelect={handelSelect}
113113
onDelete={handleDelete}
114114
dragEndSize={90}
115-
dragExecuteSize={40}
115+
dragExecuteSize={90}
116116
/>
117117
)}
118118
</For>

apps/bplan-client/src/components/midi-player/SSetting.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,7 @@ export const SSetting = (props: SSettingProps) => {
7070
onValueChange={handleSettingKeepPlayList}
7171
/>
7272
<div class="flex justify-end w-full">
73-
<SPlayerButton
74-
class="min-w-11 min-h-9 bg-gray-100"
75-
onClick={handleClose}
76-
onTouchEnd={handleClose}
77-
>
73+
<SPlayerButton class="min-w-11 min-h-9 bg-gray-100" onClick={handleClose}>
7874
<span class="i-hugeicons:cancel-01 text-8 inline-block" />
7975
</SPlayerButton>
8076
</div>

apps/bplan-client/src/components/midi-player/SSettingItem.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ export function SSettingItem<T extends SSettingItemType>(props: SSettingItemProp
3333
}
3434
}
3535

36+
const handleTouchEnd: JSX.EventHandlerUnion<HTMLInputElement, TouchEvent> = (event) => {
37+
;(event.target as any)?.click()
38+
}
39+
3640
return (
3741
<div {...restProps} class="flex items-center justify-start gap-2">
3842
<label class="text-nowrap text-4" for={id}>
@@ -43,16 +47,17 @@ export function SSettingItem<T extends SSettingItemType>(props: SSettingItemProp
4347
<input
4448
type="checkbox"
4549
id={id}
46-
class="w-6 h-6"
50+
class="w-6 h-6 touch-none"
4751
checked={typeof innerProps.value === 'boolean' ? innerProps.value : false}
4852
onChange={handleSwitchChange}
53+
onTouchEnd={handleTouchEnd}
4954
/>
5055
</Match>
5156
<Match when={innerProps.type === 'slider'}>
5257
<input
5358
type="range"
5459
id={id}
55-
class="w-full"
60+
class="w-full touch-none"
5661
min={innerProps.min ?? 0}
5762
max={innerProps.max ?? 1}
5863
value={typeof innerProps.value === 'number' ? innerProps.value : 1}

0 commit comments

Comments
 (0)