Bolt: Optimize FancyCursor mousemove handler #22

Merged
google-labs-jules[bot] merged 1 commits from bolt-optimize-fancycursor-3615259032599906398 into main 2026-01-25 14:16:27 +00:00

1 Commits

Author SHA1 Message Date
google-labs-jules[bot]
7c0a0bbec2 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.
2026-01-25 01:37:50 +00:00