Signature not saved when pointer is released outside canvas

Created on 17 May 2024, 7 months ago
Updated 21 May 2024, 7 months ago

Problem/Motivation

When the user is drawing the signature, but releases the pointer (mouse) outside the canvas, the signature is not saved.

Steps to reproduce

-

Proposed resolution

Add event listener to pointerup to save the signature when pointer is released outside the canvas.

Remaining tasks

None. See patch. This fixes the problem.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇳🇱Netherlands Sander Wemagine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Sander Wemagine
  • 🇳🇱Netherlands Sander Wemagine

    When using the first patch, the signature would always have an empy square, even when the user had not interacted with the signature pad. In this patch I have added an isEmpty() check to make sure you don't get empty signatures images.

Production build 0.71.5 2024