Moveable: Rotate not working in firefox

Created on 17 May 2020  路  5Comments  路  Source: daybrush/moveable

version: 0.17.5
Rotate not working on Firefox, I tested main demo its also not rotating

.on('rotate', ({ target, rotate }) => {
target.style.transform = 'rotate(' + r + 'deg)';
});

browser bug

Most helpful comment

@masoudelahi @btir

  • moveable 0.17.6
  • react-moveable 0.20.7
  • preact-moveable 0.19.7
  • ngx-moveable 0.13.7
  • svelte-moveable 0.8.7

All 5 comments

Seems like the problem is in new version's, I'm using version 0.15.2 but it does not have any problem with Firefox and other browser's.
The problem is with new version's of Firefox, in Firefox 68 everything works as expected!

@btir @masoudelahi

Oh thank you. Found the cause.

In firefox, an element with a width and height of 0 has an error that results in the left and top of getBoundingClientRect () being 0.

I'll release it soon.

It's working now,
Thanks for your awesome library

@masoudelahi @btir

  • moveable 0.17.6
  • react-moveable 0.20.7
  • preact-moveable 0.19.7
  • ngx-moveable 0.13.7
  • svelte-moveable 0.8.7

Thank you so much @daybrush for your quick response!

Was this page helpful?
0 / 5 - 0 ratings