bokuweb / react-rnd

🖱 A resizable and draggable component for React.
https://bokuweb.github.io/react-rnd/stories
MIT License
3.9k stars 325 forks source link

feat: adding ability to use a separate bounding box for resizing and dragging (Fixes #895) #922

Closed branks closed 1 month ago

branks commented 6 months ago

This patch has been running in production for us for over a year and works well. It allows the resize and drag boundarys to be different. I thought I would convert the patch into a PR to share with others

I was unable to run the tests locally so couldn't add anymore - there's an error when running

.../react-rnd/node_modules/electron/dist/electron: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

but this is the work required

bokuweb commented 5 months ago

@branks Thanks for your PR.

bokuweb commented 5 months ago

Could you please add story and fix README too?

branks commented 1 month ago

Closing as I dont have the time to update this - someone else is welcome to pick it up - sorry!