Fix positioning of default cursor (#1458)

This PR fixes the default custom cursor being slightly out-of-position
compared to MacOS cursor.

### Change Type

- [x] `patch` — Bug Fix

### Test Plan

1. On Mac, right-click on the canvas.
2. When the cursor swaps out for the OS cursor... it should stay in the
same position.
This commit is contained in:
Lu Wilson 2023-05-25 12:09:18 +01:00 committed by GitHub
parent 020b0da704
commit 0e9058409d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ function getCursorCss(
const CURSORS: Record<TLCursorType, (r: number, f: boolean, color: string) => string> = {
none: () => 'none',
default: (r, f, c) => getCursorCss(DEFAULT_SVG, r, 0, f, c, 12, 10),
default: (r, f, c) => getCursorCss(DEFAULT_SVG, r, 0, f, c, 12, 8),
pointer: (r, f, c) => getCursorCss(POINTER_SVG, r, 0, f, c, 14, 10),
cross: (r, f, c) => getCursorCss(CROSS_SVG, r, 0, f, c),
move: (r, f, c) => getCursorCss(MOVE_SVG, r, 0, f, c),