How could one get a pointerInput for the entire vi...
# android
m
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
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
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