fix close slide direction

This commit is contained in:
Marco Martin 2020-07-31 12:13:16 +02:00
parent 928ac5c195
commit ae67112a5c

View file

@ -76,7 +76,7 @@ NanoShell.FullScreenOverlay {
return;
}
scrollAnim.from = tasksView.contentY;
if (tasksView.contentY + window.height < tasksView.contentHeight/2) {
if (tasksView.contentY + window.height < tasksView.contentHeight - tasksView.contentY) {
scrollAnim.to = 0;
} else {
scrollAnim.to = tasksView.contentHeight - window.height;