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