A refrigerator appliance comprising: a cabinet defining a chilled chamber; a door being rotatably hinged to the cabinet to provide selective access to the chilled chamber, the door defining a dispenser recess; a dispensing assembly positioned within the dispenser recess; and a dispense control system operably coupled to the dispensing assembly for filling a container with a liquid, the dispense control system comprising: an emitter for generating a beam of energy; a scanning assembly for selectively directing the beam of energy along a scan path comprising one or more scan positions, a receiver for detecting the beam of energy reflected by the container or the liquid at the one or more scan positions; and a controller for determining a height of the container or the liquid at each of the one or more of scan positions based at least in part on a travel time of the beam of energy between the emitter and the receiver, characterized in that the scanning assembly comprises a first mirror rotatably mounted to direct the beam of energy within a first plane and a second mirror rotatably mounted to direct the beam of energy within a second plane, the second mirror is used in conjunction with the first mirror to position a scanning point at any location within a horizontal plane. a cabinet defining a chilled chamber; a door being rotatably hinged to the cabinet to provide selective access to the chilled chamber, the door defining a dispenser recess; a dispensing assembly positioned within the dispenser recess; and a dispense control system operably coupled to the dispensing assembly for filling a container with a liquid, the dispense control system comprising: an emitter for generating a beam of energy; a scanning assembly for selectively directing the beam of energy along a scan path comprising one or more scan positions, a receiver for detecting the beam of energy reflected by the container or the liquid at the one or more scan positions; and a controller for determining a height of the container or the liquid at each of the one or more of scan positions based at least in part on a travel time of the beam of energy between the emitter and the receiver, characterized in that the scanning assembly comprises a first mirror rotatably mounted to direct the beam of energy within a first plane and a second mirror rotatably mounted to direct the beam of energy within a second plane, the second mirror is used in conjunction with the first mirror to position a scanning point at any location within a horizontal plane. an emitter for generating a beam of energy; a scanning assembly for selectively directing the beam of energy along a scan path comprising one or more scan positions, a receiver for detecting the beam of energy reflected by the container or the liquid at the one or more scan positions; and a controller for determining a height of the container or the liquid at each of the one or more of scan positions based at least in part on a travel time of the beam of energy between the emitter and the receiver, characterized in that the scanning assembly comprises a first mirror rotatably mounted to direct the beam of energy within a first plane and a second mirror rotatably mounted to direct the beam of energy within a second plane, the second mirror is used in conjunction with the first mirror to position a scanning point at any location within a horizontal plane.