[Info] Scrollview Take Focus Is Coming Back

Just to let you guys know, we hear you and scrollView:takeFocus() is coming back.

Apologies for any inconvenience caused by the temporary removal of this feature. The old implementation of takeFocus ( in widget v1 ) was a bit of a hack and we wanted to improve it rather than just throw anything out there.

Thanks for your patience.

Ok, thanx for this very important info!

Please keep us up to date. An essential part of my App (containing interactive elements in a scrollView) is not working at the moment due to this issue.

ditto - thanks

Danny - Is there actually any other way (that isn’t way complicated) to get a horizontal scrolling section of widget buttons happening?  If so I’d like to hear about it.  For the moment I haven’t come across a way, so it seems “takeFocus()” is the only way and hence a really key thing to have.   

Any idea when this will be back?

try the last daybuild - worked for me

Thanks!  Will give it a try!

When is this coming back?  It didn’t work in the latest daily build.  This delay is preventing the completion of our app…

Hi borderleap,

This should work in 1092 and upwards.

If it does not, post some code please, so we can figure it out.

Thanks,

Alex

Yep - works good!  Thank you :slight_smile:

Ok, thanx for this very important info!

Please keep us up to date. An essential part of my App (containing interactive elements in a scrollView) is not working at the moment due to this issue.

I’ve got 1094 and doesn’t work for me :frowning:
Any sintax change?

works for me

This worked fine for me with widget 1.0 

local function webListener(event) if event.phase == "moved" then local dx = math.abs( event.x - event.xStart ) local dy = math.abs( event.y - event.yStart ) -- if finger drags button more than 5 pixels, pass focus to scrollView if dx \> 5 or dy \> 5 then contenedor:takeFocus( event ) end elseif event.phase == "ended" then print( "toca webView" ) end return true end function establecemento:createScene( event ) local grupoEstablecemento = self.view local fondo = display.newRect(0,0,anchoVisible,altoVisible) fondo:setFillColor(255) contenedor = widget.newScrollView { width = anchoVisible, height = altoVisible, scrollWidth = anchoVisible, scrollHeight = 1600, bottomPadding = 150, hideBackground = true, hideScrollBar = true, horizontalScrollDisabled = true, } webView = native.newWebView( 10, 724, 1004, 400 ) webView:setReferencePoint(display.TopLeftReferencePoint) webView.x = anchoVisible/2 - webView.width/2 webView.y = 400 webView.hasBackground = false webView:request( "proba.html", system.DocumentsDirectory ) webView:addEventListener( "urlRequest", webListener ) grupoEstablecemento:insert(fondo) grupoEstablecemento:insert(contenedor) end

And the scroll doesn’t works right since widget 2.0 (stops the scroll when finger drags over the webview)

Maybe a problem with newWebView? 

Maybe a problem with the native library?
I’m getting an issue trying to insert a newWebView onto newScrollView: it works fine on simulator but not insert the newWebView into the scrollView in the iPad (runs fine in Android)

ditto - thanks

Danny - Is there actually any other way (that isn’t way complicated) to get a horizontal scrolling section of widget buttons happening?  If so I’d like to hear about it.  For the moment I haven’t come across a way, so it seems “takeFocus()” is the only way and hence a really key thing to have.   

Any idea when this will be back?

try the last daybuild - worked for me

Thanks!  Will give it a try!

When is this coming back?  It didn’t work in the latest daily build.  This delay is preventing the completion of our app…

Hi borderleap,

This should work in 1092 and upwards.

If it does not, post some code please, so we can figure it out.

Thanks,

Alex