mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 14:00:37 +00:00
Apply at most one _set_view + _render_from_cache per animation frame in the wasm playground, accumulating the wheel zoom factor and the last cursor point instead of rendering synchronously on every wheel event. This mirrors schedule-zoom! in app.main.ui.workspace.viewport.actions so playground interactions match the application. A comment records that the playground should call the real function once it migrates to ClojureScript. Extend the adapter tests with the coalesced flush, factor reset across frames, scale clamps, and per-move pointer pan. AI-assisted-by: deepseek-flash