From 0fc6ab149f3ff9a49ff4e2a1711f00a9f36ec68d Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Tue, 21 Jun 2022 10:26:19 -0700 Subject: [PATCH] timeruler: fixed scroll regression Fixes #1960 --- app/widget/timeruler/seekablewidget.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/widget/timeruler/seekablewidget.cpp b/app/widget/timeruler/seekablewidget.cpp index 68f255bc7..45cfb9717 100644 --- a/app/widget/timeruler/seekablewidget.cpp +++ b/app/widget/timeruler/seekablewidget.cpp @@ -364,8 +364,11 @@ void SeekableWidget::DrawPlayhead(QPainter *p, int x, int y) { int half_width = playhead_width_ / 2; - if (x + half_width < 0 || x - half_width > width()) { - return; + { + int test = x - this->GetScroll(); + if (test + half_width < 0 || test - half_width > width()) { + return; + } } p->setRenderHint(QPainter::Antialiasing);