Tolriq
08/01/2023, 2:59 PMoffset
. (On a Box)
.clickable(enabled = false) {
// Do nothing
}
.offset {
IntOffset(0, offset.roundToPx())
}
This will keep the clickable area at the current position without being affected by the offset. (So problematic in my case)
But
.offset {
IntOffset(0, offset.roundToPx())
}
.clickable(enabled = false) {
// Do nothing
}
Will move the clickable with the offset. While it sound logic with the modifier order and fit my need. The doc of `offset`says:
Offset the content by offset px.
So I wonder if the clickable area is actually supposed to move too as it's doc says: `Configure component to receive clicks via input or accessibility "click" event.`So this time the whole component and not the content. Or is the offset documentation wrong and it's actually the component that moves ?Albert Chang
08/01/2023, 3:11 PMTolriq
08/01/2023, 3:12 PMAlbert Chang
08/01/2023, 3:25 PM