https://kotlinlang.org logo
#compose
Title
# compose
r

Roudy Korkis Kanaan

08/04/2022, 1:24 AM
Hey everyone, I'm trying out the
rememberTransformableState
for panning/zooming but it's not working as the sample suggests. I copied the sample found here. Zooming and rotating works but
offsetChange
is always zero
j

jasu

08/04/2022, 7:45 AM
I had used it recently, multitouch is working fine for me here: https://developer.android.com/jetpack/compose/gestures#multitouch
r

Roudy Korkis Kanaan

08/04/2022, 7:48 AM
@jasu copy pasting that sample exactly to a new project isn't working with the panning for me, jst the zoom and rotate, the lambda always returns an offset of 0.0
j

jasu

08/04/2022, 9:21 AM
hmm interesting. I’d suggest debugging
l

Landry Norris

08/04/2022, 2:09 PM
I’ve been using it without issues, but the site shows panning with one finger, but it’s two fingers for me (which is what I wanted anyways). It’s odd that it doesn’t match what the site shows.
9 Views