Commit 46a5ae7d authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Ensure timeline zoombar left handle is always visible.

Related to #651
parent e8f1480f
......@@ -89,7 +89,8 @@ Rectangle {
MouseArea {
id: zoomStart
property bool isActive: zoomStart.containsMouse || zoomStart.pressed
anchors.right: zoomBar.left
anchors.right: pressed ? undefined : zoomBar.left
anchors.rightMargin: zoomBar.x < width ? -width : 0
anchors.bottom: zoomBar.bottom
width: zoomBar.height
height: zoomBar.height
......@@ -99,11 +100,9 @@ Rectangle {
drag.maximumX: zoomEnd.x - width
cursorShape: Qt.SizeHorCursor
onPressed: {
anchors.right = undefined
startHandleRect.anchors.fill = undefined
}
onReleased: {
anchors.right = zoomBar.left
startHandleRect.anchors.fill = zoomStart
}
onPositionChanged: {
......
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