Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make just one gesture occur at a given time ? #59

Open
wangjianpeng opened this issue Aug 29, 2017 · 1 comment
Open

How to make just one gesture occur at a given time ? #59

wangjianpeng opened this issue Aug 29, 2017 · 1 comment

Comments

@wangjianpeng
Copy link

When i add more gestures , like pan , swipe and pinch recognizer, when i just move the screen, swipe and pan gesture will be fired at the same time; when i pan screen , then don't lift one finger, then add another finger to pinch screen, then this will fire pinch event; but i just want fire one event at the same time and make one finger pan or two finger pan , how can i implement them ?

@ryanslikesocool
Copy link

ryanslikesocool commented Oct 29, 2018

If you want the first gesture to stop when the second begins, you can disable the first gesture.

recognizerOne.gestureRecognizedEvent += (r) =>
    {
        recognizerTwo.state = TKGestureRecognizerState.FailedOrEnded;
    }
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants