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

initial position ignoring bounding container even if the container has position:absolute

Open essuraj opened this issue 5 years ago • 2 comments

also not able to understand how to bound the dragable inside a div

essuraj avatar Nov 21 '19 05:11 essuraj

Thank you for testing and taking the time to report this issue.

Can you please create a codesandbox to reproduce this issue.

pixelass avatar Nov 22 '19 09:11 pixelass

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.

pixelass avatar Nov 30 '19 15:11 pixelass