1. A method for recognizing contacts on a touch sensor panel, comprising: detecting a touch contacting a first region of the touch sensor panel, the first region located along an outer boundary of the touch sensor panel having contact rejection or recognition criteria different from other regions of the touch sensor panel; modifying a width of the first region based on the detected touch contacting the first region; detecting a gesture in the modified-width first region; and performing a function in accordance with the detected gesture.