Zooming and viewports on a canvas

Hi anvil forum,

I have a canvas which I can zoom into using the .scale() method, however I cant seem to move it around to see the rest of it, I’d like to have an image in the top right corner to show where you are currently viewing in relation to the rest of the canvas.

Does anyone have any ideas how I could do this?