Make sure in slider the background moves at the same speed as the handle when changing value.

This fixes UI artifacts.

REVIEW: 105236
This commit is contained in:
David Edmundson 2012-06-13 22:48:22 +01:00
parent ef03fb1c56
commit 01b7135299

View File

@ -195,6 +195,15 @@ Item {
x: inverted ? handle.x : 0
anchors.verticalCenter: parent.verticalCenter
//use the same animation when resizing a slider as moving the slider this keeps it in line when using key shortcuts
Behavior on width {
enabled: !mouseArea.drag.active && contents.animated
PropertyAnimation {
duration: behavior.enabled ? 150 : 0
easing.type: Easing.OutSine
}
}
visible: range.position > 0 && slider.enabled
}