Merge lp:~mzanetti/unity8/fix-1213153 into lp:unity8

Proposed by Michael Zanetti
Status: Merged
Approved by: Nicolas d'Offay
Approved revision: 244
Merged at revision: 260
Proposed branch: lp:~mzanetti/unity8/fix-1213153
Merge into: lp:unity8
Diff against target: 23 lines (+4/-2)
1 file modified
Launcher/Launcher.qml (+4/-2)
To merge this branch: bzr merge lp:~mzanetti/unity8/fix-1213153
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Nicolas d'Offay (community) Approve
Review via email: mp+182406@code.launchpad.net

Commit message

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

To post a comment you must log in.
Revision history for this message
Nicolas d'Offay (nicolas-doffay) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Launcher/Launcher.qml'
2--- Launcher/Launcher.qml 2013-08-21 15:11:50 +0000
3+++ Launcher/Launcher.qml 2013-08-27 14:34:36 +0000
4@@ -28,7 +28,9 @@
5
6 property int panelWidth: units.gu(8)
7 property int dragAreaWidth: units.gu(1)
8- property real progress: dragArea.dragging && dragArea.touchX > panel.width ? dragArea.touchX : 0
9+ property int minimizeDistance: panelWidth * 2.5
10+ property real progress: dragArea.dragging && dragArea.touchX > panelWidth ?
11+ (width * (dragArea.touchX-panelWidth) / (width - panelWidth)) : 0
12
13 readonly property bool shown: panel.x > -panel.width
14
15@@ -206,7 +208,7 @@
16 if (!dragging) {
17 if (distance > panel.width / 2) {
18 root.switchToNextState("visible")
19- if (distance > panel.width * 2) {
20+ if (distance > minimizeDistance) {
21 root.dash()
22 }
23 } else {

Subscribers

People subscribed via source and target branches