mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
drag vertically also on the launcher strip
This commit is contained in:
parent
ead97b2399
commit
dae850dbc9
2 changed files with 10 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ Item {
|
||||||
var newRow = 0;
|
var newRow = 0;
|
||||||
|
|
||||||
var newContainer = internal.containerForItem(delegate, dragCenterX, dragCenterY);
|
var newContainer = internal.containerForItem(delegate, dragCenterX, dragCenterY);
|
||||||
print("AAA"+newContainer)
|
|
||||||
// Put it in the favorites strip
|
// Put it in the favorites strip
|
||||||
if (newContainer == favoriteStrip) {
|
if (newContainer == favoriteStrip) {
|
||||||
var pos = favoriteStrip.flow.mapFromItem(delegate, 0, 0);
|
var pos = favoriteStrip.flow.mapFromItem(delegate, 0, 0);
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
Launcher.FavoriteStrip {
|
||||||
id: favoriteStrip
|
id: favoriteStrip
|
||||||
anchors {
|
anchors {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue