v0.8.0: tweaked scroll zooming to round instead of floor

This commit is contained in:
Evan Debenham 2019-11-09 22:38:55 -05:00
parent 94078bd9b9
commit 39525ec0f1

View File

@ -69,7 +69,7 @@ public class CellSelector extends ScrollArea {
diff = Math.min(1, diff); diff = Math.min(1, diff);
mouseZoom = GameMath.gate( PixelScene.minZoom, mouseZoom - diff, PixelScene.maxZoom ); mouseZoom = GameMath.gate( PixelScene.minZoom, mouseZoom - diff, PixelScene.maxZoom );
zoom( (int)Math.floor(mouseZoom) ); zoom( Math.round(mouseZoom) );
} }
@Override @Override