Desktop canvas surface can't be shrunk with the resize handle (iframe captures the drag)
Environment: Agent Zero v1.18 / v1.19 · built-in _desktop Canvas surface
Summary
The right-side Canvas Desktop surface can be dragged wider but not narrower. Dragging the canvas resize handle inward freezes the gesture immediately; widening works fine.
Steps to reproduce
- Open the Desktop surface in the right Canvas rail.
- Drag the canvas's left-edge resize handle outward (widen) — works.
- Drag it inward (shrink) — the drag freezes; the panel won't shrink.
Root cause
Canvas resizing is driven by a global pointermove (the handle is on the canvas's left edge). The Desktop surface renders the live desktop in an <iframe class="office-desktop-frame">. Shrinking sweeps the cursor rightward across that iframe, which captures the pointermove, so the resize handler stops receiving events and the drag freezes. Widening moves the cursor left, away from the iframe, so it is unaffected.
The Browser surface renders via <img class="browser-frame"> (screencast) and the Editor is DOM, so neither is affected — only the iframe-based Desktop surface. The existing right-canvas-resizing check in desktop-store.js only defers the server-side resize; it does not stop the iframe from capturing the drag.
Fix (one CSS rule)
In plugins/_desktop/webui/desktop-panel.html, inside the <style> block:
body.right-canvas-resizing .office-desktop-frame { pointer-events: none; }
right-canvas-store.js already toggles right-canvas-resizing on <body> for the duration of a resize drag, so this disables hit-testing on the desktop frame only while dragging, letting the cursor sweep across it. Verified locally: shrink then works in both directions, no other interaction affected, persists across restart.
A PR with this change follows.
Closing due to inactivity of 90 days.