From dae850dbc999e41d2d4b64ed332853d5ec7fe985 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 21 Jul 2020 12:23:50 +0200 Subject: [PATCH] drag vertically also on the launcher strip --- .../package/contents/ui/launcher/LauncherDragManager.qml | 2 +- containments/homescreen/package/contents/ui/main.qml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/containments/homescreen/package/contents/ui/launcher/LauncherDragManager.qml b/containments/homescreen/package/contents/ui/launcher/LauncherDragManager.qml index 5e64ffd3..ab8ddd4d 100644 --- a/containments/homescreen/package/contents/ui/launcher/LauncherDragManager.qml +++ b/containments/homescreen/package/contents/ui/launcher/LauncherDragManager.qml @@ -46,7 +46,7 @@ Item { var newRow = 0; var newContainer = internal.containerForItem(delegate, dragCenterX, dragCenterY); -print("AAA"+newContainer) + // Put it in the favorites strip if (newContainer == favoriteStrip) { var pos = favoriteStrip.flow.mapFromItem(delegate, 0, 0); diff --git a/containments/homescreen/package/contents/ui/main.qml b/containments/homescreen/package/contents/ui/main.qml index d66e5f25..2a11edd0 100644 --- a/containments/homescreen/package/contents/ui/main.qml +++ b/containments/homescreen/package/contents/ui/main.qml @@ -318,6 +318,15 @@ Item { } } + MouseArea { + anchors.fill:favoriteStrip + property real oldMouseY + onPressed: oldMouseY = mouse.y + onPositionChanged: { + mainFlickable.contentY -= mouse.y - oldMouseY; + oldMouseY = mouse.y; + } + } Launcher.FavoriteStrip { id: favoriteStrip anchors {