on xenial help sign in
add some resistance to the drag when an app is not closeable
4db3505Michael Zanetti
qml/Stage/Spread/SpreadDelegateInputArea.qml+7−1
@@ -119,7 +119,13 @@ Item {
119 }
119 }
120 }
120 }
121
121
122+ if (root.closeable) {
122− d.distance = tp.y - tp.startY - offset
123+ d.distance = tp.y - tp.startY - offset
124+ } else {
125+ var value = tp.y - tp.startY - offset;
126+ d.distance = Math.sqrt(Math.abs(value)) * (value < 0 ? -1 : 1) * 3
127+ }
128+
123 d.pushDragEvent(tp);
129 d.pushDragEvent(tp);
124 }
130 }
125
131