on xenial help sign in
change velocity value to be given in gus, add comment
6d69bf2Michael Zanetti
qml/Stages/SpreadDelegate.qml+3−2
@@ -178,9 +178,10 @@ Item {
178 }
178 }
179
179
180 onDragEnd: {
180 onDragEnd: {
181+ // velocity and distance values specified by design prototype
181− if ((dragVelocity < -600 && distance < -units.gu(8)) || distance < -root.height / 2) {
182+ if ((dragVelocity < -units.gu(40) && distance < -units.gu(8)) || distance < -root.height / 2) {
182 animation.animate("up")
183 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) {
184 animation.animate("down")
185 animation.animate("down")
185 } else {
186 } else {
186 animation.animate("center")
187 animation.animate("center")