on xenial help sign in
Improve logic of hiding launcher
c2256a8Andrea Cimitan
Launcher/Launcher.qml+7−1
@@ -149,7 +149,7 @@ Item {
149 bottom: parent.bottom
149 bottom: parent.bottom
150 }
150 }
151 x: -width
151 x: -width
152− visible: x > -width
152+ opacity: (x == -width && dragArea.status === DirectionalDragArea.WaitingForTouch) ? 0 : 1
153 model: LauncherModel
153 model: LauncherModel
154
154
155 property bool animate: true
155 property bool animate: true
@@ -176,6 +176,12 @@ Item {
176 easing.type: Easing.OutCubic
176 easing.type: Easing.OutCubic
177 }
177 }
178 }
178 }
179+
180+ Behavior on opacity {
181+ NumberAnimation {
182+ duration: UbuntuAnimation.FastDuration; easing.type: Easing.OutCubic
183+ }
184+ }
179 }
185 }
180
186
181 EdgeDragArea {
187 EdgeDragArea {