https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
m

Marc

03/28/2024, 10:27 AM
Is it possible to only override the double-click behavior for a child composable but keep the normal click behavior from the parent?
Copy code
Row (modifier = Modifier.onClick { // do something with the whole row }) {
    ...
  
    Box(modifier = Modifier.onClick(onDoubleClick = { // do something different when double clicking on that box in the row }) { // this onClick listener is needed to. if i keep it empty, the onClick for the parent row doesn't get called }) {
        ...
    }
}