v1.2.0: fixed adjusting camera center offset cancelling camera panning

This commit is contained in:
Evan Debenham 2022-02-20 19:15:12 -05:00
parent de1e628ad0
commit 18d4005c55

View File

@ -209,11 +209,11 @@ public class Camera extends Gizmo {
}
public void setCenterOffset( float x, float y ){
scroll.x += x - centerOffset.x;
scroll.y += y - centerOffset.y;
scroll.x += x - centerOffset.x;
scroll.y += y - centerOffset.y;
panTarget.x += x - centerOffset.x;
panTarget.y += y - centerOffset.y;
centerOffset.set(x, y);
panIntensity = 0f;
followTarget = null;
}
public void snapTo(float x, float y ) {