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) => {
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(
"[",