homescreens/halcyon: Fix folder drop animation

This commit is contained in:
Devin Lin 2022-07-10 11:19:40 -04:00
parent 51f558b4a3
commit 2c50d50440

View file

@ -85,7 +85,6 @@ MobileShell.GridView {
function moveDragToCurrentPos(from, to) { function moveDragToCurrentPos(from, to) {
if (from !== to) { if (from !== to) {
console.log(from + ' ' + to)
visualModel.items.move(from, to); visualModel.items.move(from, to);
Halcyon.PinnedModel.moveEntry(from, to); Halcyon.PinnedModel.moveEntry(from, to);
} }
@ -193,6 +192,8 @@ MobileShell.GridView {
} else { } else {
Halcyon.PinnedModel.createFolderFromApps(drop.source.visualIndex, appDelegate.visualIndex); Halcyon.PinnedModel.createFolderFromApps(drop.source.visualIndex, appDelegate.visualIndex);
} }
folderAnim.to = 0;
folderAnim.restart();
} }
NumberAnimation { NumberAnimation {