We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7779002 commit 0cf0fedCopy full SHA for 0cf0fed
static/kvh/app.js
@@ -130,7 +130,7 @@ function updatePhysics() {
130
data.vy = -data.vy * 1.1;
131
data.vr = data.vx / data.radius; // no slip
132
data.vx *= 1.05;
133
- data.y = viewport.height - data.radius * 2;
+ data.y = Math.max(0, Math.min(viewport.height - data.radius * 2, data.y));
134
}
135
136
video.style.left = data.x + 'px';
0 commit comments