mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-08-20 05:45:20 +00:00
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:
parent
01def8603a
commit
4e4add524f
1 changed files with 6 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue