CN108287658B - Mobile terminal control touch processing method, storage device and mobile terminal - Google Patents

Mobile terminal control touch processing method, storage device and mobile terminal Download PDF

Info

Publication number
CN108287658B
CN108287658B CN201810103301.5A CN201810103301A CN108287658B CN 108287658 B CN108287658 B CN 108287658B CN 201810103301 A CN201810103301 A CN 201810103301A CN 108287658 B CN108287658 B CN 108287658B
Authority
CN
China
Prior art keywords
touch
mobile terminal
point
track
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810103301.5A
Other languages
Chinese (zh)
Other versions
CN108287658A (en
Inventor
俞斌
杨维琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201810103301.5A priority Critical patent/CN108287658B/en
Publication of CN108287658A publication Critical patent/CN108287658A/en
Application granted granted Critical
Publication of CN108287658B publication Critical patent/CN108287658B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Input By Displaying (AREA)

Abstract

The invention discloses a touch processing method of a mobile terminal control, a storage device and a mobile terminal, wherein the touch processing method of the mobile terminal control comprises the following steps: when detecting that a key control preset in the mobile terminal is touched, acquiring a touch point on a touch screen of the mobile terminal and a touch track formed by the touch point; judging whether the distance between all touch points before the touch point separated from the last touch point by the preset point is smaller than a distance threshold value or not, if so, judging that the current touch track is a backtracking track; and if the current touch track is a backtracking track, executing the operation corresponding to the key control. According to the method and the device, after the user presses the key control preset by the mobile terminal, the operation corresponding to the key control is executed only when the backtracking track is detected, so that the user can be prevented from touching the key control by mistake.

Description

Mobile terminal control touch processing method, storage device and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a touch processing method of a mobile terminal control, a storage device and a mobile terminal.
Background
The touch screen is widely used in the mobile terminal, all operations of most intelligent mobile terminals in the current market can be realized through the touch screen, and the appearance structure design of the mobile terminal tends to be larger and larger, and the front face of the mobile terminal is almost an effective operation area of the touch screen; in addition, with the continuous maturity of touch screen technology, the response speed of the touch screen is more sensitive. The characteristics of the mobile terminal bring more abundant touch experience for a user when using the mobile terminal, and also bring trouble of easy mistaken touch, especially in some key operations, if careless touch occurs, serious consequences are caused. For example, when sending an important mail, if the contents are not input, the user touches 'send' by mistake to send the mail; the user is lost due to the fact that the user touches the phone by mistake in the phone call state to hang up the phone and the like.
Therefore, the prior art still needs to be improved and developed to address the above drawbacks.
Disclosure of Invention
In view of the defects of the prior art, the present invention provides a touch processing method for a control of a mobile terminal, a storage device and a mobile terminal, and aims to solve the problem that a touch screen of a mobile terminal in the prior art is prone to generate a false touch.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a touch processing method for a mobile terminal control comprises the following steps:
when detecting that a key control preset in the mobile terminal is touched, acquiring a touch point on a touch screen of the mobile terminal and a touch track formed by the touch point;
judging whether the distance between all touch points before the touch point separated from the last touch point by the preset point is smaller than a distance threshold value or not, if so, judging that the current touch track is a backtracking track;
and if the current touch track is a backtracking track, executing the operation corresponding to the key control.
Further, the step of determining whether the distance from the last touch point to the touch point before the touch point spaced by the predetermined point from the last touch point is smaller than the distance threshold value, and if so, the step of determining that the current touch trajectory is the backtrack trajectory specifically includes:
let the touch points on the current touch track be P respectively0P1P2…PN-1PN,PKIs P0And PN-MK and M are natural numbers greater than 1, and N is greater than M, calculating PKAnd PNThe formula of the distance between is:
Figure BDA0001567071540000021
wherein, XPKIs a touch point PKAbscissa of (a), YPKIs a touch point PKOrdinate of (3), XPNIs a touch point PNAbscissa of (a), YPNIs the ordinate of the touch point PN, if PKAnd PNIf the distance between the touch trajectory and the touch trajectory is smaller than the distance threshold, the current touch trajectory is a backtracking trajectory.
Further, if the current touch trajectory is a backtracking trajectory, the step of executing the operation corresponding to the key control further includes:
if the current touch track is the backtracking track, the distance threshold value is modified to be 99% of the current distance threshold value;
if the current touch trajectory is not the backtracking trajectory, the distance threshold is modified to 101% of the current distance threshold.
Further, if the current touch trajectory is a backtracking trajectory, the step of executing the operation corresponding to the key control further includes:
if the current touch track is a backtracking track, P is calculated respectively0P1P2…PN-MThese points and PNIf the distance threshold is not ranked at the top 10%, the distance threshold is modified to be 99% of the current distance threshold and/or the current value of M is modified to be M + 1.
Further, the step of determining whether the distance from the last touch point to the touch point before the touch point separated from the last touch point by the predetermined point is smaller than the distance threshold value, and if so, the current touch trajectory is a backtrack trajectory further includes:
and after the Mth touch point is detected, judging whether the current touch track forms a backtracking track or not every time one touch point is detected.
Further, the touch point P0And the coordinate point of the key control is taken as the coordinate point of the key control.
Further, the distance threshold is 50 pixels.
Further, when it is detected that the key control of the mobile terminal is touched, the step of obtaining a touch point on the touch screen of the mobile terminal and a touch track formed by the touch point further includes:
and setting a key control on the mobile terminal in advance.
The present invention also provides a storage device, which stores a computer program, wherein the computer program can be executed to implement the touch processing method for the mobile terminal control as described above.
The present invention also provides a mobile terminal, comprising: the mobile terminal control touch processing method comprises a processor and a storage device which is in communication connection with the processor, wherein the storage device stores a computer program, and the computer program is used for realizing the mobile terminal control touch processing method when being executed by the processor;
the processor is used for calling a computer program in the storage device to execute the mobile terminal control touch processing method.
The invention provides a touch processing method of a mobile terminal control, a storage device and a mobile terminal, wherein the touch processing method of the mobile terminal control comprises the following steps: when detecting that a key control preset in the mobile terminal is touched, acquiring a touch point on a touch screen of the mobile terminal and a touch track formed by the touch point; judging whether the distance between all touch points before the touch point separated from the last touch point by the preset point is smaller than a distance threshold value or not, if so, judging that the current touch track is a backtracking track; and if the current touch track is a backtracking track, executing operation corresponding to the key control. According to the method and the device, after the user presses the key control preset by the mobile terminal, the operation corresponding to the key control is executed only when the backtracking track is detected, so that the user can be prevented from touching the key control by mistake.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application in a non-limiting sense. In the drawings:
fig. 1 is a flowchart of a touch processing method for a mobile terminal control according to a preferred embodiment of the present invention.
Fig. 2 is a block diagram of a mobile terminal according to a preferred embodiment of the present invention.
Detailed Description
Embodiments of the present application will be described in detail with reference to the accompanying drawings and examples, so that how to apply technical means to solve technical problems and achieve technical effects of the present application can be fully understood and implemented.
The mobile terminal comprises a terminal with a touch screen, such as a smart phone, a tablet personal computer and the like, when a user touches a key control on the touch screen, the operation corresponding to the key control is not immediately executed, but the touch point of the user after touching the key control is detected, and when the trace formed by the touch point is detected to be a backtracking trace, the operation corresponding to the key control is executed, so that the user can be prevented from mistakenly touching. For example, a sending key of the mail is set as a key control, when the user clicks the sending key, the mail is not sent immediately, and the operation of sending the mail is executed after the backtracking track is detected, so that the loss caused by mistaken touch to the user can be avoided, and the user experience is improved.
Fig. 1 is a flowchart of a preferred embodiment of a method for processing a touch of a control of a mobile terminal according to the present invention, and as shown in fig. 1, the method for processing a touch of a control of a mobile terminal according to the present invention includes the following steps:
step S100, when detecting that a key control preset in the mobile terminal is touched, acquiring a touch point on a touch screen of the mobile terminal and a touch track formed by the touch point.
Specifically, the key control of the mobile terminal can be set by the user, or can be set during production of the mobile terminal, for example, sending keys of APPs such as mails, short messages, QQ, WeChat and the like can be set as the key control, when the sending key is detected to be touched by the user, sending operation is not executed first, after the sending key is touched, a touch point where the user touches the touch screen of the mobile terminal and a track formed by the touch point are detected, when the touch track meets a preset condition, sending operation is executed, otherwise, mistaken touch is judged, and sending operation is not executed.
Step S200, judging whether the distance between all touch points before the touch point separated from the last touch point by the preset point is smaller than the distance threshold value, if so, the current touch track is the backtrack track.
In a further embodiment, the step S200 specifically includes:
setting touch point points on current touch trackIs other than P0P1P2…PN-1PN,PKIs P0And PN-MK and M are natural numbers greater than 1, and N is greater than M, calculating PKAnd PNThe formula of the distance between is:
Figure BDA0001567071540000051
wherein, XPKIs a touch point PKAbscissa of (a), YPKIs a touch point PKOrdinate of (3), XPNIs a touch point PNAbscissa of (a), YPNIs a touch point PNOn the ordinate of, if PKAnd PNIf the distance between the touch trajectory and the touch trajectory is smaller than the distance threshold, the current touch trajectory is a backtracking trajectory.
In particular, P is to sayN-MAnd the last touch point PNAt a distance of M touch points, at PN-MAmong the previous touch points, i.e. P0And PN-MIn any touch point, only one touch point and PNThe distance between the touch points is smaller than the distance threshold value, and the current touch track can be judged to be a backtracking track. The M value is set to prevent P from being caused by jitter during touchNAnd PN-M、…、PN-1These touch point contacts form a backtracking trajectory trigger touch active, preferably, M is 10.
In a further embodiment, the step S200 may further include:
and after the Mth touch point is detected, judging whether the current touch track forms a backtracking track or not every time one touch point is detected.
Specifically, in order to make the determination process faster, the determination may be performed after the number of touch points reaches M, and after the number of touch points reaches M, it is determined whether a backtracking track is formed in the current touch track once every time one touch point is detected. Why is the touch point not judged within M? Touch point P because the touch points are within MNIs less than M, thenWill not have PN-MThis point cannot be determined.
And step S300, if the current touch track is a backtracking track, executing operation corresponding to the key control.
In a further embodiment, after the step S300, the method further includes:
if the current touch track is the backtracking track, the distance threshold value is modified to be 101% of the current distance threshold value;
if the current touch trajectory is not the backtracking trajectory, the distance threshold is modified to 99% of the current distance threshold.
Specifically, a distance threshold is set as D, whether a backtracking track is formed by each touch operation on the key control is determined, if a backtracking track is formed, the current value of D is modified to D × 99%, that is, the modified distance threshold D 'is D × 99%, for example, if the current value of D is 100, D' is 99 when determining whether a backtracking track is formed next time after modification, that is, when determining that a backtracking track is formed, it is determined that the current value of D is too large, and P is too largeKAnd PNThe distance between the two is easily smaller than D, and then the value of D needs to be reduced; if no backtracking track is formed, the current value D is modified to D101%, that is, the modified distance threshold value D 'is D101%, for example, if the current value D is 100, then D' is 101 when determining whether a backtracking track is formed next time after modification, that is, when determining that a backtracking track is not formed, it means that the current value D is too small, P is too small, and P is not formedKAnd PNThe distance between the two is difficult to be smaller than D, and the value of D is adjusted to be larger.
In a further embodiment, after the step S300, the method further includes:
if the current touch track is a backtracking track, P is calculated respectively0P1P2…PN-MThese points and PNIf the distance threshold is not ranked at the top 10%, the distance threshold is modified to be 101% of the current distance threshold and/or the current value of M is modified to be M + 1.
Specifically, after each judgment, D and M are adjusted according to the judgment condition, so that the difficulty in the next operation can be increased, and the false touch can be better avoided, because the difficulty that the trace formed by the next touch is judged to be the backtracking trace is increased by the method after the current value of D is modified to D × 99% and/or the current value of M is modified to M +1, and if the current trace is judged to be the backtracking trace easily, the current judgment method loses the original purpose of preventing the false touch.
In a further embodiment, the touch point P0And the coordinate point of the key control is taken as the coordinate point of the key control.
Specifically, the touch point P0Is the first point on the touch trajectory, touch point P0Touch point detection is triggered on the key control, i.e., when the key control is pressed.
In a further embodiment, the distance threshold is 50 pixels.
Specifically, the distance threshold D is 50 pixels, and the touch screen coordinates of the mobile terminal can be in one-to-one correspondence with the pixel points, that is, a pixel point coordinate system is adopted, so that P is calculatedKAnd PNIs also the distance between PKAnd PNIf the pixel point with the phase difference is found, P can be obtainedKAnd PNThe pixel points with the difference are compared with a distance threshold value D.
In a further embodiment, a key control needs to be set on the mobile terminal in advance. The key control comprises an APP sending key such as a mail, a short message, a QQ and a WeChat. The specific key control comprises which keys can be set by a user according to needs, and can also be preset by a mobile terminal manufacturer.
An embodiment of the present invention further provides a storage device, where the storage device stores a computer program, and the computer program can be executed to implement the method for touch processing of a control of a mobile terminal as described above.
Fig. 2 is a block diagram of a preferred embodiment of the mobile terminal of the present invention, and as shown in fig. 2, the mobile terminal of the present invention includes a processor 100 and a storage device 200 communicatively connected to the processor 100, where the storage device 200 stores a computer program, and the computer program is used to implement the method for processing touch of a control of the mobile terminal as described above when executed by the processor 100; the processor 100 is configured to call a computer program in the storage device 200 to execute the mobile terminal control touch processing method as described above.
In summary, the present invention provides a mobile terminal control touch processing method, a storage device and a mobile terminal, where the mobile terminal control touch processing method includes: when detecting that a key control preset at a mobile terminal is touched, acquiring a touch point on a touch screen of the mobile terminal and a touch track formed by the touch point; judging whether the distance between the touch point and the last touch point is smaller than a distance threshold value in all touch points before the touch point which is separated from the last touch point by a preset point, if so, judging that the current touch track is a backtrack track; and if the current touch track is a backtracking track, executing the operation corresponding to the key control. According to the method and the device, after the user presses the key control preset by the mobile terminal, the operation corresponding to the key control is executed only when the backtracking track is detected, so that the user can be prevented from touching the key control by mistake.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (9)

1. A touch processing method for a control of a mobile terminal is characterized by comprising the following steps:
when detecting that a key control preset in the mobile terminal is touched, acquiring a touch point on a touch screen of the mobile terminal and a touch track formed by the touch point; the touch point is a first point on the touch track;
judging whether the pixel difference between the touch point and the last touch point is smaller than a distance threshold value in all touch points before the touch point which is separated from the last touch point by a preset point, if so, judging that the current touch track is a backtrack track; all touch points and distance thresholds are represented by pixels;
if the current touch track is a backtracking track, executing operation corresponding to the key control, and modifying the distance threshold to be 99% of the current distance threshold;
if the current touch trajectory is not the backtracking trajectory, the distance threshold is modified to 101% of the current distance threshold.
2. The method according to claim 1, wherein the step of determining whether a pixel difference from a last touch point is smaller than a distance threshold in all touch points before a touch point separated from the last touch point by a predetermined point, and if so, the current touch trajectory is a backtrack trajectory specifically comprises:
let the touch points on the current touch track be P respectively0P1P2…PN-1PN,PKIs P0And PN-MK and M are natural numbers larger than 1, N is larger than M, and P is calculatedKAnd PNThe formula of the distance between is:
Figure FDA0002621720400000011
wherein, XPKIs a touch point PKAbscissa of (a), YPKIs a touch point PKOrdinate of (3), XPNIs a touch point PNAbscissa of (a), YPNIs the ordinate of the touch point PN, if PKAnd PNThe distance between the touch points is smaller than the distance threshold value, and then the current touch track is a backtrack track.
3. The method for touch processing of a control of a mobile terminal according to claim 2, wherein if the current touch trajectory is a backtracking trajectory, the step of executing the operation corresponding to the key control further includes:
if the current touch track is a backtracking track, P is calculated respectively0P1P2…PN-MThese points and pointsPNIf the distance threshold is not ranked at the top 10%, the distance threshold is modified to be 99% of the current distance threshold and/or the current value of M is modified to be M + 1.
4. The method according to claim 2, wherein the step of determining whether a pixel difference from the last touch point is smaller than a distance threshold in all touch points before the touch point separated from the last touch point by a predetermined point, and if so, the current touch trajectory is a backtrack trajectory further comprises:
and after the Mth touch point is detected, judging whether the current touch track forms a backtracking track or not every time one touch point is detected.
5. The touch processing method for the control of the mobile terminal according to claim 2, wherein the touch point P is a point of touch0And the coordinate point of the key control is taken as the coordinate point of the key control.
6. The mobile terminal control touch processing method according to claim 2, wherein the distance threshold is 50 pixels.
7. The method for touch processing of a control of a mobile terminal according to claim 1, wherein the step of obtaining a touch point on a touch screen of the mobile terminal and a touch trajectory formed by the touch point when the key control of the mobile terminal is detected to be touched further comprises:
and setting a key control on the mobile terminal in advance.
8. A storage device, characterized in that the storage device stores a computer program, the computer program can be executed to implement the mobile terminal control touch processing method according to any one of claims 1 to 7.
9. A mobile terminal, comprising: a processor, a storage device communicatively connected to the processor, the storage device storing a computer program, the computer program being configured to implement the mobile terminal control touch processing method according to any one of claims 1 to 7 when executed by the processor;
the processor is used for calling a computer program in the storage device to execute the mobile terminal control touch processing method according to any one of claims 1 to 7.
CN201810103301.5A 2018-02-01 2018-02-01 Mobile terminal control touch processing method, storage device and mobile terminal Active CN108287658B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810103301.5A CN108287658B (en) 2018-02-01 2018-02-01 Mobile terminal control touch processing method, storage device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810103301.5A CN108287658B (en) 2018-02-01 2018-02-01 Mobile terminal control touch processing method, storage device and mobile terminal

Publications (2)

Publication Number Publication Date
CN108287658A CN108287658A (en) 2018-07-17
CN108287658B true CN108287658B (en) 2020-10-27

Family

ID=62836277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810103301.5A Active CN108287658B (en) 2018-02-01 2018-02-01 Mobile terminal control touch processing method, storage device and mobile terminal

Country Status (1)

Country Link
CN (1) CN108287658B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189266B (en) * 2018-09-05 2021-10-08 芯海科技(深圳)股份有限公司 False touch prevention method and device for holding equipment, equipment and storage medium
CN111158520B (en) * 2019-12-25 2021-08-03 惠州Tcl移动通信有限公司 Control touch processing method and device, storage medium and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699400B (en) * 2015-03-06 2017-12-12 惠州Tcl移动通信有限公司 Track based on touch-screen surrounds icon central point angle detecting method and system
CN105138241B (en) * 2015-09-02 2018-09-18 Tcl移动通信科技(宁波)有限公司 A kind of application program launching method, system and mobile terminal based on mobile terminal
CN107390985A (en) * 2017-07-04 2017-11-24 Tcl移动通信科技(宁波)有限公司 Mobile terminal and its touch-screen input control method and storage medium

Also Published As

Publication number Publication date
CN108287658A (en) 2018-07-17

Similar Documents

Publication Publication Date Title
US10831314B2 (en) Method and electronic device for preventing touch button from being false triggered
US10394443B2 (en) Method for viewing message and user terminal
WO2018107898A1 (en) Method and device for preventing false triggering of touch button, terminal and storage medium
JP5651776B2 (en) User touch operation mode adaptation method and apparatus
CN109871174B (en) Virtual key display method and mobile terminal
CN106775282A (en) Operate the method and device of terminal
CN104967550A (en) Method and apparatus for displaying unread messages
CN105227759A (en) A kind of call recording method and user terminal
CN105162979B (en) A kind of incoming call mute control method and smartwatch
CN107422916A (en) A kind of response method of touch operation, device, storage medium and terminal
CN109683739B (en) Method and device for adjusting operation interface, storage medium and electronic equipment
CN108287658B (en) Mobile terminal control touch processing method, storage device and mobile terminal
CN111104001B (en) Method and device for preventing screen from being touched mistakenly, mobile terminal and storage medium
CN106919283A (en) The touch event processing method of terminal, device and terminal
CN106354416B (en) False touch prevention method and device
CN109669566B (en) Method and device for controlling report point output
CN110597437A (en) Screen capturing method and terminal equipment
CN105245672A (en) Method and system for rapidly calling contact
CN106791049A (en) A kind of notification message processing method and terminal
WO2017032069A1 (en) Text-message processing method and user terminal
CN107040657B (en) Method and device for preventing touch screen from being triggered mistakenly
CN103970434A (en) Method and electronic equipment for responding operation
CN106713572B (en) Data reporting control method, device and terminal
WO2020078344A1 (en) Method for identifying special-shaped touch, terminal and storage medium
US10318136B2 (en) Operation processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant