Thanks!
I think I have found the issue, it seems that we (Defold) incorrectly sets a delta x/y of non-zero when a touch starts on devices, on desktop this is always zero.
A workaround in your case would be to modify dirtylarry.lua
by overwriting the action.dx
and action.dy
to 0 in the following if-statement;
-- potentially start scroll/drag
elseif hit and action.pressed then
scroll.started = true
action.dx = 0
action.dy = 0
That seems to fix it when I try locally here.
I’m not sure if I will do a fix for this in the dirtylarry myself, since I think it’s actually a bug in Defold. I’ll add an issue for it instead in our backlog; DEF-2712