v0.6.2: improved zoom scaling as lower scaling values

This commit is contained in:
Evan Debenham 2017-08-29 22:03:00 -04:00
parent a875b8f448
commit b02d1d0d1a

View File

@ -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 {