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

Draggable doesn't work with SVG elements as they are not an instance of HTMLElement interface but Element interface #733

Open
sureshungarala opened this issue Oct 4, 2023 · 0 comments

Comments

@sureshungarala
Copy link

Firstly, thanks for this awesome easily extensible library.

Description

I am using draggable on SVGElements like group(g) with parent as svg tag element.
Bounds doesn't work with value parent on them and even if bounds was set to outer HTMLElement like div, bounds is not working as expected as the offsetLeft & offsetTop exist only on HTMLElement and not on Element or SVGElement interfaces.
This is a blocker for SVG elements.

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