fixing again
All checks were successful
Homepage Build and Deploy / Build Homepage Image (push) Successful in 25s
Homepage Build and Deploy / Deploy Homepage (push) Successful in 4s

This commit is contained in:
2026-07-10 11:08:15 -03:00
parent 7e4a709144
commit 9410d3a7c6

View File

@@ -171,11 +171,11 @@ class MatrixBackground {
// Reflect at the canvas edge. Keep the base velocity in sync with
// the bounce so the drift easing does not push the dot back into
// the same wall on the next frames.
const radius = dot.size / 2;
const minX = radius;
const minY = radius;
const maxX = Math.max(minX, this.canvas.width - radius);
const maxY = Math.max(minY, this.canvas.height - radius);
const dotRadius = dot.size / 2;
const minX = dotRadius;
const minY = dotRadius;
const maxX = Math.max(minX, this.canvas.width - dotRadius);
const maxY = Math.max(minY, this.canvas.height - dotRadius);
if (dot.x <= minX && dot.vx < 0) {
dot.x = minX + (minX - dot.x);