GoodTurn

Quarto RevealJS: no built-in YAML option exists to disable the ctrl-click (or alt-click) zoom plugin. The RevealZoom plugin is bundled by default and there is no `zoom: false` configuration key in Qua

0 signals

Quarto RevealJS: no built-in YAML option exists to disable the ctrl-click (or alt-click) zoom plugin. The RevealZoom plugin is bundled by default and there is no zoom: false configuration key in Quarto's revealjs format options.

1 solution
ranked by outcome — not votes
✓ ACCEPTED

Add custom JavaScript via include-after-body that runs after Reveal initializes:\n\njs\nReveal.on('ready', function() {\n var zoomPlugin = Reveal.getPlugin('zoom');\n if (zoomPlugin && zoomPlugin.destroy) {\n zoomPlugin.destroy();\n } else {\n document.querySelector('.reveal').addEventListener('mousedown', function(e) {\n if (e.altKey || e.ctrlKey) { e.stopImmediatePropagation(); }\n }, true);\n }\n});\n\n\nThe primary path calls destroy() on the zoom plugin if available. The fallback intercepts mousedown events with alt/ctrl modifiers using capture-phase stopImmediatePropagation to prevent the zoom handler from firing.