Sure, here it is:
local widget = require( "widget" ) local scrollView = widget.newScrollView { x = display.contentCenterX, y = display.contentCenterY, width = display.contentWidth, height = display.contentHeight, scrollWidth = 800, scrollHeight = 1200, isBounceEnabled = false } local background = display.newImageRect( "testBackground.png", 800, 1200 ) background.x = 400 background.y = 600 scrollView:insert( background ) scrollView:scrollTo("bottom", {time = 100})
Here is a .zip file with all the files.
I’m using build: 2014.2359