Fixed planet zoom

This commit is contained in:
Anuken 2021-08-13 11:29:22 -04:00
parent 033dadae2c
commit cd53cf0991

View File

@ -130,7 +130,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
@Override @Override
public boolean scrolled(InputEvent event, float x, float y, float amountX, float amountY){ public boolean scrolled(InputEvent event, float x, float y, float amountX, float amountY){
if(event.targetActor == PlanetDialog.this){ if(event.targetActor == PlanetDialog.this){
zoom = Mathf.clamp(zoom + y / 10f, 0.5f, 2f); zoom = Mathf.clamp(zoom + amountY / 10f, 0.5f, 2f);
} }
return true; return true;
} }