Fix(Web): Align touchpad cursor overlay to SVG arrow tip
This commit is contained in:
@@ -962,6 +962,9 @@
|
|||||||
background-size: contain;
|
background-size: contain;
|
||||||
filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.6));
|
filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.6));
|
||||||
transform-origin: 0 0;
|
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; }
|
.cursor-overlay.active { display: block; }
|
||||||
/* Input shortcut bar - below canvas, portrait mode only */
|
/* Input shortcut bar - below canvas, portrait mode only */
|
||||||
|
|||||||
Reference in New Issue
Block a user