don't show cursor until pointer enters canvas

Hunter
Wednesday, July 22nd, 2026 at 11:52 PM

index.html+4-5

index.html
156  	// used to keep the brush pinned under the real cursor while panning, since
157  	// the OS does not emit pointermove events when only the camera moves.
158  	let curClientX = null, curClientY = null;
    -	let mouseInside = true;
    -	// brush preview fades in when it appears and out after the last touch lifts
    -	let cursorAlpha = 1;
    -	let cursorFadeFrom = 1;
    -	let cursorFadeTo = 1;
159 +	let mouseInside = false;
160 +	let cursorAlpha = 0;
161 +	let cursorFadeFrom = 0;
162 +	let cursorFadeTo = 0;
163  	let cursorFadeStart = 0;
164  	const CURSOR_FADE_IN_MS = 100;
165  	const CURSOR_FADE_OUT_MS = 400;