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,11 +60,13 @@ public class BInstallerView extends View {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setRatio(float ratio, float focusX, float focusY) {
|
private void setRatio(float ratio, float focusX, float focusY) {
|
||||||
mat.postScale(ratio, ratio, focusX, focusY);
|
if (currentScale() * ratio >= 1) {
|
||||||
fitBounds();
|
mat.postScale(ratio, ratio, focusX, focusY);
|
||||||
tilesVisible = currentScale() >= SCALE_GRID_VISIBLE;
|
fitBounds();
|
||||||
|
tilesVisible = currentScale() >= SCALE_GRID_VISIBLE;
|
||||||
|
|
||||||
invalidate();
|
invalidate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setScale(float scale, float focusX, float focusY) {
|
private void setScale(float scale, float focusX, float focusY) {
|
||||||
|
|
Loading…
Reference in a new issue