1. A method comprising: recording with a gesture input device a gesture, wherein the gesture is defined by a moving point having a trajectory broken into partial gestures which are contiguous touch gestures, and where waypoints separate the partial gestures and the trajectory of the moving point is uninterrupted from a starting point to an end point and detecting, within the gesture, each one of a sequence of the partial gestures that form the gesture; and performing a same first command on detecting each partial gesture, where the gesture input device comprises part of an electronic device that comprises a display, and where the first command is at least one of a command to perform a display scroll up function or scroll down function, and a command to perform a display page back function or page forward function, wherein the method further comprises: a) detecting a potential waypoint separating partial gestures; b) testing to confirm that the potential waypoint is a waypoint separating partial gestures; c) if the test is positive, performing the first command; and repeating step a), b) and c) until the gesture ends.