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

Stefano Rodriguez

11/09/2020, 11:30 AM
I’m noticing that if I apply a scale transformation on a container
Box
(with
.drawLayer
modifier) the input events are not properly transformed and looks like the button events are triggered by touch events on their original (not transformed) position. Is this something expected or a bug?
actually it’s not even the original position, it’s just a wrong position 😄
m

Mihai Hrincescu

11/09/2020, 1:01 PM
There is a bug report already for this issue, probably getting fixed in next release https://issuetracker.google.com/issues/171293708
s

Stefano Rodriguez

11/09/2020, 1:47 PM
update: looks like the behaviour, at least in my case, is wrong only when the child of the transformed box is an
AndroidViewBinding
composable
I’ve tested it with a fully-composable layout and it appears to be working correctly
2 Views