How to fix viewport navigation in Linux?

I am accessing UE5.3.2 on a Linux machine (Ubuntu 24) using a VM using TigerVNC. So i fixed this by just adding -norelativemousemode while running the editor for eg. ./UnrealEditor -norelativemousemode and checking the screen roll in the editor preference->viewport settings.
I hope it helps !