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 GitHub
parent 6f39e89d30
commit 8890c5bee6

View File

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