this is my code for a slider control
most times it works fine but some times when i move the slider it moves like its suppose to but when you release the control it seems to skip the ended phase
[blockcode]
function fnMoveControl(event)
if event.phase == “began” then
elseif event.phase == “moved” then
event.target.y = math.min( 870, math.max( 290, event.y) )
elseif event.phase == “ended” then
ctrl[1] = math.floor( ( ( 870 - control[1].y ) / 58 ) + 0.5 )
ctrl[2] = math.floor( ( ( 870 - control[2].y ) / 58 ) + 0.5 )
print( ctrl[1]…","…ctrl[2] )
fnSetControl()
end
end
[/blockcode]
[import]uid: 7911 topic_id: 13523 reply_id: 313523[/import]
