A method comprising: detecting a moving touch at a plurality of consecutive touch locations (442, 444, 446) on a touch-sensitive display of an electronic device, wherein the plurality of consecutive touch locations (442, 444, 446) includes a first detected touch location near an edge of the touch-sensitive display; filtering touch data associated with the moving touch based on a direction between ones of the consecutive touch locations (442, 444, 446), wherein filtering comprises determining an expected direction of the moving touch based on the first detected touch location of the plurality of consecutive touch locations (442, 444, 446) and the edge of the touch-sensitive display that is near the first detected touch location, and discarding touch data for a second one of the plurality of consecutive touch locations (442, 444, 446) when the second one is in a direction, from the first detected touch location, that is generally opposite the expected direction; identifying, based on the filtered touch data, when the moving touch is a first gesture type that has an origin at a location on the electronic device that is non-touch-sensitive, based on touch attributes including a time between detecting the moving touch at consecutive ones of the filtered touch locations (442, 446) and a distance between consecutive ones of the filtered touch locations (442, 446), wherein the moving touch is identified as the first gesture type when the time between detecting the moving touch at the consecutive ones of the filtered touch locations (442, 446) is within a threshold time and the distance between the consecutive ones of the filtered touch locations (442, 446) is equal to or greater than a threshold distance. detecting a moving touch at a plurality of consecutive touch locations (442, 444, 446) on a touch-sensitive display of an electronic device, wherein the plurality of consecutive touch locations (442, 444, 446) includes a first detected touch location near an edge of the touch-sensitive display; filtering touch data associated with the moving touch based on a direction between ones of the consecutive touch locations (442, 444, 446), wherein filtering comprises determining an expected direction of the moving touch based on the first detected touch location of the plurality of consecutive touch locations (442, 444, 446) and the edge of the touch-sensitive display that is near the first detected touch location, and discarding touch data for a second one of the plurality of consecutive touch locations (442, 444, 446) when the second one is in a direction, from the first detected touch location, that is generally opposite the expected direction; identifying, based on the filtered touch data, when the moving touch is a first gesture type that has an origin at a location on the electronic device that is non-touch-sensitive, based on touch attributes including a time between detecting the moving touch at consecutive ones of the filtered touch locations (442, 446) and a distance between consecutive ones of the filtered touch locations (442, 446), wherein the moving touch is identified as the first gesture type when the time between detecting the moving touch at the consecutive ones of the filtered touch locations (442, 446) is within a threshold time and the distance between the consecutive ones of the filtered touch locations (442, 446) is equal to or greater than a threshold distance.