What happens if I add multiple clickable modifiers...
# compose
m
What happens if I add multiple clickable modifiers one after another? Will they overwrite each other?
z
Effectively, yes, I believe so. However, that’s because
clickable
always “consumes” the click. If you use the lower level input APIs, you can conditionally decide to not consume clicks, in which case they’d be sent to the next listener in the tree.
m
Does it ever make sense to do that? If for example I put a clickable then padding and another clickable modifier, will it allow me to have 2 separate clickable areas (center and outer) for a single composable?
z
Yep!
m
Cool! Thanks :)