on xenial help sign in
Used velocity instead of duration.
2187403Nicolas d'Offay
Components/FilterGrid.qml+3−2
@@ -64,7 +64,7 @@ Item {
64 height: !filterAnimation.running ? childrenRect.height : height
64 height: !filterAnimation.running ? childrenRect.height : height
65 clip: filterAnimation.running
65 clip: filterAnimation.running
66
66
67− NumberAnimation {
67+ SmoothedAnimation {
68 property bool filterEndValue
68 property bool filterEndValue
69 id: filterAnimation
69 id: filterAnimation
70 target: root
70 target: root
@@ -73,7 +73,8 @@ Item {
73 // Duration and easing here match the ListViewWithPageHeader::m_contentYAnimation
73 // Duration and easing here match the ListViewWithPageHeader::m_contentYAnimation
74 // otherwise since both animations can run at the same time you'll get
74 // otherwise since both animations can run at the same time you'll get
75 // some visual weirdness.
75 // some visual weirdness.
76− duration: 200
76+ duration: -1
77+ velocity: 800
77 easing.type: Easing.InOutQuad
78 easing.type: Easing.InOutQuad
78 onStopped: {
79 onStopped: {
79 root.filter = filterEndValue;
80 root.filter = filterEndValue;