workaround for dragging on empty areas

This commit is contained in:
Marco Martin 2019-10-04 11:45:37 +02:00
parent d41f505795
commit 83f876a761

View file

@ -72,10 +72,15 @@ Item {
anchors.fill: parent anchors.fill: parent
} }
contentItem: Flow { // 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 id: applicationsFlow
spacing: 0 spacing: 0
anchors.fill: parent
move: Transition { move: Transition {
NumberAnimation { NumberAnimation {
@ -85,6 +90,7 @@ Item {
} }
} }
} }
}
Behavior on implicitWidth { Behavior on implicitWidth {
NumberAnimation { NumberAnimation {
duration: units.longDuration duration: units.longDuration