I want to get `PointerEventType.Enter` events but ...
# compose
a
I want to get
PointerEventType.Enter
events but i want them to have an offset/padding from the sides of the composable. any ideas how i can achieve this?
s
Assuming you want something that doesn't affect the actual size of the element (i.e. just a "ghost" area, no extra visible padding), I'm not sure if that's possible with the current APIs. Looking into
onPointerEvent
and friends, they seem to rely on internal APIs to control the detection area... There may be some hacky way to do it, but I have no ideas 😅
This makes for a good feature request though!
a
i ended up implementing my own thing from scratch