Problem with touch gesture and pan gesture




I have a mainlayout and an image on it. I have given touch gesture for mainlayout and pan gesture for image.

When i tried to drag the image both the touch event of mainlayout and pan event of image is getting triggered.

This is happening only in iOS but android only pan event is triggered which is correct.

Please tell me how to avoid touch event during panning on the image in iOS.



On touch event, you can find which view was actually touched and ignore if it was not the parent layout. Here is an example,