Hi, I'm building a grid. I need to make it able to...
# compose
d
Hi, I'm building a grid. I need to make it able to programmatically scroll with animation and zoom to a specific item. I've tried with both
LazyVerticalGrid
and
MinaBox
where I do the zooming through
Modifier.scale
but when I attempt to
animateScrollTo
an item it doesn't consider the
scale
and scrolls to a different item. Does anyone has any tips or solutions?
m
You need to make sure that
transformOrigin
property isn't at center(which is the default) and account for the scale value in your position calculation. Here is some previous discussion on this: https://kotlinlang.slack.com/archives/C01D6HTPATV/p1709878627985709?thread_ts=1709847175.266339&cid=C01D6HTPATV
👍 1