CN111766986B - Method and device for performing touch operation on terminal - Google Patents

Method and device for performing touch operation on terminal Download PDF

Info

Publication number
CN111766986B
CN111766986B CN201910412003.9A CN201910412003A CN111766986B CN 111766986 B CN111766986 B CN 111766986B CN 201910412003 A CN201910412003 A CN 201910412003A CN 111766986 B CN111766986 B CN 111766986B
Authority
CN
China
Prior art keywords
touch
page
distance
terminal
touch instruction
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
CN201910412003.9A
Other languages
Chinese (zh)
Other versions
CN111766986A (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201910412003.9A priority Critical patent/CN111766986B/en
Publication of CN111766986A publication Critical patent/CN111766986A/en
Application granted granted Critical
Publication of CN111766986B publication Critical patent/CN111766986B/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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04808Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen

Abstract

The invention discloses a method and a device for performing touch operation on a terminal, and relates to the technical field of computers. One embodiment of the method comprises: receiving a first touch instruction triggered by two touch points on a page of the terminal, and calculating a first distance between the two touch points; receiving a second touch instruction triggered by the two touch points on the page, and calculating a second distance between the two touch points; closing the page when an absolute value of a difference between the second distance and the first distance is greater than a distance threshold. According to the implementation mode, the page can be closed conveniently and quickly through the touch instruction, and the user experience is improved.

Description

Method and device for performing touch operation on terminal
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for performing touch operation on a terminal.
Background
With the development of computer technology, the types of applications configurable by the terminal are more and more, and the functions of each application are more and more, so that a user can enter main interfaces of different applications from a main interface of the terminal and enter pages corresponding to different functions from the main interface of the application.
When a user wants to close a page or return to the main interface, the user needs to click a function key located at a fixed position on the screen to close the page corresponding to the real-time application function or return to the main interface.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
when the number of pages opened by the user is large, the user needs to continuously click the function key located at the fixed position for many times when closing the pages or returning to the main interface, and the operation is tedious and tedious, so that the user experience is low.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for performing a touch operation on a terminal, which can conveniently and quickly close a page through a touch instruction and return to a main interface, thereby improving user experience.
In order to achieve the above object, according to an aspect of the embodiments of the present invention, there is provided a method for performing a touch operation on a terminal, including:
receiving a first touch instruction triggered by two touch points on a page of the terminal, and calculating a first distance between the two touch points;
receiving a second touch instruction triggered by the two touch points on the page, and calculating a second distance between the two touch points;
closing the page when an absolute value of a difference between the second distance and the first distance is greater than a distance threshold.
Optionally, when the page is an application page, closing the page refers to exiting the application.
Optionally, when the page is a main interface, the closing of the page refers to returning to a previous page of the page or the main interface of the application.
Optionally, the closing the page refers to performing screen locking processing on the terminal.
Optionally, the touch operation method further includes: and calculating the second distance when the second touch instruction is received within a time threshold value from the receiving of the first touch instruction.
Optionally, the touch operation method further includes:
the first touch instruction and the second touch instruction are received within a predefined area of the page.
According to a second aspect of the embodiments of the present invention, there is provided an apparatus for performing a touch operation on a terminal, including: the device comprises a first distance calculation module, a second distance calculation module and a processing module; wherein the content of the first and second substances,
the first distance calculation module is used for receiving a first touch instruction triggered by two touch points on a page of the terminal and calculating a first distance between the two touch points;
the second distance calculation module is configured to receive a second touch instruction triggered by the two touch points on the page, and calculate a second distance between the two touch points;
the processing module is configured to close the page when an absolute value of a difference between the second distance and the first distance is greater than a distance threshold.
Optionally, when the page is an application page, the processing module is configured to close the application or back to a previous page of the page or back to a main interface of the application.
Optionally, the processing module is configured to perform screen locking processing on the terminal.
Optionally, the second distance calculating module is configured to calculate the second distance when the second touch instruction is received within a time threshold after the first touch instruction is received.
Optionally, the first touch instruction and the second touch instruction are received within a predefined area of the page.
According to a third aspect of embodiments of the present invention, there is provided an apparatus, comprising: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out the method according to any one of the preceding first aspects.
According to a fourth aspect of embodiments of the present invention, there is provided a computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method according to any one of the first aspect.
One embodiment of the above invention has the following advantages or benefits: when a first touch instruction triggered by two touch points on a terminal page is received, calculating a first distance between the two touch points. And when a second touch instruction which is triggered again on the terminal page by the two touch points is received, calculating a second distance between the two touch points. And when the absolute value of the difference value between the second distance and the first distance is larger than the distance threshold, closing the page of the terminal. Therefore, the page can be conveniently and quickly closed through the touch instruction, and the user experience is favorably improved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic flowchart illustrating a method for performing a touch operation on a terminal according to an embodiment of the present invention;
fig. 2 is a schematic flowchart illustrating a method for performing a touch operation on a terminal according to another embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for performing a touch operation on a terminal according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for performing a touch operation on a terminal according to an embodiment of the present invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 6 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
As shown in fig. 1, an embodiment of the present invention provides a method for performing a touch operation on a terminal, where the method may include the following steps S101 to S103:
step S101: receiving a first touch instruction triggered by two touch points on a page of the terminal, and calculating a first distance between the two touch points.
The two touch points may be two fingers of a user or two touch ends of a touch pen.
In order to facilitate calculation of the first distance, a rectangular coordinate system may be established on the page of the terminal, where the width direction of the terminal screen is taken as an x-axis, the length direction of the terminal screen is taken as a y-axis, and the center or one inflection point of the terminal screen is taken as an origin of coordinates. When two touch points trigger a first touch instruction on a page of the terminal, coordinates of the two touch points on a rectangular coordinate system can be respectively determined, for example, the coordinates of the two touch points a and B are respectively a (x) 1a ,y 1a ),B(x 1b ,y 1b ) Then, a first distance S1 between the two touch points a and B is calculated according to the coordinates of the two touch points a and B.
Step S102: and receiving a second touch instruction triggered by the two touch points on the page, and calculating a second distance between the two touch points.
When a second touch instruction triggered by two touch points on the page is received, the coordinates of the two touch points on the same rectangular coordinate system as the first touch instruction is triggered can be determined, for example, when the second touch instruction is triggered, the coordinates of the two touch points a and B are respectively a (x) when the second touch instruction is triggered 2a ,y 2a ),B(x 2b ,y 2b ) Then, a second distance S2 between the two touch points a and B is calculated from the coordinates of the two touch points a and B at this time.
It is understood that the first touch command and the second touch command may be triggered continuously or discontinuously. The continuously triggered first touch instruction and second touch instruction mean that two touch points do not leave the touch screen of the terminal between the input of the first touch instruction and the second touch instruction, when the two touch points contact the touch screen of the terminal for the first time, the two touch points are considered to input the first touch instruction, and the process that the two touch points slide on the touch screen of the terminal is considered to continuously input the second touch instruction. The first touch instruction and the second touch instruction triggered discontinuously mean that the two touch points leave the touch screen of the terminal after inputting the first touch instruction, and when the two touch points contact the touch screen again, the second touch instruction is input.
In order to ensure the accuracy of the touch operation, the method for performing the touch operation on the terminal provided by the embodiment of the invention further comprises the following steps: and calculating the second distance when the second touch instruction is received within a time threshold value from the receiving of the first touch instruction. That is, when the time interval between the receiving of the second touch instruction and the receiving of the first touch instruction is not greater than the time threshold, the second distance corresponding to the second touch instruction is calculated. Therefore, misoperation of the terminal caused by unconsciously inputting the touch instruction when a user browses a page can be avoided, and the accuracy of touch operation is improved.
Based on this, in the method for performing touch operation on a terminal provided in the embodiment of the present invention, before step S103, steps S201 to S205 shown in fig. 2 may be included:
step S201: receiving a first touch instruction triggered by two touch points on a page of the terminal, and calculating a first distance between the two touch points.
Step S202: and recording the trigger moment of receiving the first touch instruction.
Step S203: and judging whether the duration between the trigger time and the current time is smaller than a time threshold in real time, if so, executing the step S204, and otherwise, ending the current process.
Step S204: and monitoring whether a second touch instruction triggered by the two touch points on the page is received, if so, executing step S205, otherwise, executing step 203.
Step S205: and calculating a second distance between the two touch points when the second touch instruction is input.
Step S103: closing the page when an absolute value of a difference between the second distance and the first distance is greater than a distance threshold.
Taking two touch points as two fingers of a user as an example, the user can input a first touch instruction and a second touch instruction by contraction or amplification of the two fingers on a touch screen of the terminal, when the two fingers contract on the touch screen, it is indicated that a first distance corresponding to the first touch instruction is greater than a second distance corresponding to the second touch instruction, and when the two fingers amplify on the touch screen, it is indicated that the first distance corresponding to the first touch instruction is less than the second distance corresponding to the second touch instruction. And when the absolute value of the difference between the first distance and the second distance is greater than the distance threshold, closing the page of the terminal, namely, the user can perform contraction or amplification operation through the movement of two fingers on the touch screen of the terminal, so that the operation of closing the page of the terminal is realized.
When a user inputs a first touch instruction and a second touch instruction on different pages, the touch operation device provided by the embodiment of the invention can execute different operations on the terminal.
In order to prevent unintended erroneous operation by the user, the distance threshold may be set to a large value, for example, 200 pixels. In an embodiment of the present invention, when the page is an application page, the closing the page refers to exiting the application. That is to say, when the first touch instruction and the second touch instruction are input by the two touch points on the application page, and the absolute value of the difference between the second distance corresponding to the second touch instruction and the first distance corresponding to the first touch instruction is greater than the distance threshold, the finish () method may be invoked to exit the application to which the application page belongs, and return to the main interface of the terminal.
Of course, the closing page may also be set to return to the main interface of the application to which the application page belongs, that is, when the page is the application page, the closing page refers to returning to the main interface of the application. In addition, the closed page can also be set to be returned to the upper level page. The specific operation corresponding to closing the page may be customized by a user, for example, the first touch instruction and the second touch instruction triggered continuously are set to correspond to an operation of backing to the main interface of the application, the first touch instruction triggered continuously may also be set to correspond to an operation of backing to the main interface of the terminal, and the first touch instruction and the second touch instruction triggered discontinuously may also be set to correspond to an operation of backing to a previous page of the page.
The method for performing touch operation on a terminal provided by the embodiment of the present invention is described in detail below by taking a use process of the application M as an example. In this example, closing the page refers to returning to the main interface of the terminal. When a user uses the application M, firstly, an icon corresponding to the application M is clicked on a main interface of the terminal to enter the main interface of the application M, then, the main interface of the application M is searched through a keyword K, a page of the terminal jumps to a search result page corresponding to the keyword K, and when the user clicks an item N in the search result page, a detail page corresponding to the item N is entered. If the user wants to return to the main interface of the terminal from the detail page corresponding to the item N, the user can quickly return to the main interface of the terminal by inputting the first touch instruction and the second touch instruction.
In addition, the closing of the page may also refer to performing screen locking processing on the terminal. The user can pre-define that the screen locking operation of the terminal is executed when the first touch instruction and the second touch instruction of which the absolute value of the difference value of the input distances of any page is greater than the distance threshold value. It can also be defined that the screen locking operation is executed only when the first touch instruction and the second touch instruction are input into the specific page. For example, the method may be configured to call a LockNow screen lock command to execute the screen lock operation when the first touch instruction and the second touch instruction have the absolute value of the difference between the input distances of the main interface of the terminal or the main interface of the application greater than the distance threshold. Therefore, the screen locking operation of the terminal is achieved by receiving the touch instruction, a button screen locking mode in the prior art is replaced, and the improvement of user experience is facilitated.
After the screen is locked, the user can call the authentication interface by inputting the third touch instruction again, and the user enters the terminal main interface after passing the authentication. For example, if the user triggers the authentication icon of the terminal main interface by inputting the third touch instruction, the device for performing touch operation on the terminal according to the embodiment of the present invention may call the authentication interface according to the triggered authentication icon, and display the authentication interface, so as to receive the authentication information input by the user through the authentication interface, and then verify the authentication information, and when the verification passes, the main interface of the terminal may be displayed to the user.
In addition, when any page does not receive any touch instruction within a time threshold, a LockNow screen locking command can be called to execute screen locking and end the current process, so that illegal login is avoided, and the operation safety is improved.
In one embodiment, whether to perform the page closing operation is determined according to the first touch instruction and the second touch instruction, and the area operated by the first touch instruction and the second touch instruction may not be limited. In another embodiment, it may be limited that when the first touch command and the second touch command are operated on the predefined area, whether the page closing operation is performed is determined according to the first touch command and the second touch command. That is, if the first touch instruction and the second touch instruction are received within a predefined area of the page, the page is closed when an absolute value of a difference between the second distance and the first distance is greater than a distance threshold. The embodiment improves the accuracy of touch operation.
The following describes in detail a method for performing touch operation on a terminal according to an embodiment of the present invention, taking closing a page as an example of returning to a main interface of an application, where as shown in fig. 3, the method may include the following steps:
step S301: receiving a first touch instruction triggered by two touch points on an application page of the terminal, and calculating a first distance between the two touch points.
Step S302: and recording the trigger moment of receiving the first touch instruction.
Step S303: and judging whether the duration between the trigger time and the current time is smaller than a time threshold in real time, if so, executing step S304, otherwise, executing step S305.
Step S304: and monitoring whether a second touch instruction triggered by the two touch points on the application page is received, if so, executing step S306, otherwise, executing step 303.
Step S305: and carrying out screen locking processing on the terminal and ending the current process.
Step S306: and calculating a second distance between the two touch points when the second touch instruction is input.
Step S307: and judging whether the absolute value of the difference value between the first distance and the second distance is larger than a distance threshold value, if so, executing step S308, otherwise, executing step S303.
Step S308: and returning to the main interface of the application.
As shown in fig. 4, an embodiment of the present invention further provides an apparatus 400 for performing a touch operation on a terminal, including: a first distance calculation module 401, a second distance calculation module 402 and a processing module 403; wherein, the first and the second end of the pipe are connected with each other,
the first distance calculation module 401 is configured to receive a first touch instruction triggered by two touch points on a page of the terminal, and calculate a first distance between the two touch points;
the second distance calculating module 402 is configured to receive a second touch instruction triggered by the two touch points on the page, and calculate a second distance between the two touch points;
the processing module 403 is configured to close the page when an absolute value of a difference between the second distance and the first distance is greater than a distance threshold.
Optionally, when the page is an application page, the processing module 403 is configured to close the application and return to the home interface.
Optionally, when the page is a main interface, the processing module 403 is configured to perform screen locking processing on the terminal.
Optionally, the second distance calculating module 402 is configured to calculate the second distance when the second touch instruction is received within a time threshold after the first touch instruction is received.
Optionally, the first touch instruction and the second touch instruction are received within a predefined area of the page.
A third aspect of an embodiment of the present invention further provides an apparatus, including: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out the method according to any one of the preceding first aspects.
An embodiment of the present invention further provides a computer-readable medium, on which a computer program is stored, where the computer program is configured to, when executed by a processor, implement the method according to any one of the above first aspects.
Fig. 5 shows an exemplary system architecture 500 of a method for touch operation on a terminal or an apparatus for touch operation on a terminal, to which embodiments of the present invention may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 serves to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. Network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 501, 502, 503 to interact with a server 505 over a network 504 to receive or send messages or the like. The terminal devices 501, 502, 503 may have various communication client applications installed thereon, such as a shopping application, a web browser application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 501, 502, 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 505 may be a server that provides various services, such as a background management server that supports shopping websites browsed by users using the terminal devices 501, 502, 503. The background management server can analyze and process the received data such as the product information query request and the like, and feed back the processing result to the terminal equipment.
It should be noted that the method for performing touch operation on the terminal provided by the embodiment of the present invention is generally executed by the server 505, and accordingly, the apparatus for performing touch operation on the terminal is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks, and servers in fig. 5 are merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use with a terminal device implementing an embodiment of the invention is shown. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU) 601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a first distance calculation module, a second distance calculation module, and a processing module. The names of these modules do not in some cases constitute a limitation on the module itself, and for example, the first distance calculation module may also be described as a "module that calculates the first distance between the two touch points".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: receiving a first touch instruction triggered by two touch points on a page of the terminal, and calculating a first distance between the two touch points; receiving a second touch instruction triggered by the two touch points on the page, and calculating a second distance between the two touch points; closing the page when an absolute value of a difference between the second distance and the first distance is greater than a distance threshold.
According to the technical scheme of the embodiment of the invention, when a first touch instruction triggered by two touch points on a terminal page is received, a first distance between the two touch points is calculated. And when a second touch instruction which is triggered again on the terminal page by the two touch points is received, calculating a second distance between the two touch points. And when the absolute value of the difference value between the second distance and the first distance is larger than the distance threshold, closing the page of the terminal. Therefore, the touch control instruction is input through zooming of the fingers, so that the page can be conveniently and quickly closed, and the user experience can be improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (6)

1. A method for performing touch operation on a terminal is characterized by comprising the following steps:
receiving a first touch instruction triggered by two touch points on a page of the terminal, and calculating a first distance between the two touch points;
receiving a second touch instruction triggered by the two touch points on the page within a time threshold from the receiving of the first touch instruction, and calculating a second distance between the two touch points;
closing the page when the absolute value of the difference between the second distance and the first distance is greater than a distance threshold;
wherein said closing said page comprises: quitting the application, quitting to a previous page of the page or a main interface of the application, or locking the screen of the terminal;
the operation of closing the page corresponds to a first touch instruction and/or a second touch instruction;
the first touch instruction and the second touch instruction are triggered discontinuously.
2. The method of claim 1, further comprising:
the first touch instruction and the second touch instruction are received within a predefined area of the page.
3. A device for performing touch operation on a terminal is characterized by comprising: the device comprises a first distance calculation module, a second distance calculation module and a processing module; wherein the content of the first and second substances,
the first distance calculation module is used for receiving a first touch instruction triggered by two touch points on a page of the terminal and calculating a first distance between the two touch points;
the second distance calculation module is configured to receive a second touch instruction triggered by the two touch points on the page within a time threshold from the reception of the first touch instruction, and calculate a second distance between the two touch points;
the processing module is configured to close the page when an absolute value of a difference between the second distance and the first distance is greater than a distance threshold;
the processing module is used for closing the application, returning to a previous page of the page or returning to a main interface of the application, and locking the screen of the terminal; the operation of closing the page corresponds to a first touch instruction and/or a second touch instruction;
the first touch instruction and the second touch instruction are triggered discontinuously.
4. The apparatus of claim 3,
the first touch instruction and the second touch instruction are received in a predefined area of the page.
5. An apparatus, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-2.
6. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-2.
CN201910412003.9A 2019-05-17 2019-05-17 Method and device for performing touch operation on terminal Active CN111766986B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910412003.9A CN111766986B (en) 2019-05-17 2019-05-17 Method and device for performing touch operation on terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910412003.9A CN111766986B (en) 2019-05-17 2019-05-17 Method and device for performing touch operation on terminal

Publications (2)

Publication Number Publication Date
CN111766986A CN111766986A (en) 2020-10-13
CN111766986B true CN111766986B (en) 2023-04-07

Family

ID=72718755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910412003.9A Active CN111766986B (en) 2019-05-17 2019-05-17 Method and device for performing touch operation on terminal

Country Status (1)

Country Link
CN (1) CN111766986B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719046A (en) * 2009-11-30 2010-06-02 广东威创视讯科技股份有限公司 Multi-point touch-based image operation interaction system and multi-point touch-based image operation interaction method
JP2012053543A (en) * 2010-08-31 2012-03-15 Canon Inc Information processor and control method thereof
CN105278758A (en) * 2014-07-14 2016-01-27 中国移动通信集团浙江有限公司 Electronic reading control method and apparatus as well as touch screen device
CN109085974A (en) * 2018-07-17 2018-12-25 广州视源电子科技股份有限公司 A kind of screen control method, system and terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719046A (en) * 2009-11-30 2010-06-02 广东威创视讯科技股份有限公司 Multi-point touch-based image operation interaction system and multi-point touch-based image operation interaction method
JP2012053543A (en) * 2010-08-31 2012-03-15 Canon Inc Information processor and control method thereof
CN105278758A (en) * 2014-07-14 2016-01-27 中国移动通信集团浙江有限公司 Electronic reading control method and apparatus as well as touch screen device
CN109085974A (en) * 2018-07-17 2018-12-25 广州视源电子科技股份有限公司 A kind of screen control method, system and terminal device

Also Published As

Publication number Publication date
CN111766986A (en) 2020-10-13

Similar Documents

Publication Publication Date Title
CN104808983A (en) Application program push method and server
CN104809174A (en) Opening method of terminal application
CN111597467A (en) Display method and device and electronic equipment
WO2019218688A1 (en) Method and device for displaying information and searching information
CN104765525A (en) Operation interface switching method and device
CN111400625A (en) Page processing method and device, electronic equipment and computer readable storage medium
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN110806834A (en) Information processing method and device based on input method, electronic equipment and medium
US20230085932A1 (en) Method and apparatus for sharing information, storage medium, and electronic device
CN111766986B (en) Method and device for performing touch operation on terminal
CN113778270A (en) Method and device for dragging icon
CN109150928A (en) Method and apparatus for handling request
US20130339354A1 (en) Method and system for mining trends around trending terms
CN110717126A (en) Page browsing method and device, electronic equipment and computer readable storage medium
US20160098260A1 (en) Single gesture access to an operating system menu to initiate operations related to a currently executing application
CN113672885B (en) Application authorization method and device and electronic equipment
CN115470432A (en) Page rendering method and device, electronic equipment and computer readable medium
US20150219746A1 (en) Determining a geographic location of a computing device
CN114416264A (en) Message display method and device
CN111353296B (en) Article processing method, apparatus, electronic device and computer readable storage medium
CN115022266A (en) Group member adding method, device, equipment and medium
US9959282B2 (en) Method, apparatus, and electronic device for file management
CN113010059A (en) Application icon management method and device and electronic equipment
CN111857917A (en) Interaction method, device, equipment and medium
CN111090721B (en) Question answering method and device and electronic equipment

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