1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

volume control touch events fix

Co-authored-by: Jip Frijlink <JipFr@users.noreply.github.com>
Co-authored-by: James Hawkins <jhawki2005@gmail.com>
This commit is contained in:
Jelle van Snik 2023-01-24 15:17:23 +01:00
parent 0ca751f1d2
commit 701b3db798

View file

@ -70,6 +70,7 @@ export function VolumeControl(props: Props) {
ref={ref} ref={ref}
className="flex h-10 w-20 items-center px-2" className="flex h-10 w-20 items-center px-2"
onMouseDown={dragMouseDown} onMouseDown={dragMouseDown}
onTouchStart={dragMouseDown}
> >
<div className="relative h-1 flex-1 rounded-full bg-gray-500 bg-opacity-50"> <div className="relative h-1 flex-1 rounded-full bg-gray-500 bg-opacity-50">
<div <div