Push yPos to TimelineItem::Preprocess().

This commit is contained in:
Bartosz Taudul
2023-04-05 18:07:09 +02:00
parent 77402eb9c2
commit 9500add83b
6 changed files with 6 additions and 6 deletions

View File

@@ -143,7 +143,7 @@ void TimelineController::End( double pxns, const ImVec2& wpos, bool hover, bool
{
const auto yPos = wpos.y + yOffset;
const bool visible = m_firstFrame || ( yPos < yMax && yPos + item->GetHeight() >= yMin );
item->Preprocess( ctx, m_td, visible );
item->Preprocess( ctx, m_td, visible, yPos );
}
yOffset += m_firstFrame ? 0 : item->GetHeight();
}