I'm working with SignaturePad. (https://github.com/szimek/signature_pad)
According to the API, onBegin()
is called at the start of a stroke, however it seems to only get called on page load
Example:
var pad = new SignaturePad (canvas, {
backgroundColor: 'rgb(255,255,255)',
velocityFilterWeight:0.4,
onBegin: console.log('hello')
//onBegin: startWritingTimer()
});
The above code logs 'hello' when the page is loaded, rather than at the start of each stroke. Have I misinterpreted the API?