thread-pond / signature-pad

A jQuery plugin for assisting in the creation of an HTML5 canvas based signature pad. Records the drawn signature in JSON for later regeneration.
BSD 3-Clause "New" or "Revised" License
727 stars 292 forks source link

Fix issue where it does not capture signature on desktop browsers #204

Closed hassaanalansary closed 5 years ago

hassaanalansary commented 5 years ago

Issue: when trying to sign in the box, it just add dots, as opposed to a continuous line. The issue happens on [Chrome 73.0.3683.86 (Official Build) (64-bit), Opera 58.0.3135.107, Edge], Firefox 66.0.1 (64-bit) works very well. This fix fixes the issue for [Chrome, Opera], however it doesn't fix it for Edge. and still works for Firefox. also tested on [Android Chrome, Android Opera Touch] Explanation: There is a problem with this.ontouchstart = function (e) doesn't appear to function well, however eddEventListener('touchstart', function(e) does work