https://kotlinlang.org logo
#compose
Title
# compose
c

Chris Fillmore

02/24/2022, 5:21 PM
I’m using
pointerInput
to detect dragging, and the area that receives the input doesn’t drag along with the element. That is, say I start with something in the center of the screen, and I drag it to the top-left. I can no longer drag that element by putting my finger on it in the top left and dragging. However, if I put my finger in the center of the screen and drag from there, I can drag the item.
Ok I think I answered my own question, and I had the modifiers out of order (applying
offset
after
pointerInput
, when it seems I need to apply it before)
4 Views