Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
essuraj opened this issue Nov 21, 2019 · 2 comments

Comments

@essuraj
Copy link

essuraj commented Nov 21, 2019

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

@pixelass
Copy link
Owner

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

Can you please create a codesandbox to reproduce this issue.

@pixelass
Copy link
Owner

pixelass commented Nov 30, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants