From 3b97d1dd9a1e9ae31a5b9911934cabcb9da6fd0d Mon Sep 17 00:00:00 2001 From: Qing Date: Thu, 4 Jan 2024 22:00:23 +0800 Subject: [PATCH] update --- web_app/src/components/Editor.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/web_app/src/components/Editor.tsx b/web_app/src/components/Editor.tsx index d8e2709..564faf6 100644 --- a/web_app/src/components/Editor.tsx +++ b/web_app/src/components/Editor.tsx @@ -337,6 +337,10 @@ export default function Editor(props: EditorProps) { } const onMouseDrag = (ev: SyntheticEvent) => { + if (isProcessing) { + return + } + if (interactiveSegState.isInteractiveSeg) { return } @@ -560,6 +564,9 @@ export default function Editor(props: EditorProps) { } const getCursor = useCallback(() => { + if (isProcessing) { + return "default" + } if (isPanning) { return "grab" } @@ -567,7 +574,7 @@ export default function Editor(props: EditorProps) { return "none" } return undefined - }, [showBrush, isPanning]) + }, [showBrush, isPanning, isProcessing]) useHotKey( "[",