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

Set bounds to parent, if parent has x-overflow, element cannot drag to the right edge of the parent

Open jaykou25 opened this issue 3 years ago • 2 comments
trafficstars

Description set bounds to parent, if the parent element has x-overflow, the drag element cannot drag to the right edge of the parent.

// parent has x-overflow
<div>
  <Draggable bounds='parent'>
    <div>dragme</div>
  </Draggble>
<div>

Steps https://codesandbox.io/s/crazy-violet-bs1t7x?file=/src/App.js

Expectation The drag element can drag to the right edge of Parent.

jaykou25 avatar Mar 04 '22 08:03 jaykou25

Probably a long shot, but did you ever figure this out?

jamesonhill avatar Jun 13 '24 00:06 jamesonhill

It seems that it has not been resolved yet.

jaykou25 avatar Jun 13 '24 01:06 jaykou25