on xenial help sign in
fix dragging after adding the hoverArea
commite0a8eeae83b872690b5c914d42d9d844e2800cf3 authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 4 Sep 2015, 17:51 (11 years ago) parent65589b5
1 file changed+3−1
qml/Stages/DesktopStage.qml+3−1
qml/Stages/DesktopStage.qml+3−1
@@ -16,7 +16,7 @@
1616 * Authors: Michael Zanetti <michael.zanetti@canonical.com>
1717 */
1818
19−import QtQuick 2.3
19+import QtQuick 2.4
2020import QtQuick.Layouts 1.1
2121import Ubuntu.Components 1.1
2222import Unity.Application 0.1
@@ -394,6 +394,7 @@ Rectangle {
394394 anchors.margins: -units.gu(2)
395395 enabled: false
396396 onClicked: {
397+ appRepeater.highlightedIndex = index;
397398 root.state = ""
398399 }
399400 }
@@ -483,6 +484,7 @@ Rectangle {
483484
484485 onMouseXChanged: {
485486 mouse.accepted = false
487+ if (hoverMouseArea.pressed) return;
486488
487489 // Find the hovered item and mark it active
488490 var mapped = mapToItem(appContainer, hoverMouseArea.mouseX, hoverMouseArea.mouseY)