Tolriq
04/25/2023, 5:21 PMonGloballyPositioned
to get the composable position.
var mySourcePosition by remember { mutableStateOf(Offset.Zero) }
.onGloballyPositioned {
mySourcePosition = it.localToWindow(Offset.Zero)
}
But when used in LazyGrid the ``onGloballyPositioned` `is on a rare occasion not called. What would be the proper way to always have up to date object position without the draggable composable being aware that it's in a lazylayout?