The error “Attempt to call method ‘_loseFocus’ (a nil value)” occures in this kind of case:
local svScreen = widget.newScrollView{
width = display.contentWidth ,
height = display.contentHeight,
}
local svPhotos = widget.newScrollView{
width = display.contentWidth ,
height = display.contentHeight,
listener = function(event)
local phase = event.phase
if ( phase == “moved” ) then
local dy = math.abs( ( event.y - event.yStart ) )
if ( dy > 10 ) then
svScreen:takeFocus(event)
end
end
end,
}
In version 2014.2189 the same error does not occur.