The buttons move on my dynamic panel

hersafeprueba1.rp (3.4 MB)

Hello, I put a Dynamic panel with an image on my prototype. On that, I added some buttons that show information. My problem is that when I move the image on the screen, the buttons move in a random way, so they get lost. I need to pin the buttons, so they move according to the dynamic panel.
You know how I can do it? Thanks

You need to connect moving the button to the OnDrag event somehow.

You can add it directly to the dynamic panel’s OnDrag event just like you did with the map image, but I’d recommend using the image’s OnMove event and set the button to move “With this”. So when the image is moved by the OnDrag, the image’s OnMove moves the button with it.