mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-09 20:29:06 +07:00
Fixed planet zoom
This commit is contained in:
parent
033dadae2c
commit
cd53cf0991
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user