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

Use coordinates of drag onEnd event for placement in absolute mode. #4343

Closed
wants to merge 1 commit into from

Conversation

contentfree
Copy link
Contributor

Uses clientX/Y from the dragger's onEnd event. Relates to #3770. While it doesn't handle zoom, it should correctly handle a panned canvas.

@contentfree contentfree changed the title Use coordinates of drag event for placement in absolute mode. Use coordinates of drag onEnd event for placement in absolute mode. May 25, 2022
@contentfree
Copy link
Contributor Author

Looks like some other things have changed in the dev branch that lead to the initial drop event not firing in the same way as when I was testing from the unpkg version. I'll update this PR when I figure that out.

@contentfree
Copy link
Contributor Author

contentfree commented May 25, 2022

@artf: The drag end event seems to be using the first drag event from entering the canvas… I'm going to close this pull request as this isn't working with the current dev. It did work with 0.18.4… not sure what has changed since then.

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