on xenial help sign in
fix dragging to left/right
commit588cf2de3f6159878e46c8354ab63dd1763ae60d authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 4 Nov 2016, 14:25 (10 years ago) parent4e43d62
1 file changed+2−2
qml/Launcher/Launcher.qml+2−2
qml/Launcher/Launcher.qml+2−2
@@ -362,6 +362,7 @@ FocusScope {
362362 width: Math.min(root.width, units.gu(90)) * .9
363363 x: -width
364364 panelWidth: panel.width
365+ visible: x > -width
365366
366367 onApplicationSelected: root.launcherApplicationSelected(appId)
367368
@@ -371,7 +372,7 @@ FocusScope {
371372 }
372373
373374 onDragDistanceChanged: {
374− x -= dragDistance;
375+ x = Math.min(0, x-dragDistance);
375376 }
376377 onDraggingHorizontallyChanged: {
377378 if (!draggingHorizontally) {
@@ -383,7 +384,6 @@ FocusScope {
383384 }
384385 }
385386
386−
387387 Behavior on x {
388388 enabled: !dragArea.dragging && !launcherDragArea.drag.active && !drawer.draggingHorizontally// && panel.animate;
389389 NumberAnimation {