Orbital camera on mobile

Hello

I’m looking for an orbital camera solution that works with touch/mobile.

There is nothing in the market and can’t find a working blueprint or tutorial anywhere.

The only thing I’ve found is this on Reddit:

But I can’t get it to work… missing information about the blueprint to reconstruct it…

Anyone have a working sample I could take a look at?