xamarin.ios - Swipe Gesture with Two Fingers -
i added swipegesture view on page. if make left swipe view switches subview. same if right swipe.
the problem is, on 1 of pages uislider
, if change value of this, swipe gesture triggers , navigates subview.
is possible make swipe gesture triggers if swipe 2 fingers?
yes, can use swipe gesture 2 fingers using numberoftouchesrequired property. agree @jonathan.peppers though if have conflicting gesture patterns it's bad ux practice differentiate them incrementing touch points.
i recommend using abstraction using gestures , modify using sort of type check swipe: https://gist.github.com/1453770
if(typeof(t) == typeof(uiswipegesturerecognizer)) { ((uiswipegesturerecognizer)frecognizer).numberoftouchesrequired = 2; }
Comments
Post a Comment