nativescript-community / nativescript-drawingpad

:pencil: NativeScript plugin to provide a way to capture any drawing (signatures are a common use case) from the device
Apache License 2.0
90 stars 32 forks source link

feature request: tap event on signature pad #29

Closed Tukkan closed 6 years ago

Tukkan commented 6 years ago

Sometimes you want to disable navigation buttons if signaturepad is empty. Would be cool to be able to detect if user did any action on the pad by having tapEvent on it.

tom-it commented 6 years ago

the promise of getDrawing will reject if drawingpad is empty, so you could just no react to the button being pressed, or display an error message?

bradmartin commented 6 years ago

That is a good idea, you can try to get the image on your button taps, and if it rejects then you don't have anything in the drawing area.

JCAguilera commented 5 years ago

I actually need the events feature, as I need to send data only when the user is drawing.