don't show the window on hide

This commit is contained in:
Marco Martin 2020-07-17 11:19:56 +02:00
parent 69ae5a1ba4
commit d5e0c7acc8

View file

@ -61,6 +61,9 @@ NanoShell.FullScreenOverlay {
scrollAnim.running = true; scrollAnim.running = true;
} }
function hide() { function hide() {
if (!window.visible) {
return;
}
scrollAnim.from = tasksView.contentY; scrollAnim.from = tasksView.contentY;
if (tasksView.contentY + tasksView.headerItem.height < tasksView.contentHeight/2) { if (tasksView.contentY + tasksView.headerItem.height < tasksView.contentHeight/2) {
scrollAnim.to = -tasksView.headerItem.height; scrollAnim.to = -tasksView.headerItem.height;