Skip to content

Commit 0cf0fed

Browse files
committed
what
1 parent 7779002 commit 0cf0fed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/kvh/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function updatePhysics() {
130130
data.vy = -data.vy * 1.1;
131131
data.vr = data.vx / data.radius; // no slip
132132
data.vx *= 1.05;
133-
data.y = viewport.height - data.radius * 2;
133+
data.y = Math.max(0, Math.min(viewport.height - data.radius * 2, data.y));
134134
}
135135

136136
video.style.left = data.x + 'px';

0 commit comments

Comments
 (0)