Commit ae67112a authored by Marco Martin's avatar Marco Martin
Browse files

fix close slide direction

parent 928ac5c1
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment