Patent ID: 8863039

Claim:
In a computer system, a method comprising: receiving gesture information corresponding to a gesture on a touch input device, the gesture information indicating movement in at least a first dimension and a second dimension; based at least in part on the gesture information, calculating a new position of a viewport relative to a user interface element having an extent greater than an extent of the viewport, the user interface element having plural boundaries comprising one or more boundaries in the first dimension and one or more boundaries in the second dimension; determining that the new position of the viewport exceeds one or more of the plural boundaries of the user interface element; and in response to determining that the new position of the viewport exceeds the one or more of the plural boundaries: determining a region to be compressed of the user interface element; and calculating a multi-dimensional compression effect for the region to be compressed, wherein the multi-dimensional compression effect comprises a horizontal compression effect in which content within the region to be compressed is horizontally scaled and a vertical compression effect in which content within the region to be compressed is vertically scaled.