@@ -491,7 +491,7 @@ void ListViewWithPageHeader::viewportMoved(Qt::Orientations orient)
491491 const bool notShownByItsOwn = contentY() + diff >= m_headerItem->y() + m_headerItem->height();
492492 const bool maximizeVisibleAreaRunning = m_contentYAnimation->isRunning() && contentYAnimationType == ContentYAnimationMaximizeVisibleArea;
493493
494− if (!scrolledUp && (contentY() == -m_minYExtent || m_previousContentY == m_headerItem->y())) {
494+ if (!scrolledUp && (contentY() == -m_minYExtent || (m_headerItemShownHeight == 0 && m_previousContentY == m_headerItem->y()))) {
495495 m_headerItemShownHeight = 0;
496496 m_headerItem->setY(-m_minYExtent);
497497 } else if ((scrolledUp && notRebounding && notShownByItsOwn && !maximizeVisibleAreaRunning) || (m_headerItemShownHeight > 0)) {