Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/gui/editors/AutomationEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1626,12 +1626,12 @@ void AutomationEditor::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() * 2 / 15);
we->angleDelta().x() * 2 / 6 / m_zoomXLevels[m_zoomingXModel.value()]);
}
else if(we->modifiers() & Qt::ShiftModifier)
{
m_leftRightScroll->setValue(m_leftRightScroll->value() -
we->angleDelta().y() * 2 / 15);
we->angleDelta().y() * 2 / 6 / m_zoomXLevels[m_zoomingXModel.value()]);
}
else
{
Expand Down
4 changes: 2 additions & 2 deletions src/gui/editors/PianoRoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3876,12 +3876,12 @@ void PianoRoll::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() * 2 / 15);
we->angleDelta().x() * 2 / 6 / m_zoomLevels[m_zoomingModel.value()]);
}
else if(we->modifiers() & Qt::ShiftModifier)
{
m_leftRightScroll->setValue(m_leftRightScroll->value() -
we->angleDelta().y() * 2 / 15);
we->angleDelta().y() * 2 / 6 / m_zoomLevels[m_zoomingModel.value()]);
}
else
{
Expand Down
4 changes: 2 additions & 2 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 (std::abs(we->angleDelta().x()) > std::abs(we->angleDelta().y())) // scrolling is horizontal
{
m_leftRightScroll->setValue(m_leftRightScroll->value()
- we->angleDelta().x());
- we->angleDelta().x() * DEFAULT_PIXELS_PER_BAR / pixelsPerBar());
}
else if (we->modifiers() & Qt::ShiftModifier)
{
m_leftRightScroll->setValue(m_leftRightScroll->value()
- we->angleDelta().y());
- we->angleDelta().y() * DEFAULT_PIXELS_PER_BAR / pixelsPerBar());
}
else
{
Expand Down