An electronic device having a first part, a second part, and a touch sensitive panel disposed on the second part, said electronic device being arrangeable during use into one of at least an opened and a closed state, the touch sensitive panel covered by the first part in the closed state, said electronic device comprising
- a sensor circuit for generating a touch signal indicative for a position where a touch of the touch sensitive panel is detected;
- a touch simulation facility for evoking a touch signal at least one position of said touch sensitive panel, wherein said touch simulation facility comprises at least one touch simulation element which in the closed state of the electronic device is arranged opposite said touch sensitive panel;
- and
- a comparator for comparing a touch signal of the sensor circuit with a reference value corresponding to the at least one touch simulation element and for generating a correction signal (Scal) for adjusting a setting of the sensor circuit for compensation of a difference detected between the position of said touch sensitive panel where the touch signal is evoked and the position indicated by the touch signal.