The takeFocus method is not working for me since updating to the latest daily build. Is anyone else running in to this issue?
Error:
“attempt to call method ‘takeFocus’ (a nil value)”
Code Snippet:
[code]
elseif event.phase == “moved” then – Check if you moved your finger while touching
local dx = math.abs( event.x - event.xStart ) – Get the x-transition of the touch-input
local dy = math.abs( event.y - event.yStart ) – Get the y-transition of the touch-input
if dx > 5 or dy > 5 then
scrollView:takeFocus( event ) – If the x- or y-transition is more than 5 put the focus to your scrollview
end
[/code] [import]uid: 64619 topic_id: 36432 reply_id: 336432[/import]