v1.2.0: fixed adjusting camera center offset cancelling camera panning
This commit is contained in:
@@ -211,9 +211,9 @@ public class Camera extends Gizmo {
|
|||||||
public void setCenterOffset( float x, float y ){
|
public void setCenterOffset( float x, float y ){
|
||||||
scroll.x += x - centerOffset.x;
|
scroll.x += x - centerOffset.x;
|
||||||
scroll.y += y - centerOffset.y;
|
scroll.y += y - centerOffset.y;
|
||||||
|
panTarget.x += x - centerOffset.x;
|
||||||
|
panTarget.y += y - centerOffset.y;
|
||||||
centerOffset.set(x, y);
|
centerOffset.set(x, y);
|
||||||
panIntensity = 0f;
|
|
||||||
followTarget = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void snapTo(float x, float y ) {
|
public void snapTo(float x, float y ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user