信号机多次创建问题调整

This commit is contained in:
fan 2023-08-07 10:32:46 +08:00
parent d684043743
commit fbf4eb56d3

View File

@ -41,9 +41,9 @@ export class SignalDraw extends GraphicDrawAssistant<
return this._signal; return this._signal;
} }
onRightClick(): void { // onRightClick(): void {
this.createAndStore(true); // this.createAndStore(true);
} // }
onLeftUp(e: FederatedPointerEvent): void { onLeftUp(e: FederatedPointerEvent): void {
this.container.position.copyFrom(this.toCanvasCoordinates(e.global)); this.container.position.copyFrom(this.toCanvasCoordinates(e.global));
this.createAndStore(true); this.createAndStore(true);