We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39b3081 commit 5c9fcefCopy full SHA for 5c9fcef
client/src/components/Board/Board.jsx
@@ -4,6 +4,7 @@ import {
4
DndContext,
5
DragOverlay,
6
closestCenter,
7
+ pointerWithin,
8
KeyboardSensor,
9
PointerSensor,
10
useSensor,
@@ -77,7 +78,7 @@ function Board({
77
78
const sensors = useSensors(
79
useSensor(PointerSensor, {
80
activationConstraint: {
- distance: 1,
81
+ distance: 5,
82
},
83
}),
84
useSensor(KeyboardSensor, {
@@ -312,7 +313,7 @@ function Board({
312
313
<div className={styles.wrapper}>
314
<DndContext
315
sensors={sensors}
- collisionDetection={closestCenter}
316
+ collisionDetection={pointerWithin}
317
onDragStart={handleDragStart}
318
onDragOver={handleDragOver}
319
onDragEnd={handleDragEnd}
0 commit comments