Pushing the position of a component instance to Viewmodel properties? (Kind of desperate here....)

I have the following setup: a ScrollView, with a scroll content layout inside, in which there several instances of a BubbleWrapper component with different images (artboard components) in them. When I click on a bubble, a popup with corresponding text and image appears. This is all working via the corresponding viewmodels, MainVM as a controller, PopupVM and BubbleVM.

Now I want the position of the popup to be the same as the bubble which activated it. In theory, I should be able to data

bind the position of each instance to the properties bubbleX and bubbleY in the BubbleVM (target to source) and then on Click set the MainVM.posX and posY, which are then passed to the Popup.

BUT the data binding from the bubble instances into the BubbleVM doesn’t work – the properties just stay default.

Somebody please help – I’ve been wracking my brain for 3 days on this, I feel like I’m missing something obvious…. But other solutions are welcome.

.rev file is attached. Currently only the first bubble instance is bound to the bubbleX and Y properties (insider). (ignore the script, I’ve been trying to find workaraounds…)


fedpol__infografik.rev