Specify slider animation duration in addition to velocity

This commit is contained in:
Slava Monich 2017-08-03 18:41:59 +03:00
parent 8344963cc9
commit 59f49be0c3

View file

@ -204,7 +204,10 @@ MouseArea {
color: slider.highlighted ? highlightColor : primaryColor
Behavior on width {
enabled: !_widthChanged
SmoothedAnimation { velocity: 1500 }
SmoothedAnimation {
velocity: 1500
duration: 500
}
}
}
@ -235,7 +238,10 @@ MouseArea {
color: slider.highlighted ? highlightColor : primaryColor
Behavior on x {
enabled: !_widthChanged
SmoothedAnimation { velocity: 1500 }
SmoothedAnimation {
velocity: 1500
duration: 500
}
}
}