Commit 4c1570cd authored by Julius Künzel's avatar Julius Künzel
Browse files

Fix paste position when mouse is over subtitle track

parent 1ba83ecf
......@@ -208,7 +208,11 @@ Rectangle {
return (dragProxy.masterObject.x + dragProxy.masterObject.mouseXPos) / timeline.scaleFactor
}
if (tracksArea.containsMouse) {
return (scrollView.contentX + tracksArea.mouseX) / timeline.scaleFactor
if (subtitleMouseArea.containsMouse) {
return (subtitleMouseArea.mouseX) / timeline.scaleFactor
} else {
return (scrollView.contentX + tracksArea.mouseX) / timeline.scaleFactor
}
} else {
return -1;
}
......@@ -1505,6 +1509,7 @@ Rectangle {
width: tracksContainerArea.width
height: 0
MouseArea {
id: subtitleMouseArea
anchors.fill: parent
acceptedButtons: Qt.NoButton
hoverEnabled: true
......
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