This might help you :
Use this:
Rules - > when a touch begins on this:
Y coordinate of touch saved in variable FirstY
- > when this is pressed:
Y coordinate of touch variable newY,
- > when this is created: follow this with the camera
Script - > onUpdate(dt)
local differenceY=my.variables.FirstY-my.variables.newY
my.layout.y = differenceY
end
I used this in my deck but with no Lua code this time I gave you the adaptation of my deck