on xenial help sign in
increase minimal dragging width for dismissing apps with left edge

make it a configurable parameter and adjust animation to look like requested in the bug report . Fixes: https://bugs.launchpad.net/bugs/1213153. Approved by PS Jenkins bot, Nicolas d'Offay.

commit086dd11feaf442ba696ce9265877bf747f8a2c3c authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 27 Aug 2013, 15:57 (13 years ago) parentca2a2be5e9176a
1 file changed+4−2
Launcher/Launcher.qml+4−2
Launcher/Launcher.qml+4−2
@@ -28,7 +28,9 @@ Item {
2828
2929 property int panelWidth: units.gu(8)
3030 property int dragAreaWidth: units.gu(1)
31− property real progress: dragArea.dragging && dragArea.touchX > panel.width ? dragArea.touchX : 0
31+ property int minimizeDistance: panelWidth * 2.5
32+ property real progress: dragArea.dragging && dragArea.touchX > panelWidth ?
33+ (width * (dragArea.touchX-panelWidth) / (width - panelWidth)) : 0
3234
3335 readonly property bool shown: panel.x > -panel.width
3436
@@ -206,7 +208,7 @@ Item {
206208 if (!dragging) {
207209 if (distance > panel.width / 2) {
208210 root.switchToNextState("visible")
209− if (distance > panel.width * 2) {
211+ if (distance > minimizeDistance) {
210212 root.dash()
211213 }
212214 } else {