From f0b20f461be7b26443e13f85fb489b5c39c6b7cf Mon Sep 17 00:00:00 2001 From: Qing Date: Sun, 4 Feb 2024 21:42:11 +0800 Subject: [PATCH] fix https://github.com/Sanster/IOPaint/issues/440 --- web_app/src/components/Editor.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web_app/src/components/Editor.tsx b/web_app/src/components/Editor.tsx index 5fdb68c..961300f 100644 --- a/web_app/src/components/Editor.tsx +++ b/web_app/src/components/Editor.tsx @@ -396,13 +396,13 @@ export default function Editor(props: EditorProps) { } const onPointerUp = (ev: SyntheticEvent) => { - if (!hadDrawSomething()) { - return - } if (isMidClick(ev)) { setIsPanning(false) return } + if (!hadDrawSomething()) { + return + } if (interactiveSegState.isInteractiveSeg) { return }