diff --git a/src/components/Rating.tsx b/src/components/Rating.tsx index af790d6..24f346c 100644 --- a/src/components/Rating.tsx +++ b/src/components/Rating.tsx @@ -221,7 +221,7 @@ export function Rating({ } const handlePointerLeave = (event: PointerEvent) => { - if (isTouchDevice()) handleClick() + if (isTouchDevice() && allowHover) handleClick() dispatch({ type: 'PointerLeave' }) if (onPointerLeave) onPointerLeave(event)