on xenial help sign in
Disable showDash when it is already shown. (LP: #1506708)
commit2240b6e0d121e7ff8150c429b56f65004255c044 authorJosh Arenson <joshua.arenson@canonical.com> dateFri 17 Jun 2016, 01:11 (10 years ago) parent4dff070986375d
1 file changed+8−1
qml/Shell.qml+8−1
qml/Shell.qml+8−1
@@ -553,7 +553,14 @@ StyledItem {
553553 id: launcher
554554 objectName: "launcher"
555555
556− readonly property bool dashSwipe: progress > 0
556+ /*
557+ * Since the Dash doesn't have the same controll over surfaces that the
558+ * Shell does, it can't slowly move the scope out of the way, as the shell
559+ * does with apps, and the dash is show instantly. This allows for some
560+ * leeway and prevents accidental home swipes.
561+ */
562+ readonly property real offset: shell.focusedApplicationId == "unity8-dash" ? units.gu(12) : 0
563+ readonly property bool dashSwipe: progress > offset
557564
558565 anchors.top: parent.top
559566 anchors.topMargin: inverted ? 0 : panel.panelHeight