From 010520f72254f121cd092473124d8220c49cfb08 Mon Sep 17 00:00:00 2001 From: Antonio Ledebuhr Date: Wed, 21 Jan 2026 17:42:29 +0100 Subject: [PATCH] can't trap dots in corner anymore --- src/app/components/dot-background/dot-background.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/components/dot-background/dot-background.ts b/src/app/components/dot-background/dot-background.ts index d040e10..c031680 100644 --- a/src/app/components/dot-background/dot-background.ts +++ b/src/app/components/dot-background/dot-background.ts @@ -119,6 +119,12 @@ export class DotBackground implements OnDestroy { if (speed > 0.3) { dot.vx *= 0.98; dot.vy *= 0.98; + } else if (speed <= 0.3) { + dot.vx *= 1.02; + dot.vy *= 1.02; + } else if (speed === 0) { + dot.vx = Math.random() * 0.2 - 0.1; + dot.vy = Math.random() * 0.2 - 0.1; } // Bounce off edges (accounting for radius)