Skip to content

Commit

Permalink
more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Nov 10, 2024
1 parent 523192e commit f2a0f0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/ui/PageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ const PageHeader = ({ children }: Props) => {
(1 + Math.sin(fakeMouseAngleRef.current) ** 2),
};

fakeMouseAngleRef.current += isMobile ? 0.03 : 0.02;
fakeMouseAngleRef.current += isMobile ? 0.015 : 0.01;
}

// Update current position
Expand All @@ -271,7 +271,7 @@ const PageHeader = ({ children }: Props) => {
const dy = targetY - currentY;
const distance = Math.sqrt(dx * dx + dy * dy);

const maxSpeed = 15;
const maxSpeed = 5;
const speed = Math.min(distance * 0.2, maxSpeed);

if (distance > 0.1) {
Expand Down

0 comments on commit f2a0f0a

Please sign in to comment.