A minimal Konva stage showcasing the wheel-zoom and touch-pinch handlers used by the editor — the helper keeps the pointer centred while scaling, so the logic can drop into other canvases.
Scroll over the canvas or pinch on a touchpad/device. The logic maintains the viewport focus while updating the persisted translation and scale state.