Method and terminal for responding to gesture acting on touch screen
暂无分享,去创建一个
The method comprises: a mobile terminal detecting a gesture on a touch screen, and starting recording change information about a pressure value of the gesture when the pressure value of the gesture exceeds a first threshold value P1; stopping recording the change information about the pressure value when the pressure value is lower than a second threshold value P2; parsing the recorded change information about the pressure value; when the parsing of the change information indicates that the gesture comprises at least two continuous valid screen presses, determining that the gesture matches a first instruction; and presenting a first graphical user interface on the touch screen in response to the first instruction. In this way, the accuracy of recognizing a pressure gesture can be improved, thereby avoiding the problem that it is difficult for a touch screen to distinguish long pressing from the pressure gesture.