From f13ff3fe2f6f1b064d285ffcbefd6b50a73ed695 Mon Sep 17 00:00:00 2001 From: regulus79 <117475203+regulus79@users.noreply.github.com> Date: Thu, 25 Jul 2024 23:34:36 -0400 Subject: [PATCH] Accedentally committed varying scroll speed with zoom -- removing --- src/gui/editors/SongEditor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/editors/SongEditor.cpp b/src/gui/editors/SongEditor.cpp index 808c36724fe..ef402717dae 100644 --- a/src/gui/editors/SongEditor.cpp +++ b/src/gui/editors/SongEditor.cpp @@ -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 { @@ -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())