Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 86121b5

Browse files
committed
Merge branch 'master' of github.com:xamarin/SignaturePad
2 parents c96af84 + 9dfae04 commit 86121b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/SignaturePad.iOS/InkPresenter.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ private void Initialize ()
2828
{
2929
Opaque = false;
3030
}
31+
32+
// If you put SignaturePad inside a ScrollView, this line of code prevent that the gesture inside
33+
// an InkPresenter are dispatched to the ScrollView below
34+
public override bool GestureRecognizerShouldBegin(UIGestureRecognizer gestureRecognizer) => false;
3135

3236
public override void TouchesBegan (NSSet touches, UIEvent evt)
3337
{

0 commit comments

Comments
 (0)