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 4e1856b commit 7aa0a01Copy full SHA for 7aa0a01
src/ChessboardProvider.tsx
@@ -4,7 +4,6 @@ import {
4
DragStartEvent,
5
KeyboardSensor,
6
MouseSensor,
7
- PointerSensor,
8
pointerWithin,
9
TouchSensor,
10
useSensor,
@@ -603,7 +602,7 @@ export function ChessboardProvider({
603
602
);
604
605
const sensors = useSensors(
606
- useSensor(PointerSensor, {
+ useSensor(RightClickCancelSensor, {
607
activationConstraint:
608
dragActivationDistance > 0
609
? {
@@ -614,7 +613,6 @@ export function ChessboardProvider({
614
613
useSensor(KeyboardSensor),
615
useSensor(TouchSensor),
616
useSensor(MouseSensor),
617
- useSensor(RightClickCancelSensor),
618
619
620
// collision detection that first tries pointer-based detection and then falls back to rectangle intersection for keyboards
0 commit comments