diff --git a/lama_cleaner/app/src/components/Editor/Editor.tsx b/lama_cleaner/app/src/components/Editor/Editor.tsx index ce79e7c..9555cf1 100644 --- a/lama_cleaner/app/src/components/Editor/Editor.tsx +++ b/lama_cleaner/app/src/components/Editor/Editor.tsx @@ -462,6 +462,17 @@ export default function Editor() { } }, [windowSize, resetZoom]) + useEffect(() => { + window.addEventListener('blur', () => { + setIsChangingBrushSizeByMouse(false) + }) + return () => { + window.removeEventListener('blur', () => { + setIsChangingBrushSizeByMouse(false) + }) + } + }, []) + const handleEscPressed = () => { if (isInpainting) { return