TouchKit
TouchKit copied to clipboard
How to make just one gesture occur at a given time ?
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 ?
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;
}
};