Tlaster
06/04/2021, 6:04 AMmatvei
06/04/2021, 11:09 AMonDrag
is called before onDragStarted
for the touch slop, causing the call-sequence contract to break.
The way to fix it and both to simplify the mental model of this usages is to consume always, and allow people to go down the layer and use drag
function instead of detectDrag*
if they need something a bit more custom.
Does this make sense?Tlaster
06/04/2021, 11:41 AMTlaster
06/04/2021, 11:44 AMdrag
instead of detectDrag*
, but it's not that easy to use compare to detectDrag*
matvei
06/04/2021, 11:45 AMmatvei
06/04/2021, 11:47 AMbut it's not that easy to use compare toYeah, I understand the frustration. It's a judgement call, however. It makes other, less advanced usecases way easier and more consistent because the callback order is correct and people don't have to be aware of thedetectDrag*
consumePositionChange
call, similar how they shouldn't care about it in other detect*
functions, like detectTapGestures
or detectTransformGestures
Tlaster
06/04/2021, 11:55 AMdetect*
when I'm using detectDrag*
.