From f9f189b9b4c8c3cd85e18d1bd05b8d2a9c17ae38 Mon Sep 17 00:00:00 2001 From: Cmen <1176967590@qq.com> Date: Sun, 17 Apr 2022 09:46:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=97=B6=E6=8B=96=E6=8B=BD=E5=90=8E=E5=AE=8C=E6=88=90=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/editor/Plot/Tools/MinimalTools.tsx | 1 - src/map/MapEditor.ts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/Plot/Tools/MinimalTools.tsx b/src/editor/Plot/Tools/MinimalTools.tsx index e07d35c..ac73d9f 100644 --- a/src/editor/Plot/Tools/MinimalTools.tsx +++ b/src/editor/Plot/Tools/MinimalTools.tsx @@ -31,7 +31,6 @@ const MinimalButton = (props: MinimalButtonProps) => { export const MinimalTools = () => { const status = useSelector(statusSelector); - console.log(status); if (status === Status.CreateOverlay || status === Status.EditOverlay) { return ( <> diff --git a/src/map/MapEditor.ts b/src/map/MapEditor.ts index 734eb01..53ba496 100644 --- a/src/map/MapEditor.ts +++ b/src/map/MapEditor.ts @@ -317,6 +317,7 @@ export class MapEditor extends Emitter implements IMapEditor { } _onOverlayDragEnd(id: string) { + if (this.editorStatus === "editing") return; this._updateOverlay(id); }