This commit is contained in:
Qing 2024-01-04 22:00:23 +08:00
parent 773e105d20
commit 3b97d1dd9a

View File

@ -337,6 +337,10 @@ export default function Editor(props: EditorProps) {
} }
const onMouseDrag = (ev: SyntheticEvent) => { const onMouseDrag = (ev: SyntheticEvent) => {
if (isProcessing) {
return
}
if (interactiveSegState.isInteractiveSeg) { if (interactiveSegState.isInteractiveSeg) {
return return
} }
@ -560,6 +564,9 @@ export default function Editor(props: EditorProps) {
} }
const getCursor = useCallback(() => { const getCursor = useCallback(() => {
if (isProcessing) {
return "default"
}
if (isPanning) { if (isPanning) {
return "grab" return "grab"
} }
@ -567,7 +574,7 @@ export default function Editor(props: EditorProps) {
return "none" return "none"
} }
return undefined return undefined
}, [showBrush, isPanning]) }, [showBrush, isPanning, isProcessing])
useHotKey( useHotKey(
"[", "[",