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:
parent
ef03fb1c56
commit
01b7135299
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user