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

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -