diff --git a/src/component/Canvas/pingpu.vue b/src/component/Canvas/pingpu.vue index 59d53846..08f8c1dc 100644 --- a/src/component/Canvas/pingpu.vue +++ b/src/component/Canvas/pingpu.vue @@ -101,7 +101,7 @@ const action = e.action; const list = []; const id = object.id; - if (action === "drag") { + if (action === "drag" || action === "rotate") { list.push({ id: id, action: ACTIONS.UPDATE, @@ -114,13 +114,14 @@ key: KEYS.O_LEFT, value: object.left, }); - } else if (action === "rotate") { - list.push({ - id: id, - action: ACTIONS.UPDATE, - key: KEYS.O_ANGLE, - value: object.angle, - }); + if (action === "rotate") { + list.push({ + id: id, + action: ACTIONS.UPDATE, + key: KEYS.O_ANGLE, + value: object.angle, + }); + } } else if (action === "scale") { list.push({ id: id,