on xenial help sign in
launcher revealing tweaks

- don't hide the launcher when dragged over the minimize-app-distance. - change minimize-app-distance to be 2 * launcher.width to make it work better on the tablet again . Fixes: https://bugs.launchpad.net/bugs/1193070. Approved by PS Jenkins bot, Daniel d'Andrada.

commit4f8c534d3264673c993a1f11d8ef5ce1f3b46a4e authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 26 Jun 2013, 19:29 (13 years ago) parent29b90fe411fc4d
2 files changed+10−7
Launcher/Launcher.qml+5−5 Shell.qml+5−2
Launcher/Launcher.qml+5−5
@@ -50,7 +50,7 @@ Item {
5050 }
5151
5252 function hide() {
53− state = ""
53+ switchToNextState("")
5454 }
5555
5656 function switchToNextState(state) {
@@ -215,11 +215,11 @@ Item {
215215
216216 onDraggingChanged: {
217217 if (!dragging) {
218− if (distance > root.width / 2) {
219− root.dash()
220− root.switchToNextState("")
221− } else if (distance > panel.width/2) {
218+ if (distance > panel.width / 2) {
222219 root.switchToNextState("visible")
220+ if (distance > panel.width * 2) {
221+ root.dash()
222+ }
223223 } else {
224224 root.switchToNextState("")
225225 }
Shell.qml+5−2
@@ -550,8 +550,11 @@ FocusScope {
550550 stages.hide();
551551 }
552552 onDash: {
553− dash.setCurrentScope("applications.scope", true, false)
554− stages.hide();
553+ if (stages.shown) {
554+ dash.setCurrentScope("applications.scope", true, false)
555+ stages.hide();
556+ launcher.hide();
557+ }
555558 }
556559 onLauncherApplicationSelected:{
557560 greeter.hide()