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

Commit

Permalink
Merge pull request #78 from GabrieleBenvenuti/GabrieleBenvenuti-patch…
Browse files Browse the repository at this point in the history
…-ScrollView

Fixed ScrollView problem on iOS
  • Loading branch information
mattleibow authored Jun 16, 2017
2 parents ed0d8a2 + ca6cc2e commit 9dfae04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SignaturePad.iOS/InkPresenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ private void Initialize ()
{
Opaque = false;
}

// If you put SignaturePad inside a ScrollView, this line of code prevent that the gesture inside
// an InkPresenter are dispatched to the ScrollView below
public override bool GestureRecognizerShouldBegin(UIGestureRecognizer gestureRecognizer) => false;

public override void TouchesBegan (NSSet touches, UIEvent evt)
{
Expand Down

0 comments on commit 9dfae04

Please sign in to comment.