Closed SourceryOne closed 13 years ago
Check out Jquery Draggable where you have .start and .stop to put events on.
Triggering the event when leaving the jSignature area can be handled via jQuery's event handlers like onblur.
Been pretty busy lately, I'll add an optional callback functionality to mouseups when time permits.
This has just been committed to the repository. Basically, you can now defined a mousedown and mouseup function under the settings parameter
Here comes a new idea :)
A possibility to add an event when the mouse or finger is lifted from the canvas/jSignature. For example to send a callback to a save function. So as soon as you have written your signature (or drawing or whatever) it is sent to the system and saved.
Although this is a good idea and even though when writing a signature it is possible to lift the pen/mouse/finger many times, usually if you send all the data, then the last time so lift it everything will be saved.
BUT, for bandwidth reasons maybe it would be an idea to have a counter for every mouse-up so only 1 in X does a call-back.
Another way would be for an event to trigger when leaving the jSignature area.
Unsure which way would be the best way to solve it, maybe both should be possible?