v0.7.5c: fixed smooth camera jittering at low framerates

This commit is contained in:
Evan Debenham 2019-10-16 12:59:26 -04:00
parent ff765d5673
commit 7aedf906e7

View File

@ -173,7 +173,7 @@ public class Camera extends Gizmo {
panMove.x = panTarget.x - (scroll.x + width/2f);
panMove.y = panTarget.y - (scroll.y + height/2f);
panMove.scale(Game.elapsed * panIntensity);
panMove.scale(Math.min(1f, Game.elapsed * panIntensity));
scroll.offset(panMove);
}