From 4e0627e6a3fb35ca2808206084a29b412f1b3b78 Mon Sep 17 00:00:00 2001 From: yuanyuanxiang <962914132@qq.com> Date: Sun, 17 May 2026 19:12:55 +0200 Subject: [PATCH] Fix(Web): Align touchpad cursor overlay to SVG arrow tip --- server/web/index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/web/index.html b/server/web/index.html index fbd6d96..420ae6b 100644 --- a/server/web/index.html +++ b/server/web/index.html @@ -962,6 +962,9 @@ background-size: contain; filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.6)); transform-origin: 0 0; + /* SVG arrow tip is at (4,4) inside the 24x24 viewBox; shift overlay so the tip, + not the div's top-left, lands on the reported cursor position. */ + transform: translate(-4px, -4px); } .cursor-overlay.active { display: block; } /* Input shortcut bar - below canvas, portrait mode only */