Hi guys
I need some light to see this.
I am trying to do a “scrollview” in which I have 8 “textfields” and I can not take focus in the “scrollview” if the person who touches the screen does not want to write just want to scroll. Is a bit uncomfortable because I have the textfields set to achieve a good look in my App but it is impossible to scroll when touching the textfields. I am a newbie and I have the impression that something must be written in lua that is not part of the Corona documents API. I have searched on google and the forum and I have not found much information.
here is some code of my text listener
-- text listener 1 local function textListener\_1( event ) if ( event.phase == "began" ) then dy = math.abs( event.y - event.yStart ) --dy forward declared \*\*\*lua:142 line\*\*\* if ( dy \> 5 ) then scrollView:takeFocus( event ) --scrollview forward declared else print( "user begins editing numericField\_1" ) numericField\_1.text = "" end elseif ( event.phase == "ended" or event.phase == "submitted" ) then --Output resulting text from "defaultField" print( event.target.text ) --if tonumber( event.target.text ) then --numBlocks = tonumber( event.target.text ) \* 10 --print( numBlocks ) --result\_1.text = numBlocks --result\_1 forward declared elseif ( event.phase == "editing" ) then print( event.newCharacters ) print( event.oldText ) print( event.startPosition ) print( event.text ) myNum = 4 --myNum forward declared if string.len(event.text) \> myNum then numericField\_1.text = event.oldText end end end
the error
Nice day for all!