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

fixed calc for drag image size #151

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Joebayld
Copy link

I've come across issues where the styles are not correctly copied to the drag image. This occurred in specific svg shapes such as v-rect. Changing clientWidth and clientHeight to getBoundingClientRect().width and getBoundingClientRect().height seems to fix it.

@Joebayld
Copy link
Author

I had to commit it to my own scoped npm package for now until this can get merged - not really sure how maintained this repo is anymore. Be sure to remove the changed package name if you merge it.

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

Successfully merging this pull request may close these issues.

1 participant