Skip to content

Commit

Permalink
Fix bug with continuous autoscrolling when smooth scrolling is enabled (
Browse files Browse the repository at this point in the history
  • Loading branch information
regulus79 committed Aug 11, 2024
1 parent 74c73e5 commit 0e96c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/editors/SongEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0e96c26

Please sign in to comment.