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
touchend and touchcancel events pass in an event arg to the stopDrawing function. This causes drawLine to be called, and the onDrawEnd.apply call is skipped over. Because of this, onDrawEnd is not fired on touch enabled devices.
The text was updated successfully, but these errors were encountered:
all the mouse events are bound and the stopDrawing method is called explicitly where signature-pad can opt to pass the event or not.
So for the mouse events is fine to just test for existence of the passed event and use that as a way to figure out if the mouse just left the canvas or if they user actually lifted the mouse.
For the touch events, they all look the same (event exists) so instead, I just explicitly checked for the 2 touch events where I would WANT to call the drawEnd stuff.
touchend and touchcancel events pass in an event arg to the stopDrawing function. This causes drawLine to be called, and the onDrawEnd.apply call is skipped over. Because of this, onDrawEnd is not fired on touch enabled devices.
The text was updated successfully, but these errors were encountered: