mirror of
https://github.com/Such-Software/wownerogue.git
synced 2026-10-18 14:51:26 +02:00
Reusable zoom control (zoomControl.js): RK.attachZoom(host) adds wheel/pinch zoom to a render host; RK.applyZoom(host) scales whatever canvas is mounted (2D or WebGL) via CSS transform (pixelated so pixel art stays crisp), re-applied on mode switch. Trackpad pinch = ctrl+wheel, handled the same way; double-click resets. Wired into the tavern stage, so it works across Tiled/ASCII/Fancy/Iso/3D. Client-only.