Controller yaw/pitch input bugging out after enabling click events

I’m trying to set up some controls where you have a cursor visible and can move around with WASD, Space, and Ctrl.

The user is able to look around with the mouse when the right mouse button is held, this works as intended.

The problem occurs as soon as any other mouse button is pressed:
the yaw/pitch input from the mouse just stops working, and you’re unable to look around anymore,
even when holding down the right mouse button.

Blueprint: https://gyazo.com/3cae0b555e7351aa17887e050557e1a6

Still haven’t figured out what is causing this for two days straight.

Referred from the forums by Jezcentral

Apparently it’s some bug within the viewport, it loses the mouse focus after you release the right mouse button, which is weird behavior.
The only workaround I have found is by holding the right mouse button and left clicking again, this will enable the controller input again.