Skip to content

Commit

Permalink
Accidentally committed varying scroll speed with zoom -- removing
Browse files Browse the repository at this point in the history
  • Loading branch information
regulus79 committed Jul 26, 2024
1 parent aa6d4bc commit 0a16a93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/editors/SongEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,12 +545,12 @@ void SongEditor::wheelEvent( QWheelEvent * we )
else if (abs(we->angleDelta().x()) > abs(we->angleDelta().y())) // scrolling is horizontal
{
m_leftRightScroll->setValue(m_leftRightScroll->value()
- we->angleDelta().x() / pixelsPerBar());
- we->angleDelta().x());
}
else if (we->modifiers() & Qt::ShiftModifier)
{
m_leftRightScroll->setValue(m_leftRightScroll->value()
- we->angleDelta().y() / pixelsPerBar());
- we->angleDelta().y());
}
else
{
Expand Down Expand Up @@ -764,7 +764,7 @@ void SongEditor::updatePosition( const TimePos & t )
- trackOpWidth
- contentWidget()->verticalScrollBar()->width(); // width of right scrollbar

if (m_timeLine->autoScroll() == TimeLineWidget::AutoScrollState::Stepped)
if (m_timeLine->autoScroll() == TimeLineWidget::AutoScrollState::Stepped)
{
if (t > m_currentPosition + w * TimePos::ticksPerBar()
/ pixelsPerBar())
Expand Down

0 comments on commit 0a16a93

Please sign in to comment.