moveable
moveable copied to clipboard
`drag` undefined on Rotate Group events
Environments
- Framework name: Moveable (Vanilla)
- Framework version: 0.33.0 and 0.31.0
- Moveable Component version: -
- Testable Address(optional): https://codesandbox.io/s/drag-undefined-rotategroup-fyk5pz?file=/src/index.ts
Description
What happens essentially after v0.33.0 is that onRotateGroup the drag object get's undefined. The link above is directly taken from the Storybook and opened in Sandbox, if we downgrade to v0.32.0 we see that's not a problem. On v0.33.0 however, drag is undefined. Not sure if the API has changed or not.
Also noticed that since v0.31.0 there's an unexpected change in how group rotation works. Again it's testable in the Sandbox going to v0.30.0 we can see that groups rotate normally (similar to the website). Notice how the behaviour of the rotation handler changes when I switch to v0.31.0:

@mamsoudi
lit-moveable0.11.2moveable0.34.2preact-moveable0.36.2react-compat-moveable0.22.2react-moveable0.37.2svelte-moveable0.26.2vue-moveable2.0.0-beta.30vue3-moveable0.9.2ngx-moveable0.31.2
moveable's new version is released. Check it again.
Thanks a huge bunch! @daybrush Will give it a try ASAP!