transformOrigin: {x: 0.5, y: 0.5} makes panzoom to zoom always into the middle of the screen.

Fork me on GitHub