react-draggable
react-draggable copied to clipboard
React draggable component
In version 4.4.6, the mouse leaves the draggable component. **When not to use state** ``` import { useRef } from "react"; import Draggable from "react-draggable"; import "./App.css"; function App() {...
Property 'clientX' does not exist on type 'DraggableEvent'. Property 'clientX' does not exist on type 'TouchEvent'. how to mention the clientX for both touch and mouse event ``` const onLabelDragged:DraggableEventHandler...
in ./node_modules/[email protected]@react-draggable/build/cjs/Draggable.js Module parse failed: Unexpected token (78:10) You may need an appropriate loader to handle this file type. | y: position.y, | prevPropsPosition: { | ...position | } |...
I am using "react-rnd": "^10.4.1" and "react-draggable": "^4.4.5" But having ``` node_modules/react-draggable/typings/index.d.ts:22:15 - error TS2300: Duplicate identifier 'DraggableEvent'. 22 export type DraggableEvent = React.MouseEvent ~~~~~~~~~~~~~~ node_modules/react-rnd/node_modules/react-draggable/typings/index.d.ts:22:15 22 export type DraggableEvent...
Using react-data-grid, which depends on react-resizable, which depends on react-draggable Since your update to 4.4.6, react-data-grid and react-sizable are now broken, and cannot be compiled into our projects. Error reported...
Hi, we are using react-draggable and have a link inside a draggable which should be clickable. ```js I should be clickable ``` On a non-touch device this works fine as...
For E2E we have to simulate DnD, and code ```typescript const triggerMouseEvent = (node: HTMLElement, eventType: string, data: { clientX: number; clientY: number }) => { const evt = new...
See the following Gif: https://i.imgur.com/xygswkR.gif When I drag on elements lower in the hierarchy , it stays right on the cursor. When I go above, it pitches downward until I...
Firstly, thanks for this awesome easily extensible library. ## Description I am using draggable on SVGElements like group(`g`) with parent as `svg` tag element. Bounds doesn't work with value `parent`...
See --> https://bugs.webkit.org/show_bug.cgi?id=61824 Presently there is a bug where safari loses track of the zIndex after setting a 3D transform. This causes draggable elements to fall behind any canvases. The...