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