Commit c44c437f authored by Nicolas Carion's avatar Nicolas Carion

harden checks for dragging clips. CC #58

parent 6a77b16a
Pipeline #1802 passed with stage
in 47 minutes and 47 seconds
......@@ -985,7 +985,7 @@ Rectangle {
cursorShape: pressed ? Qt.ClosedHandCursor : Qt.OpenHandCursor
onPressed: {
console.log('+++++++++++++++++++ DRAG CLICKED +++++++++++++')
if (mouse.modifiers & Qt.ControlModifier) {
if (mouse.modifiers & Qt.ControlModifier || !(controller.isClip(dragProxy.draggedItem) || controller.isComposition(dragProxy.draggedItem))) {
mouse.accepted = false
return
}
......
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