From 29dda81ac69de977f854fe8b733771ebb2ea21d1 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 31 Jul 2020 16:31:17 +0200 Subject: [PATCH] fixes to close anim --- .../taskpanel/package/contents/ui/TaskSwitcher.qml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/containments/taskpanel/package/contents/ui/TaskSwitcher.qml b/containments/taskpanel/package/contents/ui/TaskSwitcher.qml index 893fea15..34731f58 100644 --- a/containments/taskpanel/package/contents/ui/TaskSwitcher.qml +++ b/containments/taskpanel/package/contents/ui/TaskSwitcher.qml @@ -76,7 +76,8 @@ NanoShell.FullScreenOverlay { return; } scrollAnim.from = tasksView.contentY; - if (tasksView.contentY + window.height < tasksView.contentHeight - tasksView.contentY) { + + if (tasksView.contentY + window.height <= tasksView.contentHeight - tasksView.contentY) { scrollAnim.to = 0; } else { scrollAnim.to = tasksView.contentHeight - window.height; @@ -278,11 +279,16 @@ NanoShell.FullScreenOverlay { anchors { left: parent.left right: parent.right - bottom: parent.bottom - bottomMargin: window.height } columns: 2 + y: parent.height - height - window.height + Behavior on y { + NumberAnimation { + duration: units.longDuration + easing.type: Easing.InOutQuad + } + } Repeater { model: window.model delegate: Task {}