1
This commit is contained in:
@@ -101,7 +101,7 @@
|
|||||||
const action = e.action;
|
const action = e.action;
|
||||||
const list = [];
|
const list = [];
|
||||||
const id = object.id;
|
const id = object.id;
|
||||||
if (action === "drag") {
|
if (action === "drag" || action === "rotate") {
|
||||||
list.push({
|
list.push({
|
||||||
id: id,
|
id: id,
|
||||||
action: ACTIONS.UPDATE,
|
action: ACTIONS.UPDATE,
|
||||||
@@ -114,13 +114,14 @@
|
|||||||
key: KEYS.O_LEFT,
|
key: KEYS.O_LEFT,
|
||||||
value: object.left,
|
value: object.left,
|
||||||
});
|
});
|
||||||
} else if (action === "rotate") {
|
if (action === "rotate") {
|
||||||
list.push({
|
list.push({
|
||||||
id: id,
|
id: id,
|
||||||
action: ACTIONS.UPDATE,
|
action: ACTIONS.UPDATE,
|
||||||
key: KEYS.O_ANGLE,
|
key: KEYS.O_ANGLE,
|
||||||
value: object.angle,
|
value: object.angle,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
} else if (action === "scale") {
|
} else if (action === "scale") {
|
||||||
list.push({
|
list.push({
|
||||||
id: id,
|
id: id,
|
||||||
|
|||||||
Reference in New Issue
Block a user