-
Notifications
You must be signed in to change notification settings - Fork 33
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
Keep draging element invisible but positioned on drop position #69
Comments
In case anyone else that also came across this, you can always override the CSS: .dragSortItem.-isDragged {
/* Or use block or flex or whatever that makes sense to keep displaying it. */
display: inherit;
/* Show the element but make it translucent. Set to 0 if you want to make it invisible. */
opacity: 0.5;
}
/* The following paddings need to be fixed if keeping the dragged element positioned
in the list or it would create a massive gap. */
.dragSortItem.-placeholderBefore {
padding-top: 0;
}
.dragSortItem.-placeholderAfter {
padding-bottom: 0;
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The element being dragged is removed from the list until it is dropped. Is it possible to keep the element invisible but positioned? This would prevent lists items from jumping around too much.
The text was updated successfully, but these errors were encountered: