Skip to content

What is averageTouches in Pan Gestures ? #2346

Answered by j-piasecki
mtlaso asked this question in Q&A
Discussion options

You must be logged in to vote

.averageTouches(true) is a modifier that makes Android mimic the behavior of iOS - when you have a pan gesture with more than one finger, Android by default will track the position of only the first one, while iOS averages the position of all active pointers. Using this modifier you can tell Android to use the averaged position of all active pointers to calculate the translation values for the gesture.

Thanks for pointing out it's not explained in the docs, it should be fixed soon.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mtlaso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants