The invention relates to a data processing system enabling a user to view or edit a document. When the user scrolls the document over a relatively large distance within a short time period, the system automatically adjusts the zoom factor so as to provide the user with a better overview during scrolling. When the user has finished scrolling, the zoom factor may be reinstated to its initial value.