This commit is contained in:
李志鹏
2026-01-09 17:10:51 +08:00
parent 64ac0c7e16
commit 7af8bc96c8

View File

@@ -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,