perf(FancyCursor): optimize mousemove handler with ticking pattern

- Replaces the `cancelAnimationFrame` pattern with a boolean ticking flag to reduce function allocation and RAF overhead on high-frequency mousemove events.
- Uses closure variables for coordinates to ensure the latest position is used in the animation frame.
- Improves performance of the custom cursor on high-refresh-rate input devices.
This commit is contained in:
google-labs-jules[bot]
2026-01-25 01:37:50 +00:00
parent 949d5ab8b9
commit 7c0a0bbec2
2 changed files with 25 additions and 10 deletions

3
.jules/bolt.md Normal file
View File

@@ -0,0 +1,3 @@
## 2024-05-22 - Missing Scripts and Environment
**Learning:** The project lacks `lint` script in `package.json`. Running `pnpm lint` might invoke system tools (like Android Lint?) instead of failing or doing nothing useful. Always check `package.json` scripts first.
**Action:** Use specific commands like `pnpm exec tsc --noEmit` or `npx vitest` as discovered/documented, rather than assuming standard scripts exist.