Join Slack
Powered by
Is there a way to prevent a mouse click event of g...
# compose-desktop
t
TheMrCodes
02/25/2021, 2:14 PM
Is there a way to prevent a mouse click event of going throw the composable and triggering the click event of the composable underneath (in a Box)?
TheMrCodes
02/25/2021, 2:22 PM
Got it working with
Copy code
Modifier.pointerInput(Unit) { detectTapGestures(onPress = {}) }
If there is an easier way let me know
t
Timo Drick
02/25/2021, 3:59 PM
You could also put an invisible Box on top of the other component. (Of course it is not better. Just an other possible way of doing it)
t
TheMrCodes
02/25/2021, 6:28 PM
That doesn't work thats exactly the Problem 😅
Open in Slack
Previous
Next