File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
apps/bplan-client/src/components/midi-player Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments