How do I rotate my viewport around the position of my cursor?
Edit -> Preferences

I think you need this to be checked.



This also could be interesting for zooming to/from mouse position



I found a nice tutorial on that subject.