Commit 441fc496 authored by Julius Künzel's avatar Julius Künzel
Browse files

Ensure timeline zoombar right handle is always visible.

Related to #651
parent 45b94486
...@@ -132,7 +132,8 @@ Rectangle { ...@@ -132,7 +132,8 @@ Rectangle {
MouseArea { MouseArea {
id: zoomEnd id: zoomEnd
property bool isActive: zoomEnd.containsMouse || zoomEnd.pressed property bool isActive: zoomEnd.containsMouse || zoomEnd.pressed
anchors.left: zoomBar.right anchors.left: pressed ? undefined : zoomBar.right
anchors.leftMargin: zoomBar.x + zoomBar.width > zoomHandleContainer.width - width ? -width : 0
anchors.bottom: zoomBar.bottom anchors.bottom: zoomBar.bottom
width: zoomBar.height width: zoomBar.height
height: zoomBar.height height: zoomBar.height
...@@ -140,11 +141,9 @@ Rectangle { ...@@ -140,11 +141,9 @@ Rectangle {
cursorShape: Qt.SizeHorCursor cursorShape: Qt.SizeHorCursor
drag.minimumX: zoomStart.x + width drag.minimumX: zoomStart.x + width
onPressed: { onPressed: {
anchors.left = undefined
endHandleRect.anchors.fill = undefined endHandleRect.anchors.fill = undefined
} }
onReleased: { onReleased: {
anchors.left = zoomBar.right
endHandleRect.anchors.fill = zoomEnd endHandleRect.anchors.fill = zoomEnd
} }
onPositionChanged: { 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