|
@@ -180,6 +180,8 @@ export class SelectCtrl extends ModuleControl<EditorModule> {
|
|
onDocMouseDown(e: MouseEvent) {
|
|
onDocMouseDown(e: MouseEvent) {
|
|
this._mouseDownTimestamp = Date.now();
|
|
this._mouseDownTimestamp = Date.now();
|
|
if (e.button != 0 || !this.pageEl || !this.selCanvas || this.controls.editorCtrl.isMoving() ) return;
|
|
if (e.button != 0 || !this.pageEl || !this.selCanvas || this.controls.editorCtrl.isMoving() ) return;
|
|
|
|
+ const id = this.getDivId(e.target as any);
|
|
|
|
+ if (id == "toolbar") return;
|
|
|
|
|
|
document.addEventListener("mousemove", this.onDocMouseMove, {
|
|
document.addEventListener("mousemove", this.onDocMouseMove, {
|
|
capture: true,
|
|
capture: true,
|
|
@@ -279,7 +281,7 @@ export class SelectCtrl extends ModuleControl<EditorModule> {
|
|
}
|
|
}
|
|
} while (c);
|
|
} while (c);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
getDivTransformFlag(div: HTMLElement) {
|
|
getDivTransformFlag(div: HTMLElement) {
|
|
const id = this.getDivId(div);
|
|
const id = this.getDivId(div);
|
|
if (!id) return "";
|
|
if (!id) return "";
|