There’s an object that gets added to the scrollview when the scroll crosses a particular point in the scrollview and gets added to the parent group again while scrolling back.
local function scrollListener(event)
local x, y = event.target:getContentPosition();
if -y < *Some Y Position* then
scrollView:insert(Object);
Object.y = *Another Y position*;
else
parentGroup:insert(Object);
end
return true;
end
The line where I’m adding the Object to the scrollView inside the listener breaks the height of the Scrollview.