Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Make mouse wheel behavior consistent (wheel up goes back, down goes forwards,...

Make mouse wheel behavior consistent (wheel up goes back, down goes forwards, alt+wheel goes to next keyframe/snap point)
parent 007b089c
......@@ -249,7 +249,15 @@ void KeyframeView::mouseDoubleClickEvent(QMouseEvent *event)
void KeyframeView::wheelEvent(QWheelEvent *event)
{
int change = event->delta() < 0 ? -1 : 1;
if (event->modifiers() & Qt::AltModifier) {
if (event->delta() > 0) {
slotGoToPrev();
} else {
slotGoToNext();
}
return;
}
int change = event->delta() > 0 ? -1 : 1;
int pos = qBound(0, m_position + change, m_duration);
emit seekToPos(pos);
}
......
......@@ -582,7 +582,7 @@ void GLWidget::wheelEvent(QWheelEvent *event)
slotZoom(event->delta() > 0);
return;
}
emit mouseSeek(event->delta(), (uint)event->modifiers());
emit mouseSeek(-event->delta(), (uint)event->modifiers());
event->accept();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment