I got your problem, follow the steps to solve it
Navigate to editor > Editor Settings > Editors > 3D > Navigation
Under Navigation you will find Emulate 3 Button Mouse check it and from Navigation Scheme, select Tablet/Trackpad from the list.
Now you will be able to navigate the 3d view easily orbit with your trackpad and alt key , pan with shift + trackpad, etc.