[ASK] About Scrollview

Hai mate,

first, i really really new in corona sdk, and sory for my bad english.

i have question about scrollview, hope you can help me to find out…

here is the code:

local widget = require("widget") \_W = display.contentWidth -- Get device screen width \_H = display.contentHeight -- Get device screen height imgPiece = 3 imgPieces = {} imgPieceStartingY = { 80,230,380 } imgPieceWidth, imgPieceHeight = 120, 120 -- I have a background image here bg = display.newImageRect("bg.png", \_W, \_H) bg.x = \_W/2 bg.y = \_H/2 -- this how i show the scrollview scrollView = widget.newScrollView{ top=100, left = \_W/2, height=\_H/2, width = 160, hideBackground = true, scrollWidth = 50 , scrollHeight = 1000 } for i = 1, imgPiece do -- display the image on scrollview imgPieces[i] = display.newImageRect("s"..i..".jpg", imgPieceWidth, imgPieceHeight) imgPieces[i].x = 85 -- Set Starting X position for puzzle piece imgPieces[i].y = imgPieceStartingY[i] -- Set Starting Y position for puzzle piece imgPieces[i].id = i imgPieces[i].place = "start" scrollView:insert(imgPieces[i]) end

the problem is, why when i try to drag the image out from scrollview the image is dissapear?

what i try here is to make the image is keep visible.

Thx