1. A method for recognizing contacts on a touch sensor panel, comprising: detecting a touch in an edge region of the touch sensor panel; modifying a width of the edge region based on the detected touch; detecting a gesture in the modified-width edge region; and performing a function in accordance with the detected gesture.