Rotating mesh with mouse movement

I’m trying to rotate an object using mouse. In my search for help. I used blueprints from How could i rotate an object with middle mouse button? - Programming & Scripting - Unreal Engine Forums .
The problem with this solution is, that when I turn it a bit on one axis, the other is inverted or skewed, and it accumulates wwith further movements. I’m looking to modify this one so it would always rotate ‘right’ when I move my mouse right, and same for other directions.