react-mops
react-mops copied to clipboard
initial position ignoring bounding container even if the container has position:absolute
also not able to understand how to bound the dragable inside a div
Thank you for testing and taking the time to report this issue.
Can you please create a codesandbox to reproduce this issue.
I'm sorry for the lack of documentation. This project was extracted from an app, I'm working on, in my free time. Due to a lack of time this was as far as I got.
Setting bounds can be done via a snapHandler. A snapHandler is a function that mutates the position and size of the box. MOPS already provides a few of these functions.
v1.x.x is very limited but I released a beta of v2 a while ago, you might want to try it. It should allow initial snapping (bounds) by default.