Use mousewheel to zoom. Drag image or minimap rectangle to pan.
Edit in JS Bin