aboutsummaryrefslogtreecommitdiffstats
path: root/theme/components/Backdrop.qml
diff options
context:
space:
mode:
Diffstat (limited to 'theme/components/Backdrop.qml')
-rw-r--r--theme/components/Backdrop.qml5
1 files changed, 5 insertions, 0 deletions
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)
}