1. An electronic device having a touch panel, the touch panel comprising: a first touch area that is responsive to a stationary touch and corresponds to a first function; a second touch area that is responsive to a sliding touch and corresponds to a second function; and an overlapped touch area, comprising at least part of the first touch area and at least part of the second touch area; wherein when a touch input on the touch panel is started from the overlapped touch area, a touch time of the touch input is within a threshold time, and a moving distance of the touch input exceeds a threshold distance, the overlapped touch area is set to correspond to the second function.