Fix bug with continuous autoscrolling when smooth scrolling is enabled (#7433)

This commit is contained in:
regulus79
2024-08-10 22:39:55 -04:00
committed by GitHub
parent 74c73e5848
commit 0e96c267cd

View File

@@ -774,7 +774,7 @@ void SongEditor::updatePosition( const TimePos & t )
}
else if (m_timeLine->autoScroll() == TimeLineWidget::AutoScrollState::Continuous)
{
animateScroll(m_leftRightScroll, std::max(t.getTicks() - w * TimePos::ticksPerBar() / pixelsPerBar() / 2, 0.0f), m_smoothScroll);
m_leftRightScroll->setValue(std::max(t.getTicks() - w * TimePos::ticksPerBar() / pixelsPerBar() / 2, 0.0f));
}
m_scrollBack = false;
}