diff options
| -rw-r--r-- | desktop/Drawer.qml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/desktop/Drawer.qml b/desktop/Drawer.qml index f0e0a84..368f249 100644 --- a/desktop/Drawer.qml +++ b/desktop/Drawer.qml @@ -175,10 +175,14 @@ Scope { // The page enters from the right: the one piece of motion // in the design, and what makes the drawer read as one - // surface rather than a window swapping contents. + // surface rather than a window swapping contents. It is a + // transform, not `x`: the anchors above pin x, and an + // anchored x is silently ignored. opacity: active ? 1 : 0 - x: active ? 16 : 60 - Behavior on x { NumberAnimation { duration: 160; easing.type: Easing.OutCubic } } + transform: Translate { + x: pageLoader.active ? 0 : 44 + Behavior on x { NumberAnimation { duration: 160; easing.type: Easing.OutCubic } } + } Behavior on opacity { NumberAnimation { duration: 160 } } } } |
