drag vertically also on the launcher strip

This commit is contained in:
Marco Martin 2020-07-21 12:23:50 +02:00
parent ead97b2399
commit dae850dbc9
2 changed files with 10 additions and 1 deletions

View file

@ -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);

View file

@ -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 {