-
Notifications
You must be signed in to change notification settings - Fork 24
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
Margin or another div above component with DragSelection causes coordinates to be off #30
Comments
I was able to reproduce it with adding |
Sorry, my description was fully accurate for that portion. To reproduce I added a header above the draggable container as seen in this codesandbox. So something like this:
|
Thanks! We will look into this. In the meantime, you can move
|
Hi, we are experiencing the same issue, and the workaround is not working for us due to having a more complex DOM structure. After some research it seems like there is a fork of your package with a potential fix: |
UP |
Hello, any updates of this issue? |
When either a margin or div is above the component containing the DragSelection component, the top coordinate of the selection box is off by that height.
To reproduce, just add a
margin-top: 50px
to the container class in the codesandbox and drag, the box top is off by 50px.In my code, I had a title that was 60px tall and the component that I had the DragSelection component below it. Whenever I tried dragging, the top was 60px higher than where my cursor was.
The text was updated successfully, but these errors were encountered: