diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/CellSelector.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/CellSelector.java index 68a8aeaca..a8606e6ea 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/CellSelector.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/CellSelector.java @@ -165,9 +165,10 @@ public class CellSelector extends TouchArea { if (pinching) { float curSpan = PointF.distance( touch.current, another.current ); + float zoom = (startZoom * curSpan / startSpan); camera.zoom( GameMath.gate( PixelScene.minZoom, - PixelScene.align(startZoom * curSpan / startSpan), + zoom - (zoom % 0.1f), PixelScene.maxZoom ) ); } else {