ScrollView - content disappears when scrolling quickly

Hi, I’m using the Build 2012.812. My ScrollView doesn’t seem to work properly as if I’m to scroll slightly faster, the display object within disappears and not able to scroll back onto the screen. The scrollWidth parameter is currently set to the width of my display object, i’ve tried playing with that, but that too didn’t.

Can someone please give me some guidance? Thanks!

code:

require “sprite”

tilesheet = sprite.newSpriteSheet( “tiles3.png”, tilew, tileh )
local tileset1 = sprite.newSpriteSet( tilesheet, 1, 25 )

– attach background
local bg = display.newImage( “background.jpg” )

– attach tiles to stage
local stage = display.newGroup()
for i = 0, #map-1, 1 do
for j = 0, #(map[1])-1, 1 do

local tilesprite = sprite.newSprite ( tileset1 )
tilesprite.y = tileh * i + 20
tilesprite.x = tilew * j + 20
tilesprite.currentFrame = map[(i+1)][(j+1)]+1
stage:insert( tilesprite )

end
end

local widget = require “widget”
local scrollview = widget.newScrollView{
scrollHeight = 0,
scrollWidth = ((#(map[1])-stmapat)*tilew)-1,
friction = .1,
hideBackground = true,
}
scrollview:insert( stage )
scrollview.content.verticalScrollDisabled = true [import]uid: 146471 topic_id: 26187 reply_id: 326187[/import]

I noticed this may relates to the gaps I have within my tiles. After trying making my sprite sheet 1 pixel bigger between each tile (but keeping tile width and height placement), not perfectly, but the gaps are gone. And the scrollView has a much much lower chance in disappearing.

Could it be the chances of pressing in the gaps during scroll? [import]uid: 146471 topic_id: 26187 reply_id: 106096[/import]

Also noticing something really odd… after leaving my simulator running for an hour, no matter how I tried, the scrollView seems to work perfectly fine without disappearing…

does this widget or simulator have anything timing related running at the back? [import]uid: 146471 topic_id: 26187 reply_id: 106155[/import]

Absolutely same problem here and no matter what kind of content is in scrollview, even the simplest one png file makes the scrollview disappear after 2-3 scrolls.

Ansca can we call this a bug?
P.S. didn’t had chance to check this on the device though. [import]uid: 39634 topic_id: 26187 reply_id: 106509[/import]

EDIT - sorry I’ve misread you problem. mine is different… the content does re-appear once the scroll is over but might still be related so I’m leaving it here.

I just ran into the same annoying problem…
It seems that sprites are not behaving nicely within a scrollView widget :frowning:

I tried the new image sheet API and the problem there is even worse. The sprites will not show at all unless I do a setFrame with a delay of 1 second after the scrollView is initiated (if I put 100ms it doesn’t work, needs to be a long delay).

Also in the new API once you scroll the content just disappears forever.

This is _very_ annoying. We have moved to using a lua written scrollView module of our own and it wasted us a full day of work…

This problem only happens to us with sprites. other display objects behave ok and there is no flickering. [import]uid: 80469 topic_id: 26187 reply_id: 107791[/import]

Hi max here ,
I have the same problem.I try a simple scroll code and when dragging fast the content disappears no error is thrown though. also I haven’t checked it with the device but the simulator is not supposed to do that is it. I use the windows 799 build. Hope this get fixed soon.

Thank you
[import]uid: 115284 topic_id: 26187 reply_id: 108632[/import]