react-draggable icon indicating copy to clipboard operation
react-draggable copied to clipboard

Setting bounds to selector is not restricting movement to the selector.

Open Android789515 opened this issue 2 years ago • 1 comments

Here I have:

`<ReactDraggable bounds='.notesCanvas' nodeRef={nodeRef}

`

but I am able to drag notes completely around the viewport with it being restricted to the viewport's edges. This is not what I want, I am trying to restrict it to inside the selector as above.

Android789515 avatar Apr 21 '22 22:04 Android789515

is this .noteCanvas element a parent element of your ReactDraggable?

Abban-Fahim avatar Apr 25 '22 17:04 Abban-Fahim