react-chessboard
Version:
The React Chessboard Library
13 lines (12 loc) • 417 B
TypeScript
import { PointerSensor, PointerSensorProps } from '@dnd-kit/core';
/**
* A custom PointerSensor that listens for right-clicks during a drag
* and cancels the active drag operation.
*
* Works by listening to the "contextmenu" event on window.
*/
export declare class RightClickCancelSensor extends PointerSensor {
private handleContextMenu;
constructor(props: PointerSensorProps);
teardown(): void;
}