aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <[email protected]>2015-05-24 11:34:11 +0200
committerJean-Baptiste Mardelle <[email protected]>2015-05-24 11:34:11 +0200
commit85afb7ccda961ac4987e9f49459cfefd0460f881 (patch)
treecc7f36f3d10377a017e536346baa51138c28c5bd
parentf977531b98da1632ea9272b6d5e1562ee3609b66 (diff)
Fix timeline corruption: Don't allow scrolling while resizing a clip
-rw-r--r--src/timeline/customtrackview.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/timeline/customtrackview.cpp b/src/timeline/customtrackview.cpp
index 7c360cc..32934ea 100644
--- a/src/timeline/customtrackview.cpp
+++ b/src/timeline/customtrackview.cpp
@@ -320,6 +320,10 @@ void CustomTrackView::wheelEvent(QWheelEvent * e)
else emit zoomOut();
}
} else {
+ if (m_operationMode == ResizeStart || m_operationMode == ResizeEnd) {
+ // Don't allow scrolling + resizing
+ return;
+ }
if (e->delta() <= 0) horizontalScrollBar()->setValue(horizontalScrollBar()->value() + horizontalScrollBar()->singleStep());
else horizontalScrollBar()->setValue(horizontalScrollBar()->value() - horizontalScrollBar()->singleStep());
}