From dc6c5227828c2d518594ed495ffe764b48a78ebf Mon Sep 17 00:00:00 2001 From: ZacharyZcR Date: Sat, 3 Oct 2026 21:00:20 +0800 Subject: [PATCH] fix(remote-desktop): clip cursor overflow without disabling zoom (#1535) --- plugins/remote-desktop/src/frontend/GuacamoleDisplay.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/remote-desktop/src/frontend/GuacamoleDisplay.tsx b/plugins/remote-desktop/src/frontend/GuacamoleDisplay.tsx index 8dd3fed61..65f9b0635 100644 --- a/plugins/remote-desktop/src/frontend/GuacamoleDisplay.tsx +++ b/plugins/remote-desktop/src/frontend/GuacamoleDisplay.tsx @@ -176,8 +176,8 @@ export const GuacamoleDisplay = forwardRef< const scale = fitScaleRef.current * zoom; scaleRef.current = scale; display.scale(scale); - displayRef.current.style.width = `${display.getWidth() * scale}px`; - displayRef.current.style.height = `${display.getHeight() * scale}px`; + displayRef.current.style.width = `${Math.floor(display.getWidth() * scale)}px`; + displayRef.current.style.height = `${Math.floor(display.getHeight() * scale)}px`; } onZoomChange?.(zoom); return zoom; @@ -904,7 +904,7 @@ export const GuacamoleDisplay = forwardRef< >