Specify slider animation duration in addition to velocity
This commit is contained in:
parent
8344963cc9
commit
59f49be0c3
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue