mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 02:04:45 +00:00
homescreen: Fix stackBefore call
This commit is contained in:
parent
62f7ffc074
commit
5e48cb1cc1
2 changed files with 3 additions and 3 deletions
|
|
@ -145,7 +145,7 @@ MouseArea { // use mousearea to ensure clicks don't go behind
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// slight pause to give slower devices time to catch up when the item becomes visible
|
// slight pause to give slower devices time to catch up when the item becomes visible
|
||||||
PauseAnimation { duration: 50 }
|
PauseAnimation { duration: 20 }
|
||||||
ParallelAnimation {
|
ParallelAnimation {
|
||||||
id: parallelAnim
|
id: parallelAnim
|
||||||
property real animationDuration: PlasmaCore.Units.longDuration + PlasmaCore.Units.shortDuration
|
property real animationDuration: PlasmaCore.Units.longDuration + PlasmaCore.Units.shortDuration
|
||||||
|
|
|
||||||
|
|
@ -117,10 +117,10 @@ Repeater {
|
||||||
if (!launcherDragManager.active && parent != parentFromLocation) {
|
if (!launcherDragManager.active && parent != parentFromLocation) {
|
||||||
parent = parentFromLocation;
|
parent = parentFromLocation;
|
||||||
if (model.applicationLocation === MobileShell.ApplicationListModel.Favorites) {
|
if (model.applicationLocation === MobileShell.ApplicationListModel.Favorites) {
|
||||||
plasmoid.nativeInterface.stackBefore(delegate, parentFromLocation.children[index]);
|
MobileShell.HomeScreenUtils.stackBefore(delegate, parentFromLocation.children[index]);
|
||||||
|
|
||||||
} else if (model.applicationLocation === MobileShell.ApplicationListModel.Grid) {
|
} else if (model.applicationLocation === MobileShell.ApplicationListModel.Grid) {
|
||||||
plasmoid.nativeInterface.stackBefore(delegate, parentFromLocation.children[Math.max(0, index - MobileShell.ApplicationListModel.favoriteCount)]);
|
MobileShell.HomeScreenUtils.stackBefore(delegate, parentFromLocation.children[Math.max(0, index - MobileShell.ApplicationListModel.favoriteCount)]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue