You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Description - When the Signature Pad is displayed and the user selects "Sign It" then selects "Type It" normally the signature pad will not allow drawing. However, on the iPad the user can continue to draw on the signature pad over the typed letters.
This is what I did to get it to work correctly
/**
Removes all the mouse events from the canvas
*
@Private
*/
function disableCanvas () {
eventsBound = false
if (touchable) {
canvas.each(function () {
this.removeEventListener('touchstart', stopDrawing);
this.removeEventListener('touchend', stopDrawing);
this.removeEventListener('touchmove', drawLine);
//////////////////////////////////////
//added to properly stop the on touch start listener
this.ontouchstart = null;
///////////////////////////////////////
})
} else {
canvas.unbind('mousedown.signaturepad')
canvas.unbind('mouseup.signaturepad')
canvas.unbind('mousemove.signaturepad')
canvas.unbind('mouseleave.signaturepad')
}
Bug Description - When the Signature Pad is displayed and the user selects "Sign It" then selects "Type It" normally the signature pad will not allow drawing. However, on the iPad the user can continue to draw on the signature pad over the typed letters.
This is what I did to get it to work correctly
/**
Removes all the mouse events from the canvas
*
@Private
*/
function disableCanvas () {
eventsBound = false
if (touchable) {
canvas.each(function () {
this.removeEventListener('touchstart', stopDrawing);
this.removeEventListener('touchend', stopDrawing);
this.removeEventListener('touchmove', drawLine);
//////////////////////////////////////
//added to properly stop the on touch start listener
this.ontouchstart = null;
///////////////////////////////////////
})
} else {
canvas.unbind('mousedown.signaturepad')
canvas.unbind('mouseup.signaturepad')
canvas.unbind('mousemove.signaturepad')
canvas.unbind('mouseleave.signaturepad')
}
$(settings.clear, context).unbind('click.signaturepad')
}
The text was updated successfully, but these errors were encountered: