Browse Source

fix: set touch-action to none

pull/1011/head
qtchaos 1 year ago
parent
commit
bde2231a90
No known key found for this signature in database
GPG Key ID: 7DA98B2B9EF06A90
  1. 2
      src/components/player/atoms/Volume.tsx

2
src/components/player/atoms/Volume.tsx

@ -63,7 +63,7 @@ export function Volume(props: Props) {
onMouseEnter={handleMouseEnter} onMouseEnter={handleMouseEnter}
onWheel={handleWheel} onWheel={handleWheel}
> >
<div className="pointer-events-auto flex cursor-pointer items-center py-0"> <div className="pointer-events-auto flex cursor-pointer items-center py-0 touch-none">
<div className="px-4 text-2xl text-white" onClick={handleClick}> <div className="px-4 text-2xl text-white" onClick={handleClick}>
<Icon icon={percentage > 0 ? Icons.VOLUME : Icons.VOLUME_X} /> <Icon icon={percentage > 0 ? Icons.VOLUME : Icons.VOLUME_X} />
</div> </div>

Loading…
Cancel
Save