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

Drawing Pad is cleared if User presses on pad #48

Closed NL33 closed 5 years ago

NL33 commented 5 years ago

NS 5.1 iOS (all levels--I am seeing this on emulator and iOS 11.4 phone)

Issue: If a user presses down on the pad (say for half a second--similar to tap action), the drawing pad is cleared. (It is like it executes the clearDrawing() action, even though the code does not have this action).

Not sure why this is happening, but a near term fix could be if there is a counter action to clearDrawing()? ie, a way of disabling clearDrawing()?

example code:

html: <DrawingPad style="margin: 5px" height="125" id="drawingPad" penColor="black" penWidth="3"></DrawingPad>

ts: registerElement('DrawingPad', () => require('nativescript-drawingpad').DrawingPad);

NL33 commented 5 years ago

I'll close out the issue. At this stage I am assuming the clear out function is on purpose--a way to clear out the signature by pressing on the pad.