on xenial help sign in
Fix mess
commit986375d8e3f4b0d29af0fdfc412911a2bd26b37b authorJosh Arenson <joshua.arenson@canonical.com> dateMon 23 May 2016, 09:19 (10 years ago) parent0365d75
1 file changed+8−1
qml/Shell.qml+8−1
qml/Shell.qml+8−1
@@ -552,7 +552,14 @@ Item {
552552 id: launcher
553553 objectName: "launcher"
554554
555− readonly property bool dashSwipe: progress > 0
555+ /*
556+ * Since the Dash doesn't have the same controll over surfaces that the
557+ * Shell does, it can't slowly move the scope out of the way, as the shell
558+ * does with apps, and the dash is show instantly. This allows for some
559+ * leeway and prevents accidental home swipes.
560+ */
561+ readonly property real offset: shell.focusedApplicationId == "unity8-dash" ? units.gu(12) : 0
562+ readonly property bool dashSwipe: progress > offset
556563
557564 anchors.top: parent.top
558565 anchors.topMargin: inverted ? 0 : panel.panelHeight