Commit Graph

4 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
google-labs-jules[bot]
d5b079d452 Refactor FancyCursor to use mouseover delegation
- Moves expensive DOM checks (`closest`) and class toggling from `mousemove` loop to `mouseover` handler.
- Removes `document.elementFromPoint` fallback to eliminate layout thrashing.
- Updates tests to verify performance improvements.
- Fixes `Hero.test.tsx` missing jsdom environment.
2026-01-23 09:27:45 +00:00
google-labs-jules[bot]
f254e9528a Optimize FancyCursor by replacing elementFromPoint with event delegation 2026-01-22 08:23:02 +00:00
Melvin Ragusa
faa92414f1 add: FancyCursor 2026-01-22 00:27:57 +01:00