timeruler: fixed scroll regression

Fixes #1960
This commit is contained in:
itsmattkc
2022-06-21 10:26:19 -07:00
parent bc49cfeede
commit 0fc6ab149f
+4 -1
View File
@@ -364,9 +364,12 @@ void SeekableWidget::DrawPlayhead(QPainter *p, int x, int y)
{ {
int half_width = playhead_width_ / 2; int half_width = playhead_width_ / 2;
if (x + half_width < 0 || x - half_width > width()) { {
int test = x - this->GetScroll();
if (test + half_width < 0 || test - half_width > width()) {
return; return;
} }
}
p->setRenderHint(QPainter::Antialiasing); p->setRenderHint(QPainter::Antialiasing);