What’s the actual purpose of `consumePositionChang...
# compose
t
What’s the actual purpose of
consumePositionChange()
(link)? 🤔
👍 1
Most of the drag animation sample has that method call inside their
onDrag
callback. But so far my drag animation works fine without it 🤔
a
If there's only one gesture detector, there won't be any difference. But if there are multiple detectors (can be on different nodes, e.g. draggable child in a scrollable parent), consuming the change will prevent it from being processed by other detectors.
👍 1
👍🏽 1
today i learned 3
t
Understood. Thanks @Albert Chang