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

IOS : Conflicting gestures when drawing pade loaded in a non-fullscreen modal #56

Open jscti opened 4 years ago

jscti commented 4 years ago

When loading a component containing the drawingPad inside a Modal view, the drawing gestures are conflicting with the IOS modal "panDownToDismiss".. When drawing, the whole modal moves as it think I want to close it with a scroll down. I can do a video If it's needed.

To reproduce :

const options: ModalDialogOptions = {
    viewContainerRef: this._vcRef,
    fullscreen: false
};

this._modalService.showModal(DrawingComponent, options)
    .then((result: string) => {
        console.log(result);
    });

I tried isUseInteractionEnabled / isPassThroughParentEnabled without success. Any clue .?

Thanks

leocrawf commented 4 years ago

Try loading it in a custom modal that is created using Layout view