Initially I wanted that the cursor returns back to the position where it was when you first pressed the RMB and not to change direction when you release it, but it somehow broke when I changed the project resolution ¯\_(ツ)_/¯ Thank you :)