The gridview:scrollToTop
function doesn't appear to work. Here's the function:
function playdate.ui.gridview:scrollToTop(animated)
if animated == nil then animated = true end
self:setScrollPosition(0, self.scrollPositionY, animated)
end
The name of the function suggests this should scroll a vertical list to the top. Unless I'm mistaken, self.scrollPositionY
is the current scroll position which makes this call a no-op for vertical lists. Perhaps the intent was to preserve the current x position instead, while animating to 0 for y?