A method of controlling a liquid lens in an imaging device, the liquid lens comprising: a liquid-liquid interface between first and second immiscible liquids (210, 212) deformable by electrowetting; a chamber containing the first and second liquids, the first liquid being an insulating liquid and the second liquid being a conducting liquid; and a first electrode in contact with said second liquid and a plurality of second electrodes (301 to 304) insulated from said second liquid by an insulating layer, said first and second electrodes being arranged to allow a plurality of voltage levels (Vx+, Vx-, Vy+, Vy-) to be applied between said first and second electrodes to control the shape of said liquid-liquid interface, wherein the method comprises: determining motion data indicating a movement of said imaging device using a motion detector; determining a focusing signal indicating a focus of said imaging device using a focus determination block; determining said plurality of voltage levels (Vx+, Vx-, Vy+, Vy-) to be applied between said first and second electrodes, wherein each of said voltage levels is a function of said motion data, said focusing signal and constants, wherein said constants relating to the physical properties of the liquid lens are preliminarily determined in a calibration phase and include first constants (α 1, α 2) and a second constant (β), and wherein said step of determining said plurality of voltage levels (Vx+, Vx-, Vy+, Vy-) comprises: calculating each of said voltage levels based on the product of said motion data (θx, θy) and said first constants (α 1, α 2) and the product of said focusing signal and said second constant (β); and applying said plurality of voltage levels between said first and second electrodes; characterized in that the method comprises determining at least one of said voltage levels based on a function having a term dependent on the product of said motion data and said focusing signal. determining motion data indicating a movement of said imaging device using a motion detector; determining a focusing signal indicating a focus of said imaging device using a focus determination block; determining said plurality of voltage levels (Vx+, Vx-, Vy+, Vy-) to be applied between said first and second electrodes, wherein each of said voltage levels is a function of said motion data, said focusing signal and constants, wherein said constants relating to the physical properties of the liquid lens are preliminarily determined in a calibration phase and include first constants (α 1, α 2) and a second constant (β), and wherein said step of determining said plurality of voltage levels (Vx+, Vx-, Vy+, Vy-) comprises: calculating each of said voltage levels based on the product of said motion data (θx, θy) and said first constants (α 1, α 2) and the product of said focusing signal and said second constant (β); and applying said plurality of voltage levels between said first and second electrodes; characterized in that the method comprises determining at least one of said voltage levels based on a function having a term dependent on the product of said motion data and said focusing signal. wherein each of said voltage levels is a function of said motion data, said focusing signal and constants, wherein said constants relating to the physical properties of the liquid lens are preliminarily determined in a calibration phase and include first constants (α 1, α 2) and a second constant (β), and wherein said step of determining said plurality of voltage levels (Vx+, Vx-, Vy+, Vy-) comprises: calculating each of said voltage levels based on the product of said motion data (θx, θy) and said first constants (α 1, α 2) and the product of said focusing signal and said second constant (β); and applying said plurality of voltage levels between said first and second electrodes; characterized in that the method comprises determining at least one of said voltage levels based on a function having a term dependent on the product of said motion data and said focusing signal. calculating each of said voltage levels based on the product of said motion data (θx, θy) and said first constants (α 1, α 2) and the product of said focusing signal and said second constant (β); and applying said plurality of voltage levels between said first and second electrodes; characterized in that the method comprises determining at least one of said voltage levels based on a function having a term dependent on the product of said motion data and said focusing signal.