Fix bug with continuous autoscrolling when smooth scrolling is enabled (#7433)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user