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

Recalculate Transform Style onMouseDown #124

Open
SabariVig opened this issue Mar 14, 2023 · 2 comments
Open

Recalculate Transform Style onMouseDown #124

SabariVig opened this issue Mar 14, 2023 · 2 comments

Comments

@SabariVig
Copy link

Hey I am writing a tiny svelte library which changes size of the elements for which I change transform style of the element,
I also rely on this library to drag elements around for a different project. When I change transform style externally it doesn't move from that position rather from last dragged position

@PuruVJ
Copy link
Owner

PuruVJ commented Mar 14, 2023

Hey I am writing a tiny svelte library which changes size of the elements for which I change transform style of the element,
I also rely on this library to drag elements around for a different project. When I change transform style externally it doesn't move from that position rather from last dragged position

If i understand correctly, your own transform: rules are overriding neodrag's transformations? If that's the case, check out legacyTranslate or transform option in the docs

@SabariVig
Copy link
Author

Thanks, that fixed it. But wouldn't it still cause problems later down the line when a different library changes translate externally.
Feel feel free to close this issue

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

2 participants