From 5efc552ae852aed437ba0ad62a210554e4f79375 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 14 Sep 2026 12:18:48 +0200 Subject: fix(desktop): slide the page with a transform, not anchored x The page Loader is anchored to its parent, so the x binding on it was overridden and the slide never rendered. Drive the motion with a Translate transform instead, which the anchors do not touch. Opacity and the back-arrow wiring are unchanged. --- desktop/Drawer.qml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'desktop/Drawer.qml') 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 } } } } -- cgit v1.2.3