moveable
moveable copied to clipboard
How group Rotate & Resizeable can keep center when resize?
trafficstars
Environments
- Framework name: React-moveable
- Framework version:
- Moveable Component version:
- Testable Address(optional): https://codesandbox.io/s/condescending-wilbur-lgwf0?file=/src/App.js
Description
I want to keep center when resizing on all directions, though I was set keepRatio by true, the shape can't keep center position origin which I was set initial. You can see my example: https://codesandbox.io/s/condescending-wilbur-lgwf0?file=/src/App.js
@cuongdevjs
use setFixedDirection
onResizeStart={(e) => {
e.setFixedDirection([0, 0]);
}}