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