display.newImage() and scrollViews

I have a ScrollViewWidget and dynamically inserts images into it using display.newImage() at the same time the user scrolls down in the ScrollView. It works perfectly as long as the user does not lift the finger from the scroll view. The images are smoothly inserted into the ScrollView.

The problem: If the user swipes down in the ScrollView (swipes and *lift* the finger) the ScrollView proceed to work its way down and finally stops. My problem is that as soon as I insert an image in the ScrollView the scrolling motion abruptly stops.

Have anyone seen this? Any workarounds?

Cheers

/Joakim

Solved it. I use a display.newRect() to create placeholder with the same dimensions as the image and whenever I wants to add the image dynamically I do that with the rectangle’s fill field (as defined by the ShapeObject), i.e. I set it to {type=“image”, filename="…"}.

I just had to RTFM. :slight_smile: I like the Corona API. There is always a way forward.

Thanks

/Joakim

Solved it. I use a display.newRect() to create placeholder with the same dimensions as the image and whenever I wants to add the image dynamically I do that with the rectangle’s fill field (as defined by the ShapeObject), i.e. I set it to {type=“image”, filename="…"}.

I just had to RTFM. :slight_smile: I like the Corona API. There is always a way forward.

Thanks

/Joakim