Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add proportional scrolling to Automation Editor
  • Loading branch information
regulus79 committed Aug 30, 2024
commit 53a21f58a02017aff7c259327f9937888b1dc9e4
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 / 15 / 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 / 15 / m_zoomXLevels[m_zoomingXModel.value()]);
}
else
{
Expand Down