This commit is contained in:
Qing 2024-01-05 15:08:16 +08:00
parent e889e527ab
commit 3081da883b

View File

@ -401,11 +401,11 @@ export default function Editor(props: EditorProps) {
} }
if (isMidClick(ev)) { if (isMidClick(ev)) {
setIsPanning(false) setIsPanning(false)
return
} }
if (interactiveSegState.isInteractiveSeg) { if (interactiveSegState.isInteractiveSeg) {
return return
} }
if (isPanning) { if (isPanning) {
return return
} }
@ -938,9 +938,7 @@ export default function Editor(props: EditorProps) {
<IconButton <IconButton
tooltip="Run Inpainting" tooltip="Run Inpainting"
disabled={ disabled={
isProcessing || isProcessing || (!hadDrawSomething() && extraMasks.length === 0)
(!hadDrawSomething() &&
interactiveSegState.interactiveSegMask === null)
} }
onClick={() => { onClick={() => {
runInpainting() runInpainting()