How do i get release position from `PressInteracti...
# compose
t
How do i get release position from
PressInteraction.Release
? Currently it only provides
pressPosition
🤔
@Adam Powell any idea about this?
l
What is your use case? It currently isn't provided so you would need to use your own gesture detector to manually see the release event and the position
Indication typically doesn't move with a press, and it stays in the same position until the press is released
t
I am trying to build a custom indicator which will draw something when released at the release point. I am doing this on top of a
Surface
with
role = Role.Button,
, because of this, the gesture detector won’t work. I think i need to go with the other bare minimum`Surface`
l
If you wanted, you could make your own custom
PressInteraction
subclass that also has released information - this would allow you to still use indication for this system
z
Indication typically doesn't move with a press, and it stays in the same position until the press is released
What is “typically” here? More than just Material? I've seen some TV UIs that move the indication along with a gesture too.