A computer-implemented method for controlling a remote device with a local device, comprising the following steps: a) a remote device having a first screen is provided; b) a local device having a second screen is provided; c) at least a part of a content of the first screen is displayed on the second screen with a magnification m; wherein the first screen and the second screen have shapes that are at least substantially rectangular so that the first screen and the second screen each have a first side (28, 34) and a second side (30, 32) that is arranged perpendicular to the first side, and wherein - in a first range of magnifications m with M min ≤ m ≤ M, the content of the first screen is completely displayed on the second screen, - in a second range of magnifications m with M < m ≤ M 1, only the content of the first screen extending along the first side of the first screen is completely displayed on the second screen, while the content of the first screen extending along the second side of the first screen is not completely displayed on the second screen, - in a third range of magnifications m with M 1 < m ≤ M max, neither the content of the first screen extending along the first side nor the content of the first screen extending along the second side is completely displayed on the second screen; d) the local device records a user-action performed on the local device; e) if the value of the magnification m is in the first range of magnifications, the local device interprets the user-action, if it corresponds to a scroll command, as a command destined for the remote device; f) if the value of the magnification m is in the second range of magnifications, the local device interprets - the user-action, if it corresponds to a command to scroll the content displayed on the second screen along a direction parallel to its first side, as a command destined for itself, and scrolls the content on the second screen along its first side, - the user-action, if it corresponds to a command to scroll the content displayed on the second screen along a direction parallel to its second side, as a command destined for the remote device; a) a remote device having a first screen is provided; b) a local device having a second screen is provided; c) at least a part of a content of the first screen is displayed on the second screen with a magnification m; wherein the first screen and the second screen have shapes that are at least substantially rectangular so that the first screen and the second screen each have a first side (28, 34) and a second side (30, 32) that is arranged perpendicular to the first side, and wherein - in a first range of magnifications m with M min ≤ m ≤ M, the content of the first screen is completely displayed on the second screen, - in a second range of magnifications m with M < m ≤ M 1, only the content of the first screen extending along the first side of the first screen is completely displayed on the second screen, while the content of the first screen extending along the second side of the first screen is not completely displayed on the second screen, - in a third range of magnifications m with M 1 < m ≤ M max, neither the content of the first screen extending along the first side nor the content of the first screen extending along the second side is completely displayed on the second screen; - in a first range of magnifications m with M min ≤ m ≤ M, the content of the first screen is completely displayed on the second screen, - in a second range of magnifications m with M < m ≤ M 1, only the content of the first screen extending along the first side of the first screen is completely displayed on the second screen, while the content of the first screen extending along the second side of the first screen is not completely displayed on the second screen, - in a third range of magnifications m with M 1 < m ≤ M max, neither the content of the first screen extending along the first side nor the content of the first screen extending along the second side is completely displayed on the second screen; d) the local device records a user-action performed on the local device; e) if the value of the magnification m is in the first range of magnifications, the local device interprets the user-action, if it corresponds to a scroll command, as a command destined for the remote device; f) if the value of the magnification m is in the second range of magnifications, the local device interprets - the user-action, if it corresponds to a command to scroll the content displayed on the second screen along a direction parallel to its first side, as a command destined for itself, and scrolls the content on the second screen along its first side, - the user-action, if it corresponds to a command to scroll the content displayed on the second screen along a direction parallel to its second side, as a command destined for the remote device; - the user-action, if it corresponds to a command to scroll the content displayed on the second screen along a direction parallel to its first side, as a command destined for itself, and scrolls the content on the second screen along its first side, - the user-action, if it corresponds to a command to scroll the content displayed on the second screen along a direction parallel to its second side, as a command destined for the remote device;