Can't figure out why some buttons need to be tapped twice

Hi everyone, we have this project https://webxr.run/rykyYEbQJQboV, where for some reason the “transform” button - the icon on the far right - needs to be tapped twice before it does what it’s supposed to do. And when you tap the snapshot button in the middle, it sometimes doesn’t show the banner at the bottom so you have to close the photo then re-take it.

We’ve gone through the lines numerous times and can’t figure out the issue…can anyone possibly help us out? Or have you run into the same issue before and figured out how to fix it?

Thanks in advance!
Joel