event.y

Type Number
Event touch
Revision 2017.3060
Keywords touch, y

Overview

The y position in screen coordinates of the touch.

Example

local circle = display.newCircle( 50, 50, 100 )
circle:setFillColor( 0, 1, 1 )
local function moveCircle( event )
    circle.x = event.x
    circle.y = event.y
end

Runtime:addEventListener( "touch", moveCircle )