From 83f876a761e14408714d43de4e11a706743dcf9c Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 4 Oct 2019 11:45:37 +0200 Subject: [PATCH] workaround for dragging on empty areas --- .../ui/launcher/LauncherContainer.qml | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/containments/homescreen/package/contents/ui/launcher/LauncherContainer.qml b/containments/homescreen/package/contents/ui/launcher/LauncherContainer.qml index ee5f06f3..b484080f 100644 --- a/containments/homescreen/package/contents/ui/launcher/LauncherContainer.qml +++ b/containments/homescreen/package/contents/ui/launcher/LauncherContainer.qml @@ -72,16 +72,22 @@ Item { anchors.fill: parent } - contentItem: Flow { - id: applicationsFlow + // With a mousearea, it will be possible to drag with touch also on empty places + contentItem: MouseArea { + implicitWidth: applicationsFlow.implicitWidth + implicitHeight: applicationsFlow.implicitHeight + Flow { + id: applicationsFlow - spacing: 0 + spacing: 0 + anchors.fill: parent - move: Transition { - NumberAnimation { - duration: units.longDuration - easing.type: Easing.InOutQuad - properties: "x,y" + move: Transition { + NumberAnimation { + duration: units.longDuration + easing.type: Easing.InOutQuad + properties: "x,y" + } } } }