From 351048a5af44d80592075041989a0e81778bcf43 Mon Sep 17 00:00:00 2001 From: King0James0 Date: Thu, 4 Jun 2026 13:55:39 -0400 Subject: [PATCH] fix(_desktop): allow shrinking the Desktop canvas surface The live desktop renders in an iframe (.office-desktop-frame). Canvas resize is driven by a global pointermove from the left-edge handle; shrinking sweeps the cursor across the iframe, which captures the event and freezes the drag. Disable hit-testing on the frame while right-canvas-resizing is set on . --- plugins/_desktop/webui/desktop-panel.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/_desktop/webui/desktop-panel.html b/plugins/_desktop/webui/desktop-panel.html index 1bbe300c31..29509df78d 100644 --- a/plugins/_desktop/webui/desktop-panel.html +++ b/plugins/_desktop/webui/desktop-panel.html @@ -723,6 +723,12 @@ } } + + /* While the canvas is being resized, the left-edge drag sweeps the cursor across this + iframe, which captures the pointermove and freezes shrinking (widening drags away, so + it works). Disable hit-testing on the frame during the drag — right-canvas-store.js + toggles `right-canvas-resizing` on for the duration of the drag. */ + body.right-canvas-resizing .office-desktop-frame { pointer-events: none; }