A method of autofocusing a camera during a zooming operation, the camera comprising a zoom lens, the method comprising zooming the lens to a first zoom position, measuring a first object distance from the camera to an object on which to focus, determining a first focus start position (AF1 start) using said first object distance, and using a relationship between object distance, zoom position, and focus position, performing a first autofocusing operation using a passive autofocus algorithm and using the first focus start position as a starting point for the algorithm, thereby determining a first determined focus position, determining a first lookup object distance (D1') based on the first determined focus position, calculating a first correction factor as a ratio between the first lookup object distance (D1') and the first object distance, determining a first depth of field for said first zoom position, zooming the lens to the second zoom position, determining a second depth of field for said second zoom position, calculating a second correction factor as a product of the first correction factor and a ratio between the second depth of field and the first depth of field, calculating a second object distance as a product of the first object distance and the second correction factor, determining a second focus position using the second object distance, and using the relationship between object distance, zoom position, and focus position, the method further comprising performing a second autofocusing operation using the passive autofocus algorithm and using the second focus position as a starting point for the algorithm, thereby determining a second determined focus position, determining a second lookup object distance (D2') based on the second determined focus position, and calculating a new correction factor (ACF new) as a ratio between the second lookup object distance (D2') and the first object distance. zooming the lens to a first zoom position, measuring a first object distance from the camera to an object on which to focus, determining a first focus start position (AF1 start) using said first object distance, and using a relationship between object distance, zoom position, and focus position, performing a first autofocusing operation using a passive autofocus algorithm and using the first focus start position as a starting point for the algorithm, thereby determining a first determined focus position, determining a first lookup object distance (D1') based on the first determined focus position, calculating a first correction factor as a ratio between the first lookup object distance (D1') and the first object distance, determining a first depth of field for said first zoom position, zooming the lens to the second zoom position, determining a second depth of field for said second zoom position, calculating a second correction factor as a product of the first correction factor and a ratio between the second depth of field and the first depth of field, calculating a second object distance as a product of the first object distance and the second correction factor, determining a second focus position using the second object distance, and using the relationship between object distance, zoom position, and focus position, the method further comprising performing a second autofocusing operation using the passive autofocus algorithm and using the second focus position as a starting point for the algorithm, thereby determining a second determined focus position, determining a second lookup object distance (D2') based on the second determined focus position, and calculating a new correction factor (ACF new) as a ratio between the second lookup object distance (D2') and the first object distance.