R2 clicks at the mouse position

https://i.gyazo.com/e5162107a0d74be7db72de048a20206a.mp4

Just noticed this. If there’s a selected gui and the gui is 2d, R2 is supposed to invoke a click on the gui. Instead, it invokes a click at the mouse position, which is supposed to ignore 2D guis. Click is reflected as the border flashing.

Also it fires MouseEnter, which it shouldn’t. MouseEnter is reflected by the tooltip appearing.

1 Like

(never mind what I previously said)

Looking into this. It seems like we center the mouse position on the gui if you use ButtonA, but not with ButtonR2, so that explains this behavior.

1 Like