You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NextProject.tsx uses useMouseHovered and Stamp.tsx uses useMouse which makes the components constantly rerender when the cursor moves. There's better solution for example in HeroPfp.tsx using onPointerMove which updates the MotionValues directly.
The text was updated successfully, but these errors were encountered:
joonassandell
changed the title
Fix rendering in NextProject
Fix rendering in NextProject and Stamp
Dec 13, 2024
NextProject.tsx uses
useMouseHovered
and Stamp.tsx usesuseMouse
which makes the components constantly rerender when the cursor moves. There's better solution for example in HeroPfp.tsx usingonPointerMove
which updates theMotionValues
directly.The text was updated successfully, but these errors were encountered: