https://kotlinlang.org logo
j

julioromano

06/16/2022, 2:06 PM
I’m using
pointerInput
and
graphicsLayer
to implement 360 degree scrolling on a composable (using translationX and translationY). It seems to work but I can scroll the composable infinitely (bringing it completely out of the screen), how is it possible to compute the actual bounds of the composable so that I can stop the translation when the bounds have been reached?
c

Chris Fillmore

06/18/2022, 12:51 PM
Are you only doing translation?
j

julioromano

06/21/2022, 11:03 AM
translation + scaling
9 Views