in my app, i have buttons and a white background…some buttons are offscreen…i’ve added scroll view…it works fine…but it gets scrolled only when i scroll it from white portion…when i scroll it from the buttons portion it doesnt get scrolled…
local dy = math.abs( ( event.y - event.yStart ) ) -- If the touch on the button has moved more than 10 pixels, -- pass focus back to the scroll view so it can continue scrolling if ( dy \> 10 ) then scrollView:takeFocus( event ) end return true
local dy = math.abs( ( event.y - event.yStart ) ) -- If the touch on the button has moved more than 10 pixels, -- pass focus back to the scroll view so it can continue scrolling if ( dy \> 10 ) then scrollView:takeFocus( event ) end return true