ScrollView - scroll issue on latest builds

The new scrollview scrolls to top when adding a new item into an existing scrollview. This is a huge bug in Corona that prevents us from publishing our app with support for iOS7.

Can staff please fix it ASAP? We have reported this bug but as I can see it was previously discused but not resolved: http://forums.coronalabs.com/topic/41639-20132087-widgetnewscrollview-scrolls-to-top-when-inserting-new-items/

This behavior by the scrollview is unacceptable. Is there at least any known workaround to prevent this?

Tnx

Yes, this is a huge bug bacause we cannot use display.loadRemoteImage on ScrollView items.

Please respond to this issue.
 
Example:
 

[lua]
– Listener for image download
local function apiImageListener( event )
    if ( event.isError ) then
        print ( “Network error - download failed” )
    else
        local img = event.target
        if (img ~= nil) then
            img.alpha = 0.0
            if (scrollView ~= nil and modGroup ~= nil) then
                scrollView:insert(img) --here is the problem, scrollView scrolls to top!!!
                transition.to( event.target, {time=200, alpha = 1.0 } )
            else
                img:removeSelf( )
                img = nil
            end
        end
    end
end
 
display.loadRemoteImage( image, “GET”, apiImageListener, imgName, system.DocumentsDirectory, imgX, imgY)

[/lua]

Daniel

Have you filed a bug report on it?  if so can you post the bug number here?  Also if you have not please do so.  Make sure to include a build.settings and config.lua as well with a project that demonstrates the problem… and post the bug number back here when you get the email back from the bug system.

Once I have the bug report number, I can ask Engineering about it.

Rob

Yes, I have filed a bug report: (Case 30775) ScrollView - scroll to top when adding items
 
Demo project: https://drive.google.com/file/d/0B8DuAFI-dSVmZ1BtM2lBOWFUUEU/edit?usp=sharing
 
 
 
 
Daniel

Rob,

are the any news about this issue? I cannot update my app without this fixed.

ZJ

We are still working on it. 

Thanks to Primoz, there is an unofficial bugfix here: http://forums.coronalabs.com/topic/42131-in-g2-scrollview-is-not-that-smooth/page-2

How come he could resolve it so fast? :slight_smile: Anyway, its a good thing that Widget is open source. We hope to see this fixed soon in a official version.

ZJ

i guess this discussion is continued here : http://forums.coronalabs.com/topic/42131-in-g2-scrollview-is-not-that-smooth/page-3

This was fixed in the latest build as far as I know. Alex reported it fixed.

Yes it is fixed in 2014.2189 daily build. Alex & Rob tnx 4 helping.

ZJ

Yes, this is a huge bug bacause we cannot use display.loadRemoteImage on ScrollView items.

Please respond to this issue.
 
Example:
 

[lua]
– Listener for image download
local function apiImageListener( event )
    if ( event.isError ) then
        print ( “Network error - download failed” )
    else
        local img = event.target
        if (img ~= nil) then
            img.alpha = 0.0
            if (scrollView ~= nil and modGroup ~= nil) then
                scrollView:insert(img) --here is the problem, scrollView scrolls to top!!!
                transition.to( event.target, {time=200, alpha = 1.0 } )
            else
                img:removeSelf( )
                img = nil
            end
        end
    end
end
 
display.loadRemoteImage( image, “GET”, apiImageListener, imgName, system.DocumentsDirectory, imgX, imgY)

[/lua]

Daniel

Have you filed a bug report on it?  if so can you post the bug number here?  Also if you have not please do so.  Make sure to include a build.settings and config.lua as well with a project that demonstrates the problem… and post the bug number back here when you get the email back from the bug system.

Once I have the bug report number, I can ask Engineering about it.

Rob

Yes, I have filed a bug report: (Case 30775) ScrollView - scroll to top when adding items
 
Demo project: https://drive.google.com/file/d/0B8DuAFI-dSVmZ1BtM2lBOWFUUEU/edit?usp=sharing
 
 
 
 
Daniel

Rob,

are the any news about this issue? I cannot update my app without this fixed.

ZJ

We are still working on it. 

Thanks to Primoz, there is an unofficial bugfix here: http://forums.coronalabs.com/topic/42131-in-g2-scrollview-is-not-that-smooth/page-2

How come he could resolve it so fast? :slight_smile: Anyway, its a good thing that Widget is open source. We hope to see this fixed soon in a official version.

ZJ

i guess this discussion is continued here : http://forums.coronalabs.com/topic/42131-in-g2-scrollview-is-not-that-smooth/page-3

This was fixed in the latest build as far as I know. Alex reported it fixed.

Yes it is fixed in 2014.2189 daily build. Alex & Rob tnx 4 helping.

ZJ