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

When dragging one of the top panels, if dragging starts within the top 10 pixels it does not register as a drag #156

Closed
dutzi opened this issue Feb 26, 2021 · 1 comment

Comments

@dutzi
Copy link

dutzi commented Feb 26, 2021

Kind of hard to explain, see video:

https://imgur.com/xsfqZIT

The reason is that once the drag starts, the top "hit area" gets display: block, causing React DnD to lose its "grip".

The workaround (not perfect) is adding this to the .css:

.mosaic-drop-target.mosaic > .drop-target-container .drop-target.top {
  bottom: 100%;
  top: -10px;
}

This will cause the hit area to be rendered outside of the container, keeping those 10 pixels safe.

@dutzi dutzi changed the title When dragging one of the top panels, if drag starts at top 10 pixels it does not register as a drag When dragging one of the top panels, if dragging starts within the top 10 pixels it does not register as a drag Feb 26, 2021
@dutzi
Copy link
Author

dutzi commented May 2, 2021

❤️

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

1 participant