mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 17:54:45 +00:00
homescreen: Don't animate if task switcher is visible
This commit is contained in:
parent
4e95a4abc3
commit
f99e8ff037
1 changed files with 7 additions and 4 deletions
|
|
@ -143,13 +143,16 @@ Item {
|
||||||
target: MobileShell.WindowUtil
|
target: MobileShell.WindowUtil
|
||||||
|
|
||||||
function onActiveWindowIsShellChanged() {
|
function onActiveWindowIsShellChanged() {
|
||||||
if (MobileShell.WindowUtil.activeWindowIsShell && !taskSwitcher.visible) {
|
// only animate if homescreen is visible
|
||||||
|
if (!taskSwitcher.visible) {
|
||||||
|
if (MobileShell.WindowUtil.activeWindowIsShell) {
|
||||||
itemContainer.zoomIn();
|
itemContainer.zoomIn();
|
||||||
} else {
|
} else {
|
||||||
itemContainer.zoomOut();
|
itemContainer.zoomOut();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
transform: Scale {
|
transform: Scale {
|
||||||
origin.x: itemContainer.width / 2;
|
origin.x: itemContainer.width / 2;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue