Use initial view as minimal zoom level
This commit is contained in:
parent
31e7c4ebbd
commit
1a3a77de72
1 changed files with 6 additions and 4 deletions
|
@ -60,12 +60,14 @@ public class BInstallerView extends View {
|
|||
}
|
||||
|
||||
private void setRatio(float ratio, float focusX, float focusY) {
|
||||
if (currentScale() * ratio >= 1) {
|
||||
mat.postScale(ratio, ratio, focusX, focusY);
|
||||
fitBounds();
|
||||
tilesVisible = currentScale() >= SCALE_GRID_VISIBLE;
|
||||
|
||||
invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
private void setScale(float scale, float focusX, float focusY) {
|
||||
float ratio = scale / currentScale();
|
||||
|
|
Loading…
Reference in a new issue