I made an account just to say this, i know i must have done a ton of things wrong, sorry about that.
I have used other programs where i can undo view change which helps when you are navigating complex stuff.
And for when i make mistakes.
So my idea is save a configurable number of previous views, you could possibly copy the code from the camera function and save the coordinates...
i really have no clue how you code, but it does not sound like a to intensive task in my fractured view of how coding stuff works.
Thanks