on xenial help sign in
change velocity value to be given in gus, add comment
commit6d69bf201636608a65ab1953ff92ab3b0ffe6eb7 authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 18 Jul 2014, 18:40 (12 years ago) parent1746bb8
1 file changed+3−2
qml/Stages/SpreadDelegate.qml+3−2
qml/Stages/SpreadDelegate.qml+3−2
@@ -178,9 +178,10 @@ Item {
178178 }
179179
180180 onDragEnd: {
181− if ((dragVelocity < -600 && distance < -units.gu(8)) || distance < -root.height / 2) {
181+ // velocity and distance values specified by design prototype
182+ if ((dragVelocity < -units.gu(40) && distance < -units.gu(8)) || distance < -root.height / 2) {
182183 animation.animate("up")
183− } else if ((dragVelocity > 600 && distance > units.gu(8)) || distance > root.height / 2) {
184+ } else if ((dragVelocity > units.gu(40) && distance > units.gu(8)) || distance > root.height / 2) {
184185 animation.animate("down")
185186 } else {
186187 animation.animate("center")