fix: signing field disabled when pointer is out of canvas (#1652)

This commit is contained in:
Ephraim Duncan
2025-03-12 05:43:52 +00:00
committed by David Nguyen
parent 44cdbeecb4
commit b3db3be8e9

View File

@ -271,7 +271,11 @@ export const SignaturePad = ({
event.preventDefault(); event.preventDefault();
} }
onMouseUp(event, false); if (isPressed) {
onMouseUp(event, true);
} else {
onMouseUp(event, false);
}
}; };
const onClearClick = () => { const onClearClick = () => {