1. Electronic device, which includes a display component, in which at least one controllable element is arranged to be visualized in its entirety, the control of which element is arranged to be based on determining a change (M) relating to the attitude or position of the device relative to at least one selected fixed point and camera means arranged to form consecutive image frames (IMAGE 1 , IMAGE 2 ), and in which, in order to control the functions of the device, such as, for example, to control the said element, the said change (M) is arranged to be determined, using optical data-flow algorithms, from the consecutive image frames (IMAGE 1 , IMAGE 2 ) formed by the camera means, which consecutive image frames are arranged to be compared to each other in a set manner, and on the basis of which comparison the said change (M) is arranged to be determined, wherein the consecutive image frames (IMAGE 1 , IMAGE 2 ) are arranged to be segmented in a selected manner, from which at least one movement vector (S R , S L , S Up , S Down ) defining the said change (M) is arranged to be determined from at least some of the segments (SEGMENT 1 , SEGMENT 2 ).