From 8f749d8b1fe5c2740d8829a78fbfbb3c739dade9 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 17 Sep 2026 13:08:36 +0200 Subject: fix: track card position in backdrop sourceRect --- theme/components/Backdrop.qml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'theme/components/Backdrop.qml') diff --git a/theme/components/Backdrop.qml b/theme/components/Backdrop.qml index 02c01ac..c13b766 100644 --- a/theme/components/Backdrop.qml +++ b/theme/components/Backdrop.qml @@ -24,6 +24,11 @@ Item { sourceRect: { if (backdrop.sourceItem === null) return Qt.rect(0, 0, 0, 0) + // Guard reads: mapToItem() hides its reads in C++, so the binding + // would not otherwise re-run when the card or image moves (e.g. + // the failed-login shake). Reading the coordinates registers them. + var _guard = backdrop.x + backdrop.y + backdrop.parent.x + backdrop.parent.y + + backdrop.sourceItem.x + backdrop.sourceItem.y var p = backdrop.mapToItem(backdrop.sourceItem, 0, 0) return Qt.rect(p.x, p.y, backdrop.width, backdrop.height) } -- cgit v1.2.3