A method of enrolling a fingerprint of a user's finger, by means of an electronic device comprising: a touch display comprising a touch sensor for touch-based control of said electronic device and a display acting as a user interface, said touch sensor having an active area corresponding to a first surface portion of said electronic device; and a fingerprint sensor having an active area corresponding to a second surface portion of said electronic device, said method comprising the steps of: a) acquiring, from said touch sensor for each finger placement in a sequence of finger placements on said fingerprint sensor, a touch sensor signal indicative of a sub-area of said touch sensor being touched by said finger; b) acquiring, from said fingerprint sensor, for each finger placement in said sequence of finger placements on said fingerprint sensor, a partial fingerprint image of a portion of said fingerprint; c) determining, for each finger placement in said sequence of finger placements on said fingerprint sensor, a positional relationship between said portion of the fingerprint and said finger based on said sub-area and a positional relationship between said first and second surface portions of the electronic device; d) forming a fingerprint template based on said acquired partial fingerprint images and said determined positional relationships; and e) saving said fingerprint template together with an identifier for said fingerprint to thereby enroll said fingerprint. a touch display comprising a touch sensor for touch-based control of said electronic device and a display acting as a user interface, said touch sensor having an active area corresponding to a first surface portion of said electronic device; and a fingerprint sensor having an active area corresponding to a second surface portion of said electronic device, said method comprising the steps of: a) acquiring, from said touch sensor for each finger placement in a sequence of finger placements on said fingerprint sensor, a touch sensor signal indicative of a sub-area of said touch sensor being touched by said finger; b) acquiring, from said fingerprint sensor, for each finger placement in said sequence of finger placements on said fingerprint sensor, a partial fingerprint image of a portion of said fingerprint; c) determining, for each finger placement in said sequence of finger placements on said fingerprint sensor, a positional relationship between said portion of the fingerprint and said finger based on said sub-area and a positional relationship between said first and second surface portions of the electronic device; d) forming a fingerprint template based on said acquired partial fingerprint images and said determined positional relationships; and e) saving said fingerprint template together with an identifier for said fingerprint to thereby enroll said fingerprint. a) acquiring, from said touch sensor for each finger placement in a sequence of finger placements on said fingerprint sensor, a touch sensor signal indicative of a sub-area of said touch sensor being touched by said finger; b) acquiring, from said fingerprint sensor, for each finger placement in said sequence of finger placements on said fingerprint sensor, a partial fingerprint image of a portion of said fingerprint; c) determining, for each finger placement in said sequence of finger placements on said fingerprint sensor, a positional relationship between said portion of the fingerprint and said finger based on said sub-area and a positional relationship between said first and second surface portions of the electronic device; d) forming a fingerprint template based on said acquired partial fingerprint images and said determined positional relationships; and e) saving said fingerprint template together with an identifier for said fingerprint to thereby enroll said fingerprint. <EOS>