Skip to content

Commit 101ed71

Browse files
committed
Use onMouseDown instead of onClick
This registers a click even if the mouse slides while clicking.
1 parent 94d0964 commit 101ed71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ResponsiveSetCard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function ResponsiveSetCard(props) {
125125
borderRadius: margin,
126126
border: faceDown ? undefined : BORDERS[border],
127127
}}
128-
onClick={onClick}
128+
onMouseDown={onClick}
129129
>
130130
{faceDown ||
131131
Array.from(Array(number + 1), (_, i) => (

0 commit comments

Comments
 (0)