I'm using GestureRecognizer for handling input taps in WP8.1 app. I have different actions for single and double taps. And I need different events. I used this checking, but this not works and when I need only double tap event - works both single tap and double tap.
void RecognizerHelper::OnTapped(GestureRecognizer ^sender, TappedEventArgs ^args)
{
if (this->DoubleTap && args->TapCount == 2)
{
//make doubletap action
}
if (this->ManipulationStarted && args->TapCount == 1)
{
//make single tap action
}
}
Why the second condition is always true??
Aucun commentaire:
Enregistrer un commentaire