TouchKit icon indicating copy to clipboard operation
TouchKit copied to clipboard

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

Open wangjianpeng opened this issue 8 years ago • 1 comments

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 ?

wangjianpeng avatar Aug 29 '17 06:08 wangjianpeng

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;
    }
};

ryanslikesocool avatar Oct 29 '18 23:10 ryanslikesocool