From 92626c703586e25d5709eaa3e22c664020d15e59 Mon Sep 17 00:00:00 2001 From: Till Theato Date: Sun, 6 Mar 2011 09:25:26 +0000 Subject: [PATCH] Rotoscoping timeline: mouse wheel can only move cursor. Moving a keyframe might be somewhat unexpected. A keyframe's position can be changed precisely since keyframes snap to the timeline cursor. svn path=/trunk/kdenlive/; revision=5482 --- src/simplekeyframes/simpletimelinewidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/simplekeyframes/simpletimelinewidget.cpp b/src/simplekeyframes/simpletimelinewidget.cpp index bf8e4500..e2c409bb 100644 --- a/src/simplekeyframes/simpletimelinewidget.cpp +++ b/src/simplekeyframes/simpletimelinewidget.cpp @@ -244,13 +244,13 @@ void SimpleTimelineWidget::mouseDoubleClickEvent(QMouseEvent* event) void SimpleTimelineWidget::wheelEvent(QWheelEvent* event) { int change = event->delta() < 0 ? -1 : 1; - if (m_currentKeyframe > 0) { + /*if (m_currentKeyframe > 0) { m_currentKeyframe = qBound(0, m_currentKeyframe + change, m_duration); emit keyframeMoved(m_currentKeyframeOriginal, m_currentKeyframe); - } else { + } else { */ m_position = qBound(0, m_position + change, m_duration); emit positionChanged(m_position); - } +// } emit atKeyframe(m_keyframes.contains(m_position)); update(); } -- 2.39.2