I'm just trying to create a camera for an android game with which you can zoom and move on the x axis and I want to make a limit for this camera. For example, I want that the camera stop zooming when the orthographicSize is bigger than my variable max\_zoom or smaller than my variable min\_zoom.

The problem is that if the user zooms very fast, the update function doesn't update enough fast and for example, the orthographicSize is equals to 0.995 even if my min\_zoom variable is equals to 1. Here is my condition : 

```
if(GetComponent<Camera> ().orthographicSize > min_zoom && GetComponent<Camera> ().orthographicSize < max_zoom) {
    // .. change the orthographic size based on the change in distance between the touches.
    GetComponent<Camera> ().orthographicSize += deltaMagnitudeDiff * orthoZoomSpeed;

    // Make sure the orthographic size never drops below zero.
    GetComponent<Camera> ().orthographicSize = Mathf.Max(GetComponent<Camera> ().orthographicSize, 0.1f);

}

```

So the problem is that the user can't zoom out.