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 <body>.
This commit is contained in:
King0James0 2026-06-04 13:55:39 -04:00 committed by Alessandro
parent 01def8603a
commit 4e4add524f

View file

@ -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 <body> for the duration of the drag. */
body.right-canvas-resizing .office-desktop-frame { pointer-events: none; }
</style>
</body>
</html>