mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 18:24:46 +00:00
fixes to close anim
This commit is contained in:
parent
775870852c
commit
29dda81ac6
1 changed files with 9 additions and 3 deletions
|
|
@ -76,7 +76,8 @@ NanoShell.FullScreenOverlay {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
scrollAnim.from = tasksView.contentY;
|
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;
|
scrollAnim.to = 0;
|
||||||
} else {
|
} else {
|
||||||
scrollAnim.to = tasksView.contentHeight - window.height;
|
scrollAnim.to = tasksView.contentHeight - window.height;
|
||||||
|
|
@ -278,11 +279,16 @@ NanoShell.FullScreenOverlay {
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: parent.right
|
||||||
bottom: parent.bottom
|
|
||||||
bottomMargin: window.height
|
|
||||||
}
|
}
|
||||||
columns: 2
|
columns: 2
|
||||||
|
y: parent.height - height - window.height
|
||||||
|
|
||||||
|
Behavior on y {
|
||||||
|
NumberAnimation {
|
||||||
|
duration: units.longDuration
|
||||||
|
easing.type: Easing.InOutQuad
|
||||||
|
}
|
||||||
|
}
|
||||||
Repeater {
|
Repeater {
|
||||||
model: window.model
|
model: window.model
|
||||||
delegate: Task {}
|
delegate: Task {}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue