Skip to Content
0
Former Member
May 16, 2016 at 08:15 PM

SignaturePad not working on touch device

668 Views

Hi Experts,

I am not able to use signature pad in touch devices. It is working perfectly in desktop.

I have attached the Signature.js file which I am using.

Below is the piece of code I am writing in onInit method,

var mySignature = '<div id="wrapper"> ' +

' <div id="canvas"> ' +

' <canvas class="roundCorners" id="Signature" style="position: relative; margin: 0; padding: 0; border: 1px solid #c4caac; margin-top: 5px; margin-left: -2rem; background: #fff;"></canvas> ' +

' </div> ' +

' ' +

' <script> ' +

' signatureCapture(); ' +

' </script> ' +

' </div>';

var myhtml = that.getView().byId("signature");

myhtml.setContent(mySignature);

Can you please suggest how to make it run in touch devices as well.

Regards,

Sharique

Attachments