CN108845756B - Touch operation method and device, storage medium and electronic equipment - Google Patents
Touch operation method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN108845756B CN108845756B CN201810725236.XA CN201810725236A CN108845756B CN 108845756 B CN108845756 B CN 108845756B CN 201810725236 A CN201810725236 A CN 201810725236A CN 108845756 B CN108845756 B CN 108845756B
- Authority
- CN
- China
- Prior art keywords
- sliding
- sliding track
- sub
- touch
- track
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
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)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the application provides a touch operation method, a touch operation device, a storage medium and electronic equipment, wherein the electronic equipment comprises a display screen, the display screen comprises a top edge and a bottom edge which are arranged oppositely, the display screen also comprises a side edge arranged between the top edge and the bottom edge, the display screen comprises a main display area and a side edge display area, and the side edge display area is arranged adjacent to the side edge; the touch operation method comprises the following steps: acquiring a sliding track of a user on a display screen; when the initial position of the sliding track is positioned in the side display area, acquiring the direction information of the sliding track; when the direction information comprises at least two sliding directions, acquiring a touch instruction corresponding to the sliding track according to the termination position of the sliding track; and executing corresponding touch operation on the electronic equipment according to the touch instruction. The electronic equipment is controlled without physical keys or multi-stage operation, so that the operation of a user is facilitated, and the operation efficiency of the electronic equipment is improved. The side display area is arranged on the side, so that the user can operate the device conveniently by one hand.
Description
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a touch operation method and apparatus, a storage medium, and an electronic device.
Background
With the rapid development of electronic technology, electronic devices such as smart phones have more and more functions. For example, the user may select to open a favorite application, set an interface of the electronic device, and turn on a function of the electronic device, such as a flashlight function.
During the use of the electronic device by the user, various instructions are often required to be issued to the electronic device. However, the positions of the various instructions are different, and some instructions are arranged under the multi-level menu, that is, the multi-level menu needs to be opened in sequence to select the corresponding instructions. The instruction selecting mode is complex to operate and low in efficiency.
Disclosure of Invention
The embodiment of the application provides a touch operation method, a touch operation device, a storage medium and electronic equipment, which can improve the operation efficiency of the electronic equipment.
The embodiment of the application provides a touch operation method, which is applied to electronic equipment, wherein the electronic equipment comprises a display screen, the display screen comprises a top edge and a bottom edge which are arranged oppositely, the display screen also comprises a side edge arranged between the top edge and the bottom edge, the display screen comprises a main display area and a side edge display area, and the side edge display area is arranged adjacent to the side edge; the touch operation method comprises the following steps:
acquiring a sliding track of a user on the display screen;
when the initial position of the sliding track is positioned in the side display area, acquiring direction information of the sliding track;
when the direction information comprises at least two sliding directions, acquiring a touch instruction corresponding to the sliding track according to the termination position of the sliding track;
and executing corresponding touch operation on the electronic equipment according to the touch instruction.
The embodiment of the application further provides a touch control operation device, which is applied to electronic equipment, wherein the electronic equipment comprises a display screen, the display screen comprises a top edge and a bottom edge which are arranged oppositely, the display screen further comprises a side edge arranged between the top edge and the bottom edge, the display screen comprises a main display area and a side edge display area, and the side edge display area is arranged adjacent to the side edge; the touch operation device comprises:
the sliding track acquisition module is used for acquiring a sliding track of a user on the display screen;
the sliding information acquisition module is used for acquiring the direction information of the sliding track when the initial position of the sliding track is positioned in the side edge display area;
the touch instruction acquisition module is used for acquiring a touch instruction corresponding to the sliding track according to the termination position of the sliding track when the sliding track comprises at least two sub-sliding tracks in the sliding direction;
and the processing module is used for executing corresponding touch operation on the electronic equipment according to the touch instruction.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer is enabled to execute the touch operation method.
The embodiment of the application further provides an electronic device, which comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor is used for executing the touch operation method by calling the computer program stored in the memory.
According to the touch operation method provided by the embodiment of the application, firstly, a sliding track of a user on a display screen is obtained; then when the initial position of the sliding track is positioned in the side display area, acquiring the direction information of the sliding track; then when the direction information comprises at least two sliding directions, acquiring a touch instruction corresponding to the sliding track according to the termination position of the sliding track; and finally, executing corresponding touch operation on the electronic equipment according to the touch instruction. The sliding track starting from the side edge display area comprises at least two sliding direction sub-sliding tracks, so that the existing sliding tracks can be obviously distinguished, special functions set by some systems or users can be realized, the electronic equipment does not need to be controlled through physical keys or multi-stage operation, the operation of the users is facilitated, and the operation efficiency of the electronic equipment is improved. The side display area is arranged on the side, so that the user can operate the device conveniently by one hand.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic diagram illustrating display area division of a touch display screen.
Fig. 2 is a flowchart illustrating a touch operation method according to an embodiment of the present disclosure.
Fig. 3 is a schematic view of a first application scenario of a touch operation method according to an embodiment of the present application.
Fig. 4 is a schematic view of a second application scenario of the touch operation method according to the embodiment of the present application.
Fig. 5 is a schematic view of a third application scenario of the touch operation method according to the embodiment of the present application.
Fig. 6 is a schematic diagram of a fourth application scenario of the touch operation method according to the embodiment of the present application.
Fig. 7 is a schematic view of a fifth application scenario of the touch operation method according to the embodiment of the present application.
Fig. 8 is a schematic view of a fifth application scenario of the touch operation method according to the embodiment of the present application.
Fig. 9 is another schematic diagram of the display area division of the touch display screen.
Fig. 10 is another schematic diagram of the display area division of the touch display screen.
Fig. 11 is a further schematic diagram of the display area division of the touch display screen.
Fig. 12 is another flowchart illustrating a touch operation method according to an embodiment of the present disclosure.
Fig. 13 is a schematic structural diagram of a touch operation device according to an embodiment of the present disclosure.
Fig. 14 is a schematic structural diagram of a first electronic device according to an embodiment of the present application.
Fig. 15 is a schematic structural diagram of a second electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
The terms "first," "second," "third," and the like in the description and in the claims of the present application and in the above-described drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the objects so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, or apparatus, electronic device, system comprising a list of steps is not necessarily limited to those steps or modules or units explicitly listed, may include steps or modules or units not explicitly listed, and may include other steps or modules or units inherent to such process, method, apparatus, electronic device, or system.
The embodiment of the application provides a touch operation method, which can be applied to electronic equipment. The electronic device may be a smartphone, a tablet computer, or the like.
Referring to fig. 1, the electronic device may include a display screen 10, where the display screen 10 includes a top side 101 and a bottom side 102 that are arranged oppositely, the display screen 10 further includes two side edges 103 arranged between the top side 101 and the bottom side 102, and the two side edges 103 are arranged oppositely, where the top side 101 may be a side where a top of the display screen displays an image, a status bar may be arranged on the top side 101, and information such as power, time, and the like may be displayed in the status bar. The display screen 10 may include a main display area 11 and a side display area 12, the main display area 11 and the side display area 12 being connected. The side display area 12 may be disposed at a side portion of the display screen 10 adjacent to one of the side edges 103. The main display area 11 may have a touch function and a display function, that is, the electronic device may display information such as characters and pictures in the main display area 11, and the user may perform a touch operation such as a click operation and a slide operation in the main display area 11 to control the electronic device.
The side display area 12 has a touch function and a display function, and a user can perform a touch operation such as a click operation, a slide operation, and the like in the side display area 12. In practical applications, the electronic device may include two side display areas 12, i.e., a left side touch display area and a right side touch display area. Referring to fig. 1, in some embodiments, the display screen 10 of the electronic device may include only one side touch display area, such as a left side touch display area or a right side touch display area.
In some embodiments, the side display area 12 may have a display function, that is, the side display area 12 may be a side touch display area. That is, the electronic device can display information such as text, pictures, etc. through the side display area 12. At this time, the side display area 12 may be an auxiliary display area of the main display area 11.
In some embodiments, the side display area 12 may also have no display function, that is, the side display area 12 only has a touch function, and is used as an auxiliary touch area of the main display area 11.
The shape of the side display area 12 can be set according to actual requirements; for example, in some embodiments, the display screen 10 may be a curved touch display screen, the side display area 12 may be an arc-shaped area, the electronic device may have the same function as the main display area 11 in the side display area 12, and a user may perform a touch operation in the main display area 11 or the side display area 12.
Based on the electronic device, in some embodiments, referring to fig. 2, the touch operation method may include the following steps:
and 101, acquiring a sliding track of a user on a display screen.
The sliding trajectory can be understood as: a region on the display screen is triggered, and the adjacent regions of the region are triggered in sequence at the same time until no adjacent region is triggered, and the regions are connected in sequence to form the sliding track.
And monitoring whether the display screen has a sliding track in real time, and triggering the next step when the display screen has the sliding track.
102, when the starting position of the sliding track is positioned in the side display area, acquiring the direction information of the sliding track.
And after the sliding track of the display screen is detected, acquiring the initial position of the sliding track. After obtaining the start position, it is determined whether the start position is located in the side display area 12, and if the start position is not located in the side display area 12, it may be a normal operation, such as switching between different desktops of the main screen. If the start position is within the side display area 12, it is considered that a specific operation is possible, and then direction information of the slide trajectory is acquired.
Specifically, the display screen comprises a plurality of touch points, each touch point can generate a trigger signal according to external pressure change or electric field change, and trigger operation of the display screen, such as clicking, double clicking, long pressing, sliding and the like, is obtained by monitoring each touch point in real time.
When the sliding track is detected, the direction information of the sliding track can be obtained through the triggering sequence of the touch points. And obtaining the triggering time sequence of the touch points, and obtaining the direction information of the sliding track according to the directions of two adjacent triggered touch points, namely the direction of the previous triggered touch point towards the next triggered touch point. And a plurality of touch points can be connected in series according to the triggered time sequence to obtain a graph, the graph has a direction, and the direction information of the sliding track is judged through the graph.
For example, if the sliding trajectory is unidirectional, the direction information includes only one sliding direction. If the sliding track is not unidirectional, if the sliding track slides left and then slides up, the direction information comprises at least two sliding directions. And multiple sliding directions can be included, such as sliding left, sliding up and sliding right.
In some embodiments, the step of obtaining the direction information of the sliding track may include: acquiring a plurality of pieces of initial direction information according to the triggering sequence of the touch points in the sliding track; and reserving one of at least two adjacent and same initial direction information to obtain final direction information.
The sliding track is formed by connecting sequentially triggered touch points on the display screen, and a plurality of pieces of initial direction information can be obtained according to the triggering sequence of the touch points in the sliding track, for example, two adjacent touch points can obtain one piece of initial direction information according to the triggering sequence of the two adjacent touch points. If there are too many touch points and the user's finger triggers multiple touch points at any time, the initial direction information can be obtained at intervals of one or two or more touch points, which can improve the efficiency. After obtaining a plurality of initial direction information, removing one of the adjacent and same initial direction information until all the adjacent two initial direction information are different, and obtaining the final direction information corresponding to the sliding track.
103, when the direction information includes at least two sliding directions, acquiring a touch instruction corresponding to the sliding track according to the end position of the sliding track.
The direction information of the sliding track comprises at least two sliding directions, and it is understood that the sliding track is not a unidirectional sliding track, but has a turn. If the sliding track is deviated by only a small angle and is not considered to have two sliding directions, if the sliding track slides along the direction vertical to the side edge for a certain distance and then slides continuously with the deviation of 5 degrees towards the bottom edge, the sliding track is considered to have only one sliding direction. If the sliding track slides along the direction vertical to the side edge firstly and continues to slide along the direction parallel to the side edge after sliding for a certain distance, the sliding track is considered to comprise two sliding directions.
And when the direction information comprises at least two sliding directions, acquiring a touch instruction corresponding to the sliding track according to the termination position of the sliding track. For example, the touch instruction corresponding to the sliding track may be obtained through the relative position of the ending position and the starting position.
In some embodiments, the step of obtaining the touch instruction corresponding to the sliding track according to the termination position of the sliding track may specifically be: acquiring a first sliding direction of a first sub-sliding track from an initial position in the sliding tracks; when the first sliding direction is a preset direction, determining a first touch instruction set corresponding to the preset direction; and determining a touch instruction from the first touch instruction set according to the termination position of the sliding track.
First, a first sliding direction of a first sub-sliding track of the sliding track is obtained, and the first sub-sliding track starts from a starting position, that is, the first sub-sliding track is a section of the sliding track at the beginning. The first sliding direction of the first sub-sliding track is obtained by the method of the above embodiment, and the first sliding direction of the first sub-sliding track may also be obtained by other methods. And after the first sliding direction is obtained, comparing the first sliding direction with the preset direction, and if the first sliding direction is consistent with or close to the direction of the preset direction, determining that the first sliding direction is the preset direction. Specifically, an angle between the first sliding single direction and the preset direction may be obtained first, and if the angle is smaller than a preset angle threshold, the preset direction of the first sliding direction is determined. The preset angle threshold may be 10 degrees, 15 degrees, etc.
And when the first sliding direction is a preset direction, obtaining a first touch instruction set corresponding to the preset direction. The preset direction may be one of a direction parallel to the side edge, a direction perpendicular to the side edge, a direction forming an angle of 45 degrees with the side edge, and the like. A part of touch instructions can be selected from a plurality of touch instructions corresponding to different preset directions to form a first touch instruction set.
For example, the preset direction is a direction parallel to the side, and the first sliding direction is also a direction parallel to the side, the first touch instruction set may select a return instruction, a return main interface instruction, a screen locking instruction, an unlocking instruction, a volume adjusting instruction, a screen capturing instruction, a task management instruction, a camera opening instruction, a network connection instruction, a bluetooth opening instruction, a do not disturb mode opening instruction, and the like to form the first touch instruction set. And finally, determining a touch instruction from the first touch instruction set by following the termination position. Specifically, the touch instruction may be determined to be a return instruction in the first touch instruction set when the termination position is above the start position, that is, the termination position is between the start position and the top edge of the display screen.
For another example, referring to fig. 3, the preset direction is a direction parallel to the side, the first sliding direction is a preset direction, the preset direction corresponds to a first touch instruction set, the first touch instruction set includes a return main interface instruction, a camera start instruction, and the like, and the return main interface instruction is determined as the touch instruction from the first touch instruction set according to the termination position. The display screen returns to the main interface.
In some embodiments, the sliding trajectory further includes a second sub-sliding trajectory reaching the termination position, the second sub-sliding trajectory being connected to the first sub-sliding trajectory.
The step of determining a touch instruction from the first touch instruction set according to the termination position of the sliding track may be: and determining a touch instruction from the first touch instruction set according to the relative direction of the ending position and the starting position of the sliding track.
The sliding trajectory comprises only two sliding directions, namely a first sliding direction of a first sub-sliding trajectory connected to the start position and a second sliding direction of a second sub-sliding trajectory connected to the end position. And when the first sliding direction is a preset direction, determining a touch instruction from the first touch instruction set according to the relative direction of the ending position and the starting position.
And determining a touch instruction according to the relative direction of the ending position and the starting position and the first sliding direction.
When the first sliding direction is perpendicular to the side edge direction, the first sliding direction points from the side edge display area to the other side edge of the display screen. The termination position may be between the starting position and the top edge, the termination position may be between the starting position and the bottom edge, and the termination position may be between the starting position and the side edge adjacent to the side edge display region. Therefore, one touch instruction can be respectively determined from the first touch instruction set in the three relative directions, so that the electronic equipment is controlled to perform different operations, and the convenience of the operations is improved.
For example, referring to fig. 4, if the first sliding direction is a vertical side direction and slides to another side, and the ending position is between the starting position and the bottom, it may be determined that the touch instruction is an instruction to enter the application a.
The side display area may be on the left side of the display screen, may also be on the right side of the display screen, and may also include two side display areas, which are a left side display area and a right side display area, respectively.
Also, the above method can be used when the first sliding direction is parallel to the side edge and is at an angle to the side edge. Therefore, when the preset direction is different, and the relative direction of the termination position and the initial position is the same, different touch instructions can be corresponding, and more rapid control can be realized by a user conveniently. When the preset directions are different directions and the relative directions of the ending position and the starting position are the same, the same touch instruction can be corresponded, and a user can conveniently control the electronic equipment in multiple ways.
In some embodiments, the step of determining the touch instruction from the first touch instruction set according to the termination position of the sliding track may be: acquiring the end position of the sliding track; when the termination position of the sliding track is located in the side display area, determining a first touch instruction from the first touch instruction set according to the termination position; and when the termination position of the sliding track is positioned in the main display area, determining a second touch instruction from the first touch instruction set according to the termination position.
When dividing the main display area and the side display area, the side display area may be divided into a larger area, for example, referring to fig. 5, the ratio of the side display area 12 to the main display area 11 of the display screen 10 is 2:1, and the width of the side display area 12 is 2 times that of the main display area 11. The sliding trajectory starting from the side edge display area 12 may comprise a first sliding direction and a second sliding direction within the side edge display area 12, i.e. the transition is completed within the side edge display area 12, while the end position is still within the side edge display area 12.
In addition, the sliding track may further include a third sliding direction, which is opposite to the first sliding direction, and the sliding track is still in the side display area. At this time, a first touch instruction is determined from the first touch instruction set through the termination position. The first touch instruction can also be determined from the first touch instruction set through the termination position and the second sliding direction, and the first touch instruction can also be determined from the first touch instruction set through the termination position, the second sliding direction and the third sliding direction.
In dividing the main display area and the side display area, the side display area may be divided to be smaller, for example, referring to fig. 6, the ratio of the side display area to the main display area is 1:4, and the width of the side display area is only 1/4 of the main display area. If the sliding track includes three sliding directions, a first sliding direction is perpendicular to the side edge, a second sliding direction is parallel to the side edge, and a third sliding direction is also perpendicular to the side edge and opposite to the first sliding direction, the end position of the sliding track is still located in the side edge display area. The second touch instruction may be determined from the first touch instruction set according to the termination location. The second touch instruction may also be determined from the first touch instruction set according to the termination position, the second sliding direction, and the third sliding direction.
When the main display area and the side display area are divided, the side display area may be divided relatively small. If the sliding track includes only two sliding directions, no matter whether the first sliding direction is perpendicular to the side edge or parallel to the side edge, the end position is in the main display area, the width of the side edge display area is smaller, the sliding distance in the direction perpendicular to the side edge (or in the direction forming a certain angle with the side edge) exceeds the side edge display area, and then the second touch instruction is determined from the first touch instruction set according to the end position. Touch instructions may also be determined from the first set of touch instructions based on the termination location.
For example, referring to fig. 7, the side display area is smaller, the first sliding direction of the sliding track is perpendicular to the side, the second sliding direction is parallel to the side, the end positions are all located in the main display area, and the control instruction is determined from the first touch instruction set as an instruction to enter the application a according to the position information of the end positions. The application a may be a preset application or may be a recently opened application.
In some embodiments, the step of acquiring the direction information of the sliding track may include: acquiring a first sub-sliding track connected with the initial position and a second sub-sliding track connected with the final position in the sliding tracks; when the first sub-sliding track is connected with the second sub-sliding track, acquiring direction information of the sliding track, wherein the direction information comprises a first sliding direction of the first sub-sliding track and a second sliding direction of the second sub-sliding track; and when the included angle between the first sliding direction and the second sliding direction is within a preset angle range, determining that the direction information comprises two sliding directions.
Firstly, a first sub-sliding track connected with an initial position and a second sub-sliding track connected with a final position in the sliding tracks are obtained; when the first sub-sliding track is connected with the second sub-sliding track, the sliding track only comprises two sub-sliding tracks, and then a first sliding direction of the first sub-sliding track and a second sliding direction of the second sub-sliding track are obtained; if the first sliding direction and the second sliding direction are the same, the sliding track is a single sliding direction. And if the included angle between the first sliding direction and the second sliding direction is within a preset angle range, determining that the direction information comprises two sliding directions. Since the first sub-sliding track and the second sub-sliding track are both directional, the angle between the first sliding direction and the second sliding direction can be understood as the angle between the first sub-sliding track and the second sub-sliding track. The predetermined angle range may be 0 degrees to 135 degrees, and the second sub-sliding track has a larger angle turn relative to the first sub-sliding track, such as 0 degrees for return, and 90 degrees for vertical. If the angle is greater than 135 degrees, the finger may be shifted during the sliding process, because the finger sliding is not generally a straight line of the mark, and this possibility needs to be eliminated, so that the accuracy of the judgment on the gesture of the user is improved.
In some embodiments, when the direction information includes at least two sliding directions, the step of obtaining the touch instruction corresponding to the sliding track according to the end position of the sliding track may include: when the direction information comprises two sliding directions, acquiring a first sliding speed of the first sub-sliding track and a second sliding speed of the second sub-sliding track; acquiring a speed ratio of the first sliding speed to the second sliding speed; and acquiring a touch instruction corresponding to the sliding track according to the speed ratio and the termination position of the sliding track.
If the sliding track only includes two sliding directions, a speed ratio between the first sliding speed and the second sliding speed may be obtained first, and then the touch instruction corresponding to the sliding track may be obtained according to the speed ratio and the end position of the sliding track. And controlling the electronic equipment through different speeds of the two sub-sliding tracks in the sliding track.
For example, referring to fig. 8, if the first swipe speed is greater than the second swipe speed, i.e., the speed ratio is greater than 1, a return to home screen instruction is obtained; and if the first sliding speed is less than the second sliding speed, namely the speed ratio is less than 1, acquiring the multitask control command. Of course, the control command may also be determined according to the ratio of the speed ratios, for example, different touch commands may be obtained between 1-2 and 2-3.
In some embodiments, when the direction information includes at least two sliding directions, the step of obtaining the touch instruction corresponding to the sliding track according to the end position of the sliding track may include: when the direction information comprises two sliding directions, acquiring a first sliding distance of the first sub-sliding track and a second sliding distance of the second sub-sliding track; obtaining the distance ratio of the first sliding distance to the second sliding distance; and acquiring a touch instruction corresponding to the sliding track according to the distance ratio and the end position of the sliding track.
If the sliding track only includes two sliding directions, the distance ratio between the first sliding distance and the second sliding distance may be obtained first, and then the touch instruction corresponding to the sliding track may be obtained according to the distance ratio and the end position of the sliding track. Controlling the electronic equipment through different sliding distances of two sections of sub-sliding tracks in the sliding track, and if the first sliding distance is larger than the second sliding distance, acquiring an instruction for turning on the flashlight; and if the first sliding distance is less than the second sliding distance, acquiring a camera opening instruction. Of course, the control command may also be determined according to the ratio of the distance ratio, for example, different touch commands may be obtained when the distance ratio is between 1-1.5 and 1.5-3.
And 104, executing corresponding touch operation on the electronic equipment according to the touch instruction.
After the touch instruction is obtained, corresponding touch operation can be executed on the electronic equipment according to the touch instruction.
It should be noted that the side display area may display the same content as the main display area, and it should be understood that the side display area and the main display area are only a division of the display screen. The side display area may also be a sidebar display area.
Referring to fig. 9, a plurality of shortcut icons, such as icon m, icon n, icon p, and icon q, may be disposed on the sidebar display area. The shortcut icon can realize quick opening of applications such as applications just closed and common applications, and the shortcut icon can realize functions of shortcut operation such as network setting and display setting of a display screen.
The sidebar display area 12 may have a touch function and a display function, and a user may perform a touch operation such as a click operation, a slide operation, and the like in the sidebar display area 12. The electronic device may display information such as text, pictures, etc. via the sidebar display area 12. At this time, the sidebar display area 12 may be an auxiliary display area of the main display area 11. In practical applications, the electronic device may also include two sidebar display areas 12, namely a left sidebar display area and a right sidebar display area. Referring to fig. 1, in some embodiments, the touch display screen 10 of the electronic device may include only one sidebar display area, such as a left sidebar display area or a right sidebar display area.
The shape of the sidebar display area 12 can be set according to actual requirements; for example, in some embodiments, the display screen 10 may be a curved touch display screen, the sidebar display area 12 may be an arc-shaped area, the electronic device may have the same function as the main display area 11 in the sidebar display area 12, the user may perform a touch operation in the main display area 11 or the sidebar display area 12, and the like.
In some embodiments, the side bar can be hidden when not in use, and when hidden, a prompt mark is arranged at the end part of the side edge of the display screen, such as a bright line at the position of the edge of the side edge of the display screen, and a small prompt pattern is arranged at the edge of the side edge of the display screen. Of course, the prompt mark may not be set. After the hidden operation, the sidebar can be called out by sliding from the side edge of the display screen to the middle of the display screen, and can also be called out by clicking, double clicking, long pressing or other operations at the end part of the side edge of the display screen. The sidebar may be displayed in a home screen display state, which may be understood as a desktop interface.
Referring to fig. 10, in some embodiments, the sidebar display area 12 may also be displayed in an application interface display state, where the application interface display state may be understood as a display interface after a certain application is opened, for example, the display screen 10 after a browser application is opened displays in the display of the browser application, and at this time, the display interface of the display screen may be understood as the application interface display state. The display status of the sidebar display area 12 in the main screen and the display status of the application interface can be displayed on the display screen 10, and the sidebar display area 12 can be directly superimposed on the original display interface, which may not be adjusted. The background color of the sidebar display area 12 may be a transparent background color or a preset color background color. The display screen 11 may be divided into a main display area 11 and a sidebar display area 12.
Referring to fig. 11, in some embodiments, in the application display interface, an operation list corresponding to the application display interface is displayed according to an operation instruction, a display area where the operation list is located is a sidebar display area 12, the sidebar display area 12 is disposed on one side of the display screen 11, content in the sidebar display area 12 is associated with the application display interface, and meanwhile, the application display interface in the main display area 11 may be adaptively adjusted, such as displaying only part of the content. Of course, the application display interface in the main display area 11 may not be adjusted. The background color of the sidebar display area 12 may be a transparent background color or a preset color background color.
In some embodiments, a touch operation method is further provided, with reference to fig. 12, the specific flow is as follows:
and 201, acquiring a sliding track of a user on a display screen.
The sliding trajectory can be understood as: a region on the display screen is triggered, and the adjacent regions of the region are triggered in sequence at the same time until no adjacent region is triggered, and the regions are connected in sequence to form the sliding track.
And monitoring whether the display screen has a sliding track in real time, and triggering the next step when the display screen has the sliding track.
202, when the starting position of the sliding track is located in the side display area, acquiring the direction information of the sliding track.
And after the sliding track of the display screen is detected, acquiring the initial position of the sliding track. After obtaining the start position, it is determined whether the start position is located in the side display area 12, and if the start position is not located in the side display area 12, it may be a normal operation, such as switching between different desktops of the main screen. If the start position is within the side display area 12, it is considered that a specific operation is possible, and then direction information of the slide trajectory is acquired.
Specifically, the display screen comprises a plurality of touch points, each touch point can generate a trigger signal according to external pressure change or electric field change, and trigger operation of the display screen, such as clicking, double clicking, long pressing, sliding and the like, is obtained by monitoring each touch point in real time.
When the sliding track is detected, the direction information of the sliding track can be obtained through the triggering sequence of the touch points. And obtaining the triggering time sequence of the touch points, and obtaining the direction information of the sliding track according to the directions of two adjacent triggered touch points, namely the direction of the previous triggered touch point towards the next triggered touch point. And a plurality of touch points can be connected in series according to the triggered time sequence to obtain a graph, the graph has a direction, and the direction information of the sliding track is judged through the graph.
For example, if the sliding trajectory is unidirectional, the direction information includes only one sliding direction. If the sliding track is not unidirectional, if the sliding track slides left and then slides up, the direction information comprises at least two sliding directions. And multiple sliding directions can be included, such as sliding left, sliding up and sliding right.
203, when the direction information includes at least two sliding directions, obtaining at least two sub-sliding tracks according to one sub-sliding track corresponding to each sliding direction.
The direction information of the sliding track comprises at least two sliding directions, and it is understood that the sliding track is not a unidirectional sliding track, but has a turn. If the sliding track is deviated by only a small angle and is not considered to have two sliding directions, if the sliding track slides along the direction vertical to the side edge for a certain distance and then slides continuously with the deviation of 5 degrees towards the bottom edge, the sliding track is considered to have only one sliding direction. If the sliding track slides along the direction vertical to the side edge firstly and continues to slide along the direction parallel to the side edge after sliding for a certain distance, the sliding track is considered to comprise two sliding directions.
When the direction information includes at least two sliding directions, each sliding direction corresponds to one sub-sliding track, and at least two sub-sliding tracks can be obtained according to the at least two sliding directions. And combining at least two sub-sliding tracks according to the triggering time sequence to form a sliding track.
And 204, acquiring a connection point of two connected sub-sliding tracks in the at least two sub-sliding tracks.
At least two sub-sliding tracks are sequentially connected according to the triggering time sequence to form a sliding track, and a connection point of two adjacent sub-sliding tracks is obtained, wherein the connection point is a turning point of the sliding track, namely, the sliding direction of the two sub-sliding tracks is changed at the connection point, for example, the direction of a parallel side edge is changed into the direction of a vertical side edge.
205, acquiring a touch duration of the connection point.
Specifically, the connection point comprises a touch point, and the time length of the touch point triggered by the outside is detected. For example, the touch point is a press trigger, and the touch duration of the touch point is obtained by detecting the continuous press duration of the touch point. The touch duration may be equal to the continuous press duration.
And 206, when the touch duration is longer than the preset duration, acquiring a touch instruction corresponding to the sliding track according to the termination position of the sliding track.
After the touch duration of the connection point is obtained, it is determined whether the touch duration is greater than a preset duration, where the preset duration may be a fixed value, such as 0.5 second, 1 second, and the like. The preset time may also be obtained by calculating the speed of the sliding track, for example, first calculating the speed of the sliding track before reaching the connection point to obtain the time length of the sliding track passing through each touch point, and then calculating the preset time length according to the time length by a ratio, where the ratio may be 2 times, 3 times, 5 times, and the like. The staying time of the sliding track before reaching the connection point at each touch point can also be obtained, the maximum staying time is selected, and then the preset time, such as 1 time, 2 times and the like, is obtained by calculating according to the staying time in proportion.
When the touch duration is longer than the preset duration, it is indicated that the sliding track pauses at the connection point, the operation is specific to the user, and then a touch instruction corresponding to the sliding track is obtained according to the termination position of the sliding track.
And 207, executing corresponding touch operation on the electronic equipment according to the touch instruction.
The touch instruction can be set according to actual requirements, for example, the touch instruction can be a return instruction, a return main interface instruction, a screen locking instruction, an unlocking instruction, a volume adjustment instruction, a screen capturing instruction, a task management instruction, a camera opening instruction, a network connection instruction, a bluetooth opening instruction, a do not disturb mode opening instruction, and the like.
After the touch instruction is obtained, corresponding touch operation can be executed on the electronic equipment according to the touch instruction.
As can be seen from the above, in the embodiment of the present application, a sliding track of a user on a display screen is first obtained; then when the initial position of the sliding track is positioned in the side display area, acquiring the direction information of the sliding track; then when the direction information comprises at least two sliding directions, acquiring a touch instruction corresponding to the sliding track according to the termination position of the sliding track; and finally, executing corresponding touch operation on the electronic equipment according to the touch instruction. The sliding track starting from the side edge display area comprises at least two sliding direction sub-sliding tracks, so that the existing sliding tracks can be obviously distinguished, special functions set by some systems or users can be realized, the electronic equipment does not need to be controlled through physical keys or multi-stage operation, the operation of the users is facilitated, and the operation efficiency of the electronic equipment is improved. The side display area is arranged on the side, so that the user can operate the device conveniently by one hand.
The embodiment of the application further provides a touch operation device, which can be integrated in an electronic device, and the electronic device can be a smart phone, a tablet computer and other devices.
In some embodiments, referring to fig. 13, the touch operation device 300 may include a sliding track acquisition module 301, a sliding information acquisition module 302, a touch instruction acquisition module 303, and a processing module 304.
A sliding track obtaining module 301, configured to obtain a sliding track of a user on a display screen;
a sliding information obtaining module 302, configured to obtain direction information of the sliding track when the starting position of the sliding track is located in the side display area;
a touch instruction obtaining module 303, configured to obtain, when the sliding track includes at least two sub-sliding tracks in the sliding direction, a touch instruction corresponding to the sliding track according to an end position of the sliding track;
the processing module 304 is configured to execute a corresponding touch operation on the electronic device according to the touch instruction.
In some embodiments, the touch instruction obtaining module 303 is further configured to, when the direction information includes at least two sliding directions, obtain at least two sub-sliding trajectories according to a sub-sliding trajectory corresponding to each sliding direction; acquiring a connection point of two connected sub-sliding tracks in the at least two sub-sliding tracks; acquiring the touch control duration of a connection point; and when the touch duration is longer than the preset duration, acquiring a touch instruction corresponding to the sliding track according to the termination position of the sliding track.
In some embodiments, the touch instruction obtaining module 303 is further configured to obtain a first sliding direction of a first sub-sliding track from a starting position in the sliding track; when the first sliding direction is a preset direction, determining a first touch instruction set corresponding to the preset direction; and determining a touch instruction from the first touch instruction set according to the termination position of the sliding track.
In some embodiments, the sliding trajectory further includes a second sub-sliding trajectory reaching the termination position, the second sub-sliding trajectory being connected to the first sub-sliding trajectory. The touch instruction obtaining module 303 is further configured to determine a touch instruction from the first touch instruction set according to a relative direction between the ending position and the starting position of the sliding track.
In some embodiments, the touch instruction obtaining module 303 is further configured to obtain an end position of the sliding track; when the termination position of the sliding track is located in the side display area 12, determining a first touch instruction from the first touch instruction set according to the termination position; and when the termination position of the sliding track is positioned in the main display area, determining a second touch instruction from the first touch instruction set according to the termination position.
In some embodiments, the sliding information obtaining module 302 is further configured to obtain a plurality of initial direction information according to a trigger sequence of touch points in the sliding track; and reserving one of at least two adjacent and same initial direction information to obtain final direction information.
In some embodiments, the sliding information obtaining module 302 is further configured to obtain a first sub-sliding track connected to the starting position and a second sub-sliding track connected to the ending position in the sliding track; when the first sub-sliding track is connected with the second sub-sliding track, acquiring direction information of the sliding track, wherein the direction information comprises a first sliding direction of the first sub-sliding track and a second sliding direction of the second sub-sliding track; and when the included angle between the first sliding direction and the second sliding direction is within a preset angle range, determining that the direction information comprises two sliding directions.
In some embodiments, the touch instruction obtaining module 303 is further configured to obtain a first sliding speed of the first sub-sliding track and a second sliding speed of the second sub-sliding track when the direction information includes two sliding directions; acquiring a speed ratio of the first sliding speed to the second sliding speed; and acquiring a touch instruction corresponding to the sliding track according to the speed ratio and the termination position of the sliding track.
In some embodiments, the touch instruction obtaining module 303 is further configured to obtain a first sliding distance of the first sub-sliding track and a second sliding distance of the second sub-sliding track when the direction information includes two sliding directions; obtaining the distance ratio of the first sliding distance to the second sliding distance; and acquiring a touch instruction corresponding to the sliding track according to the distance ratio and the end position of the sliding track.
As can be seen from the above, in the touch operation device of the embodiment of the present application, first, the sliding track obtaining module 301 obtains the sliding track of the user on the display screen; then, the sliding information obtaining module 302 obtains direction information of the sliding track when the initial position of the sliding track is located in the side display area; then, when the direction information includes at least two sliding directions, the touch instruction obtaining module 303 obtains a touch instruction corresponding to the sliding track according to the end position of the sliding track; finally, the processing module 304 executes a corresponding touch operation on the electronic device according to the touch instruction. The sliding track starting from the side edge display area comprises at least two sliding direction sub-sliding tracks, so that the existing sliding tracks can be obviously distinguished, special functions set by some systems or users can be realized, the electronic equipment does not need to be controlled through physical keys or multi-stage operation, the operation of the users is facilitated, and the operation efficiency of the electronic equipment is improved. The side display area is arranged on the side, so that the user can operate the device conveniently by one hand.
The embodiment of the application also provides the electronic equipment. The electronic device may be a smartphone, a tablet computer, or the like. As shown in fig. 14, the electronic device 400 includes a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the electronic device 400, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or calling a computer program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions:
acquiring a sliding track of a user on a display screen;
when the initial position of the sliding track is positioned in the side display area, acquiring the direction information of the sliding track;
when the direction information comprises at least two sliding directions, acquiring a touch instruction corresponding to the sliding track according to the termination position of the sliding track;
and executing corresponding touch operation on the electronic equipment according to the touch instruction.
In some embodiments, when the direction information includes at least two sliding directions, and the touch instruction corresponding to the sliding track is obtained according to the end position of the sliding track, the processor 401 further performs the following steps:
when the direction information comprises at least two sliding directions, corresponding to one sub-sliding track according to each sliding direction to obtain at least two sub-sliding tracks;
acquiring a connection point of two connected sub-sliding tracks in the at least two sub-sliding tracks;
acquiring the touch control duration of a connection point;
and when the touch duration is longer than the preset duration, acquiring a touch instruction corresponding to the sliding track according to the termination position of the sliding track.
In some embodiments, when the touch instruction corresponding to the sliding track is obtained according to the end position of the sliding track, the processor 401 further performs the following steps:
acquiring a first sliding direction of a first sub-sliding track from an initial position in the sliding tracks;
when the first sliding direction is a preset direction, determining a first touch instruction set corresponding to the preset direction;
and determining a touch instruction from the first touch instruction set according to the termination position of the sliding track.
In some embodiments, the sliding trajectory further includes a second sub-sliding trajectory reaching the termination position, the second sub-sliding trajectory being connected to the first sub-sliding trajectory; when the touch instruction corresponding to the sliding track is obtained according to the end position of the sliding track, the processor 401 further performs the following steps:
and determining a touch instruction from the first touch instruction set according to the relative direction of the ending position and the starting position of the sliding track.
In some embodiments, when the touch instruction corresponding to the sliding track is obtained according to the end position of the sliding track, the processor 401 further performs the following steps:
acquiring the end position of the sliding track;
when the termination position of the sliding track is located in the side display area, determining a first touch instruction from the first touch instruction set according to the termination position;
and when the termination position of the sliding track is positioned in the main display area, determining a second touch instruction from the first touch instruction set according to the termination position.
In some embodiments, when obtaining the direction information of the sliding track, the processor 401 further performs the following steps:
acquiring a plurality of pieces of initial direction information according to the triggering sequence of the touch points in the sliding track;
and reserving one of at least two adjacent and same initial direction information to obtain final direction information.
In some embodiments, when obtaining the direction information of the sliding track, the processor 401 further performs the following steps:
acquiring a first sub-sliding track connected with the initial position and a second sub-sliding track connected with the final position in the sliding tracks;
when the first sub-sliding track is connected with the second sub-sliding track, acquiring direction information of the sliding track, wherein the direction information comprises a first sliding direction of the first sub-sliding track and a second sliding direction of the second sub-sliding track;
and when the included angle between the first sliding direction and the second sliding direction is within a preset angle range, determining that the direction information comprises two sliding directions.
In some embodiments, when the direction information includes at least two sliding directions, and the touch instruction corresponding to the sliding track is obtained according to the end position of the sliding track, the processor 401 further performs the following steps:
when the direction information comprises two sliding directions, acquiring a first sliding speed of the first sub-sliding track and a second sliding speed of the second sub-sliding track;
acquiring a speed ratio of the first sliding speed to the second sliding speed;
and acquiring a touch instruction corresponding to the sliding track according to the speed ratio and the termination position of the sliding track.
In some embodiments, when the direction information includes at least two sliding directions, and the touch instruction corresponding to the sliding track is obtained according to the end position of the sliding track, the processor 401 further performs the following steps:
when the direction information comprises two sliding directions, acquiring a first sliding distance of the first sub-sliding track and a second sliding distance of the second sub-sliding track;
obtaining the distance ratio of the first sliding distance to the second sliding distance;
and acquiring a touch instruction corresponding to the sliding track according to the distance ratio and the end position of the sliding track.
In some embodiments, as shown in fig. 15, electronic device 400 further comprises: radio frequency circuit 403, display 404, control circuit 405, input unit 406, audio circuit 407, sensor 408, and power supply 409. The processor 401 is electrically connected to the radio frequency circuit 403, the display 404, the control circuit 405, the input unit 406, the audio circuit 407, the sensor 408, and the power source 409.
The radio frequency circuit 403 is used for transceiving radio frequency signals to communicate with a network device or other electronic devices through wireless communication.
The display screen 404 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the electronic device, which may be comprised of images, text, icons, video, and any combination thereof.
The control circuit 405 is electrically connected to the display screen 404, and is configured to control the display screen 404 to display information.
The input unit 406 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 406 may include a fingerprint recognition module.
The audio circuit 407 may provide an audio interface between the user and the electronic device through a speaker, microphone.
The sensor 408 is used to collect external environmental information. The sensors 408 may include one or more of ambient light sensors, acceleration sensors, gyroscopes, etc.
The power supply 409 is used to power the various components of the electronic device 400. In some embodiments, the power source 409 may be logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are implemented through the power management system.
Although not shown in fig. 15, the electronic device 400 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
The embodiment of the application provides electronic equipment, which comprises the steps of firstly, acquiring a sliding track of a user on a display screen; then when the initial position of the sliding track is positioned in the side display area, acquiring the direction information of the sliding track; then when the direction information comprises at least two sliding directions, acquiring a touch instruction corresponding to the sliding track according to the termination position of the sliding track; and finally, executing corresponding touch operation on the electronic equipment according to the touch instruction. The sliding track starting from the side edge display area comprises at least two sliding direction sub-sliding tracks, so that the existing sliding tracks can be obviously distinguished, special functions set by some systems or users can be realized, the electronic equipment does not need to be controlled through physical keys or multi-stage operation, the operation of the users is facilitated, and the operation efficiency of the electronic equipment is improved. The side display area is arranged on the side, so that the user can operate the device conveniently by one hand.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the touch operation method according to any of the above embodiments.
It should be noted that, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, which may include, but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The touch operation method, the touch operation device, the storage medium and the electronic device provided by the embodiments of the present application are described in detail above, and specific examples are applied herein to explain the principles and implementations of the present application, and the descriptions of the above embodiments are only used to help understand the method and the core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
1. A touch operation method is applied to electronic equipment, the electronic equipment comprises a display screen and is characterized in that the display screen comprises a top edge and a bottom edge which are arranged oppositely, the display screen also comprises a side edge arranged between the top edge and the bottom edge, the display screen comprises a main display area and a side edge display area, and the side edge display area is arranged adjacent to the side edge; the touch operation method comprises the following steps:
acquiring a sliding track of a user on the display screen;
when the starting position of the sliding track is located in the side edge display area, acquiring direction information of the sliding track, wherein the sliding track passes through the main display area, and acquiring a first sub-sliding track connected with the starting position and a second sub-sliding track connected with the ending position in the sliding track; when the first sub-sliding track is connected with the second sub-sliding track, acquiring a first sliding direction of the first sub-sliding track and a second sliding direction of the second sub-sliding track;
when the direction information comprises at least two sliding directions, acquiring a touch instruction corresponding to the sliding track according to the end position of the sliding track, wherein when the direction information comprises two sliding directions, acquiring a speed ratio of a first sliding speed of the first sub-sliding track to a second sliding speed of the second sub-sliding track, and acquiring a touch instruction corresponding to the sliding track according to the speed ratio and the end position of the sliding track, or acquiring a distance ratio of a first sliding distance of the first sub-sliding track to a second sliding distance of the second sub-sliding track, and acquiring a touch instruction corresponding to the sliding track according to the distance ratio and the end position of the sliding track;
and executing corresponding touch operation on the electronic equipment according to the touch instruction.
2. The touch operation method according to claim 1, wherein when the direction information includes at least two sliding directions, the step of obtaining the touch instruction corresponding to the sliding track according to the end position of the sliding track includes:
when the direction information comprises at least two sliding directions, corresponding to one sub-sliding track according to each sliding direction to obtain at least two sub-sliding tracks;
acquiring a connection point of two connected sub-sliding tracks in the at least two sub-sliding tracks;
acquiring the touch control duration of the connection point;
and when the touch duration is longer than a preset duration, acquiring a touch instruction corresponding to the sliding track according to the termination position of the sliding track.
3. The touch operation method according to claim 1 or 2, wherein the step of obtaining the touch instruction corresponding to the sliding track according to the termination position of the sliding track includes:
acquiring a first sliding direction of a first sub-sliding track from the initial position in the sliding tracks;
when the first sliding direction is a preset direction, determining a first touch instruction set corresponding to the preset direction;
and determining a touch instruction from the first touch instruction set according to the termination position of the sliding track.
4. The touch operation method according to claim 3, wherein the slide track further includes a second sub-slide track reaching the end position, the second sub-slide track being connected to the first sub-slide track;
the step of determining a touch instruction from the first touch instruction set according to the termination position of the sliding track includes:
and determining a touch instruction from the first touch instruction set according to the relative direction of the ending position and the starting position of the sliding track.
5. The touch operation method according to claim 3, wherein the step of determining a touch instruction from the first touch instruction set according to the termination position of the sliding track comprises:
acquiring the end position of the sliding track;
when the termination position of the sliding track is located in the side display area, determining a first touch instruction from the first touch instruction set according to the termination position;
and when the termination position of the sliding track is located in the main display area, determining a second touch instruction from the first touch instruction set according to the termination position.
6. The touch operation method according to claim 1 or 2, wherein the step of obtaining the direction information of the sliding track includes:
acquiring a plurality of pieces of initial direction information according to the triggering sequence of the touch points in the sliding track;
and reserving one of at least two adjacent and same initial direction information to obtain final direction information.
7. The touch operation method according to claim 1 or 2, wherein the step of obtaining the first sliding direction of the first sub-sliding track and the second sliding direction of the second sub-sliding track includes:
and when the included angle between the first sliding direction and the second sliding direction is within a preset angle range, determining that the direction information comprises two sliding directions.
8. A touch control operation device is applied to electronic equipment, the electronic equipment comprises a display screen and is characterized in that the display screen comprises a top edge and a bottom edge which are arranged oppositely, the display screen also comprises a side edge arranged between the top edge and the bottom edge, the display screen comprises a main display area and a side edge display area, and the side edge display area is arranged adjacent to the side edge; the touch operation device comprises:
the sliding track acquisition module is used for acquiring a sliding track of a user on the display screen;
the sliding information acquisition module is used for acquiring direction information of the sliding track when the starting position of the sliding track is located in the side edge display area, wherein the sliding track passes through the main display area, and a first sub-sliding track connected with the starting position and a second sub-sliding track connected with the ending position in the sliding track are acquired; when the first sub-sliding track is connected with the second sub-sliding track, acquiring a first sliding direction of the first sub-sliding track and a second sliding direction of the second sub-sliding track;
a touch instruction obtaining module, configured to, when the sliding track includes sub-sliding tracks in at least two sliding directions, obtain a touch instruction corresponding to the sliding track according to an end position of the sliding track, where, when the direction information includes two sliding directions, obtain a speed ratio of a first sliding speed of the first sub-sliding track to a second sliding speed of the second sub-sliding track, and obtain, according to the speed ratio and the end position of the sliding track, a touch instruction corresponding to the sliding track, or obtain a distance ratio of a first sliding distance of the first sub-sliding track to a second sliding distance of the second sub-sliding track, and obtain, according to the distance ratio and the end position of the sliding track, a touch instruction corresponding to the sliding track;
and the processing module is used for executing corresponding touch operation on the electronic equipment according to the touch instruction.
9. A storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the touch operation method according to any one of claims 1 to 7.
10. An electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and the processor is configured to execute the touch operation method according to any one of claims 1 to 7 by calling the computer program stored in the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810725236.XA CN108845756B (en) | 2018-07-04 | 2018-07-04 | Touch operation method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810725236.XA CN108845756B (en) | 2018-07-04 | 2018-07-04 | Touch operation method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108845756A CN108845756A (en) | 2018-11-20 |
CN108845756B true CN108845756B (en) | 2021-02-02 |
Family
ID=64201113
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810725236.XA Active CN108845756B (en) | 2018-07-04 | 2018-07-04 | Touch operation method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108845756B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111435277B (en) * | 2019-01-15 | 2022-04-19 | Oppo广东移动通信有限公司 | Method, device, terminal and storage medium for displaying content |
CN110300226B (en) * | 2019-06-28 | 2021-06-29 | Oppo广东移动通信有限公司 | Electronic equipment and control method of flashlight thereof |
CN112162678A (en) * | 2020-09-28 | 2021-01-01 | 珠海格力电器股份有限公司 | Application search method and device of intelligent terminal, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2343645A1 (en) * | 2010-01-06 | 2011-07-13 | Apple Inc. | Device, method, and graphical user interface with interactive popup views |
CN103294380A (en) * | 2012-02-29 | 2013-09-11 | 腾讯科技(深圳)有限公司 | Screen display switch method and device |
CN106201321A (en) * | 2016-07-29 | 2016-12-07 | 维沃移动通信有限公司 | A kind of application control method and mobile terminal |
CN106210289A (en) * | 2016-06-30 | 2016-12-07 | 北京奇虎科技有限公司 | Information processing method, device and mobile terminal |
CN107153502A (en) * | 2017-05-09 | 2017-09-12 | 吴彦驹 | Surface active component method and system |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101451999B1 (en) * | 2009-07-28 | 2014-10-21 | 삼성전자주식회사 | Data scroll method and apparatus |
CN101876865B (en) * | 2009-11-27 | 2013-07-24 | 友达光电股份有限公司 | Method for judging gesture of touch device |
US9268424B2 (en) * | 2012-07-18 | 2016-02-23 | Sony Corporation | Mobile client device, operation method, recording medium, and operation system |
CN103677633B (en) * | 2013-11-22 | 2016-07-06 | 小米科技有限责任公司 | Unlocking screen method, device and terminal |
CN103941980A (en) * | 2014-04-17 | 2014-07-23 | 深圳麦科信仪器有限公司 | Method and device for transversely moving waveform of touch oscilloscope in horizontal and vertical directions |
US20160004380A1 (en) * | 2014-07-07 | 2016-01-07 | Samsung Electronics Co., Ltd. | Method of performing a touch action in a touch sensitive device |
CN105425948B (en) * | 2015-10-31 | 2018-05-29 | 广东欧珀移动通信有限公司 | A kind of man-machine interaction method and user terminal |
CN105892871B (en) * | 2016-03-31 | 2018-03-20 | 维沃移动通信有限公司 | The method and electronic equipment of a kind of scroll through pages |
CN105975181B (en) * | 2016-05-06 | 2019-01-04 | 平安科技(深圳)有限公司 | The display control method and device at sideslip interface |
-
2018
- 2018-07-04 CN CN201810725236.XA patent/CN108845756B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2343645A1 (en) * | 2010-01-06 | 2011-07-13 | Apple Inc. | Device, method, and graphical user interface with interactive popup views |
CN103294380A (en) * | 2012-02-29 | 2013-09-11 | 腾讯科技(深圳)有限公司 | Screen display switch method and device |
CN106210289A (en) * | 2016-06-30 | 2016-12-07 | 北京奇虎科技有限公司 | Information processing method, device and mobile terminal |
CN106201321A (en) * | 2016-07-29 | 2016-12-07 | 维沃移动通信有限公司 | A kind of application control method and mobile terminal |
CN107153502A (en) * | 2017-05-09 | 2017-09-12 | 吴彦驹 | Surface active component method and system |
Also Published As
Publication number | Publication date |
---|---|
CN108845756A (en) | 2018-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10551987B2 (en) | Multiple screen mode in mobile terminal | |
CN107632895B (en) | Information sharing method and mobile terminal | |
CN109062479B (en) | Split screen application switching method and device, storage medium and electronic equipment | |
CN108958627B (en) | Touch operation method and device, storage medium and electronic equipment | |
EP2825950B1 (en) | Touch screen hover input handling | |
KR101229699B1 (en) | Method of moving content between applications and apparatus for the same | |
CN106415472B (en) | Gesture control method and device, terminal equipment and storage medium | |
CN110709806A (en) | Multitasking operation method and electronic equipment | |
CN108984093B (en) | Touch operation method and device, storage medium and electronic equipment | |
US10599903B2 (en) | Information processing method and electronic device | |
CN108595074A (en) | Status bar operating method, device and computer readable storage medium | |
CN108845756B (en) | Touch operation method and device, storage medium and electronic equipment | |
KR20140089224A (en) | Device and method for executing operation based on touch-input | |
CN108984096A (en) | touch operation method, device, storage medium and electronic equipment | |
CN105824531A (en) | Method and device for adjusting numbers | |
CN109885222A (en) | Icon processing method, device, electronic equipment and computer-readable medium | |
CN109165075A (en) | Application display method, device, electronic equipment and storage medium | |
CN104898889A (en) | Character determining method and device | |
CN108845752A (en) | touch operation method, device, storage medium and electronic equipment | |
CN108984097B (en) | Touch operation method and device, storage medium and electronic equipment | |
CN108958628A (en) | touch operation method, device, storage medium and electronic equipment | |
CN112416199B (en) | Control method and device and electronic equipment | |
CN112783406B (en) | Operation execution method and device and electronic equipment | |
CN107544740B (en) | Application processing method and device, storage medium and electronic equipment | |
CN114415886A (en) | Application icon management method 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 |