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

Fix timeline corruption when using scroll wheel over an item in zoomed view

parent 85afb7cc
......@@ -324,8 +324,15 @@ void CustomTrackView::wheelEvent(QWheelEvent * e)
// Don't allow scrolling + resizing
return;
}
if (m_operationMode == None || m_operationMode == ZoomTimeline) {
// Prevent unwanted object move
m_scene->isZooming = true;
}
if (e->delta() <= 0) horizontalScrollBar()->setValue(horizontalScrollBar()->value() + horizontalScrollBar()->singleStep());
else horizontalScrollBar()->setValue(horizontalScrollBar()->value() - horizontalScrollBar()->singleStep());
if (m_operationMode == None || m_operationMode == ZoomTimeline) {
m_scene->isZooming = false;
}
}
}
......
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