My understanding is focusing is not related to the digital zoom. The sequence of operations of camera is (approximately),: focusing, metering, take photo, editing (sharpness, saturation, white balance, digital zoom).
So digital zoom is long time (dozen and hundred of milliseconds) after the focusing process.