Godot Version
4.7.2 stable
Question
I’m not sure why this is happening, but mobile touch inputs seem to register for both left click and right click masked buttons, when the expected behavior would be for them to only work as left click (since there isn’t a right click on mobile). This is a web exported game that has right-click functionality for some features that are helpful in making it a little faster, but are not needed to progress, and oftentimes you would rather have it be the left click input instead of the right click. In this specific case left click is to open the upgrade and right click is to buy it (without opening it up), but using any form of touchscreen does both. I have tried disabling the right-click buttons functionality for devices with the ‘web_mobile’ (or whatever it was) tag, but it still seems to do the same thing. And then I have another form of upgrades elsewhere where it seems to work just fine, with the left click opening up the upgrade in a way that covers the whole container and makes the previous button invisible whereas the one I’m having issues with just writes the upgrades info to a few textboxes in another container. The way I’m doing the right-click functionality is by having two buttons, the one on top set to left-click mask and the one on bottom set to right-click mask (I couldn’t figure out how to make the pressed signal pass different arguments based on the mask).
![]()