I don’t think the “Multitouch: Panning, zooming, r...
# compose
c
I don’t think the “Multitouch: Panning, zooming, rotating” example does quite what the gif implies https://developer.android.com/jetpack/compose/gestures#multitouch
In particular, I don’t think there is single-touch input, only multi-touch. Also, the origin of rotation does not seem to travel with the translation
At least as far as I can tell
Oof, nevermind. Looks like my problem was including the centroid, when I didn’t need to
Although, as a separate issue, I should mention that I needed to use two separate
graphicsLayer
blocks, like this
Copy code
Modifier
  .graphicsLayer {
    // apply translation here
  }
  .pointerInput(...)
  .graphicsLayer {
    // apply rotation here
  }
Without separate blocks, the pointer input doesn’t translate. It may be worth pointing that out in the docs?
a
You must apply them before the pointer input modifier, yes, but you should be able to apply all the transformations in the first graphics layer block.