PuruVJ/neodrag

Recalculate Transform Style onMouseDown

SabariVig opened this issue · 2 comments

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

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

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