Hey, does anyone happen to know why onTap is calle...
# compose
s
Hey, does anyone happen to know why onTap is called when I tap the red box here? but not the green box?
Copy code
setContent {
    Stack(Modifier.fillMaxSize()) {
        Box(backgroundColor = Color.Green, modifier = Modifier.tapGestureFilter(onTap = { ... }).preferredSize(200.dp).offset(200.dp, 200.dp))
        Box(backgroundColor = Color.Red, modifier = Modifier.preferredSize(100.dp))
    }
}
l
i think
offset
might not be transforming pointer input yet. cc @Shep Shapard
s
thanks, that makes sense, looks like on tap is being called when expected using
Alignment
to position the
Box
but just not
offset
.