dont set rotation origin
This commit is contained in:
parent
1e0868bddc
commit
7fb89dd80a
|
|
@ -99,9 +99,6 @@ export class FolkSpaceRadial extends FolkBaseSet {
|
||||||
|
|
||||||
const transform = event.current as DOMRectTransform;
|
const transform = event.current as DOMRectTransform;
|
||||||
|
|
||||||
// Set rotateOrigin to center
|
|
||||||
transform.rotateOrigin = { x: 0.5, y: 0.5 };
|
|
||||||
|
|
||||||
// Get the center of the radial space
|
// Get the center of the radial space
|
||||||
const bounds = this.getBoundingClientRect();
|
const bounds = this.getBoundingClientRect();
|
||||||
const spaceCenter = { x: bounds.left + bounds.width / 2, y: bounds.top + bounds.height / 2 };
|
const spaceCenter = { x: bounds.left + bounds.width / 2, y: bounds.top + bounds.height / 2 };
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue