@@ -165,97 +165,3 @@ Item {
171−// onPressed: mouse.accepted = true;
172−// hoverEnabled: true
175−// property bool closeable: true
177−// property bool moving: false
178−// property real distance: 0
179−// readonly property int threshold: units.gu(2)
180−// property int offset: 0
182−// readonly property real minSpeedToClose: units.gu(40)
186−// onMouseYChanged: {
192−// onDragValueChanged: {
196−// moving = moving || Math.abs(dragValue) > threshold;
198−// distance = dragValue + offset;
202−// onMovingChanged: {
204−// offset = (dragValue > 0 ? -threshold: threshold)
211−// if (!root.closeable) {
212−// animation.animate("center")
216−// // velocity and distance values specified by design prototype
217−// if ((dragVelocity < -minSpeedToClose && distance < -units.gu(8)) || distance < -root.height / 2) {
218−// animation.animate("up")
219−// } else if ((dragVelocity > minSpeedToClose && distance > units.gu(8)) || distance > root.height / 2) {
220−// animation.animate("down")
222−// animation.animate("center")
226−// UbuntuNumberAnimation {
228−// objectName: "closeAnimation"
230−// property: "distance"
231−// property bool requestClose: false
233−// function animate(direction) {
234−// animation.from = dragArea.distance;
235−// switch (direction) {
237−// animation.to = -root.height * 1.5;
238−// requestClose = true;
241−// animation.to = root.height * 1.5;
242−// requestClose = true;
247−// animation.start();
250−// onRunningChanged: {
252−// dragArea.moving = false;
253−// if (requestClose) {
256−// dragArea.distance = 0;