v0.6.2: improved zoom scaling as lower scaling values
This commit is contained in:
parent
a875b8f448
commit
b02d1d0d1a
|
@ -165,9 +165,10 @@ public class CellSelector extends TouchArea {
|
||||||
if (pinching) {
|
if (pinching) {
|
||||||
|
|
||||||
float curSpan = PointF.distance( touch.current, another.current );
|
float curSpan = PointF.distance( touch.current, another.current );
|
||||||
|
float zoom = (startZoom * curSpan / startSpan);
|
||||||
camera.zoom( GameMath.gate(
|
camera.zoom( GameMath.gate(
|
||||||
PixelScene.minZoom,
|
PixelScene.minZoom,
|
||||||
PixelScene.align(startZoom * curSpan / startSpan),
|
zoom - (zoom % 0.1f),
|
||||||
PixelScene.maxZoom ) );
|
PixelScene.maxZoom ) );
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user