diff --git a/src/core/timeline.cpp b/src/core/timeline.cpp index 3c0aa6f11..54e1baff1 100644 --- a/src/core/timeline.cpp +++ b/src/core/timeline.cpp @@ -283,14 +283,14 @@ void timeLine::mousePressEvent( QMouseEvent* event ) m_moveXOff = s_posMarkerPixmap->width() / 2; } } - else if( event->button() == Qt::RightButton ) + else if( event->button() == Qt::RightButton || event->button() == Qt::MiddleButton ) { const MidiTime t = m_begin + static_cast( event->x() * MidiTime::ticksPerTact() / m_ppt ); if( m_loopPos[0] > m_loopPos[1] ) { qSwap( m_loopPos[0], m_loopPos[1] ); } - if( event->modifiers() & Qt::ShiftModifier ) + if( ( event->modifiers() & Qt::ShiftModifier ) || event->button() == Qt::MiddleButton ) { m_action = MoveLoopBegin; }