Clayton G
02/14/2024, 8:57 PMButton
behind Column
)
If the column isn't scrollable (No Modifier.verticalScroll()
) I can click behind it fine.
But, when it's scrollable it seems to consume taps as well as drags. Is there a way to only consume drags and not taps?
I can detectTapGestures
on the Column
and then forward the taps to a MutableInteractionSource
that the Button
is using.
It works, but I have to manually do the hit test and call the button's click listener.
It also doesn't work with non-clickable composables in the Column
. You can click through them to the button.
If anyone has suggestions or pointers that'd be great, Thanks!Clayton G
02/14/2024, 8:59 PMGarret Yoder
02/14/2024, 9:06 PMClayton G
02/14/2024, 9:07 PMGarret Yoder
02/14/2024, 9:11 PMClayton G
02/14/2024, 9:14 PMBox {
GoogleMap()
FloatingActionButton()
Column {
Spacer()
// ...
}
}
Garret Yoder
02/14/2024, 9:16 PMGarret Yoder
02/14/2024, 9:16 PMGarret Yoder
02/14/2024, 9:17 PMClayton G
02/14/2024, 9:19 PMGarret Yoder
02/14/2024, 9:20 PMClayton G
02/15/2024, 1:45 AMClayton G
02/15/2024, 1:45 AMClayton G
02/15/2024, 1:45 AM