How could one get a pointerInput for the entire visible screen? (Using Jetpack Compose)
My screen is 3 fragments and setting a pointerInput on the modifier of the outermost composable only invokes for clicks within that fragments bounds.
Need the composable in fragment A to detect click events in fragments B & C.
not kotlin but kotlin colored 3
e
ephemient
10/31/2023, 1:21 AM
assuming you're using compose (it's not clear from your question), that behavior is automatically applied when using
DropdownMenu
(and can be done with anything else based on
Popup
)
m
masteramyx
10/31/2023, 1:45 AM
Yes I'm using compose and thanks for the response.
onDismissRequest
from popup makes sense but I'm wondering how using Jetpack Compose one can detect a tap event anywhere on the screen, without a dropdown menu. Such as a compose API to detect a global tap event