Don't re-insert clip multiple times if drag exits in the headers area then re-enters timeline

parent d3c039a6
Pipeline #16197 passed with stage
in 15 minutes and 56 seconds
......@@ -380,8 +380,8 @@ Rectangle {
if (clipBeingDroppedId != -1 && drag.y < drag.x) {
// If we exit on top, remove clip
controller.requestItemDeletion(clipBeingDroppedId, false)
clearDropData()
}
clearDropData()
}
onDropped: {
if (clipBeingDroppedId != -1) {
......@@ -457,8 +457,10 @@ Rectangle {
if (clipBeingDroppedId != -1 && drag.y < drag.x) {
// If we exit on top, remove clip
controller.requestItemDeletion(clipBeingDroppedId, false)
clearDropData()
} else {
// Clip is dropped
}
clearDropData()
}
onPositionChanged: {
if (clipBeingMovedId == -1) {
......
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