Reporting a minor bug with widget.newScrollView()

I discoved that inserting an object into the scrollview display while the box is moving will interrupt the friction and stop the box from gliding. example:

widget = require "widget" local PreloadArea = 200 -- Extra bit offscreen to prevent it from reaching the bottom local BoxTable = {} local scrollView function getTotalHeight(tbl) local height = 0 for i,v in pairs(tbl) do height = height + v.contentHeight end return height end function addBox() local box = display.newRect(0,0,display.contentWidth,100) box:setFillColor(math.random(),math.random(),math.random()) box.y = getTotalHeight(BoxTable) box.x = display.contentWidth/2 table.insert(BoxTable,box) scrollView:insert(box) end scrollView = widget.newScrollView({ top = 0, left = 0, hideScrollBar = true, }) scrollView:setIsLocked( true, "horizontal" ) Runtime:addEventListener("enterFrame",function( event ) if scrollView and scrollView.\_view and scrollView.\_view.y then while((getTotalHeight(BoxTable) \< display.contentHeight + math.abs(scrollView.\_view.y)+PreloadArea)) do addBox() end end end)

basically this makes an infinte scrolling box by loading a new box in each time it comes near the bottom.

when scrolling down you will notice it the friction never takes over but when scrolling up you can see it will glide

I don’t think the scrollView was meant to be used that way, but you can file a bug if you feel strongly that this is an issue that will affect a lot of users:  

https://developer.coronalabs.com/content/bug-submission

Alternately, you can modify the widget library for your specific usage:

http://github.com/coronalabs/framework-widget

I don’t think the scrollView was meant to be used that way, but you can file a bug if you feel strongly that this is an issue that will affect a lot of users:  

https://developer.coronalabs.com/content/bug-submission

Alternately, you can modify the widget library for your specific usage:

http://github.com/coronalabs/framework-widget