Moveable: Control points rotation is wrong

Created on 9 Jan 2020  ·  15Comments  ·  Source: daybrush/moveable

Environments

  • Framework name: React
  • Framework version: 16
  • Component name: Control points
  • Component version:
  • Testable Address(optional): No

Description

Please this gif. When using rectangle shape for control points. The rotation set for them is wrong.

Please fix this in future version.
captured

bug complete

Most helpful comment

@ladifire

I'm thinking about it too, but probably an svg cursor. I'm thinking of changing the angle every 10 degrees.

All 15 comments

@ladifire

What is the component version? This problem has been solved for a long time?

스크린샷 2020-01-10 오전 1 03 56

스크린샷 2020-01-10 오전 1 06 05

This bug is in react-moveable package, please see this demo
https://codesandbox.io/s/react-moveable-demo-66w9h

@ladifire

This problem will be solved by updating react-moveable.

Yes! thankyou!

@daybrush In ngx-movable (version 0.9.3) also the direction cursor (cursor pointer) is not updating.

@iprasadg

What does it mean that the direction cursor doesn't update? is it custom CSS? Can you give me a gif?

@daybrush Without rotate cursor styles are correct i.e showing according to direction. But, after rotate cursor style should get updated. It is showing previous style of cursor. See the following gif

cursor

@iprasadg

Oh I didn't think that part. This may take a while, but I'll fix it soon.

This is so difficult to fix, because it's cursor, not part of component. I find out that Figma (https://www.figma.com/) generate cursor for every rotate then assign each cursor for each rotation position.

@ladifire

I'm thinking about it too, but probably an svg cursor. I'm thinking of changing the angle every 10 degrees.

@ladifire @ladifire
There may be browser support issues, so the default is likely to be 45 degrees.

Your last commit not working with edge={true}
captured (3)

@ladifire @iprasadg

A new version has been released.

  • moveable 0.13.4
  • react-moveable 0.16.6
  • preact-moveable 0.15.5
  • ngx-moveable 0.9.4
  • svelte-moveable 0.4.4

Update to the new version. Thank you :)

Thanks @daybrush, it's sunday but you've worked hard!

@daybrush Updated to the new version. Thanks for resolving issue. 👍

Was this page helpful?
0 / 5 - 0 ratings

Related issues

plotpoi picture plotpoi  ·  4Comments

monsterooo picture monsterooo  ·  4Comments

Xumochuan picture Xumochuan  ·  6Comments

adityakrshnn picture adityakrshnn  ·  6Comments

probil picture probil  ·  4Comments