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

can now turn off the long press gesture to clear #52

Closed JillevdW closed 5 years ago

JillevdW commented 5 years ago

The CocoaPod that is used uses a long press gesture to clear the view. However, on doing so, the background color isn't persisted. This change will allow people to select whether they want to use that long press gesture or not. The gesture will still be on by default, and will only be removed when you set the clearOnLongPress property to false. It has been tested with two way binding in Angular, and setting it to true after it has been false will successfully add the gesture recognizer again.

bradmartin commented 5 years ago

Very nice find and PR. Thanks 👍