Tapping on both sides of GUI.Button behaves like click

Hi,

I want to know if this behaviour is intended or is it a bug?
I have created a GUI.button, and when I tap on the both sides of the button simultaneously (no matter how far), the click function is executed. I have tested it on various sizes and positions of buttons (on iPad and Android).

Yes, it is (kind of) intended. Unity emulates a mouse cursor at the arithmetic mean of all touch points.

You can install my MobileStats.apk on your android device to see where the GUI-mousePosition is.

I just updated the link to the apk. Note that this question was about he IMGUI mouse position (OnGUI callback). Also note that you need to allow Apps from unknown sources to install this apk. For those who are paranoid or do not trust my app, here’s pretty much all code: App.cs & Drawing.cs. Note that the Drawing.cs doesn’t work anymore since Unity dropped the support for dynamically creating shaders from a string. So you need to find a shader / material replacement. The app also allowed to drag around any objects in the scene with multi touch support.