CN111625177B - Method and device for determining effective touch area and electronic equipment - Google Patents
Method and device for determining effective touch area and electronic equipment Download PDFInfo
- Publication number
- CN111625177B CN111625177B CN202010457690.9A CN202010457690A CN111625177B CN 111625177 B CN111625177 B CN 111625177B CN 202010457690 A CN202010457690 A CN 202010457690A CN 111625177 B CN111625177 B CN 111625177B
- Authority
- CN
- China
- Prior art keywords
- touch
- control
- effective
- area
- information
- 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
Abstract
The invention provides a method and a device for determining an effective touch area, electronic equipment and a computer readable medium, wherein the method is applied to the electronic equipment with a display screen and comprises the following steps: detecting at least two touch operations of a user; recording touch information of the at least two touch operations; determining a control needing to adjust an effective touch area according to touch information of at least two continuous touch operations; and adjusting the boundary of the effective touch area of the control needing to adjust the effective touch area according to the touch information of the at least two continuous touch operations. The invention provides a method and a device for determining an effective touch area, electronic equipment and a computer readable medium, which can adjust the effective touch area of a control, so that when the touch position of a user for touching the control is not in the preset effective touch area, the function corresponding to the control can be triggered.
Description
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a method and an apparatus for determining an effective touch area, and an electronic device.
Background
Touch screens are increasingly used in a variety of electronic devices. In order to realize interaction with a user through the touch screen, controls for correspondingly executing a function are displayed on the touch screen, and each control corresponds to a preset initial effective touch area.
And when the user needs to trigger and execute a function, the displayed control is touched on the touch screen, and if the position of the touch operation of the user is in the initial effective touch area corresponding to the control, the function corresponding to the control is executed. For example: when the user touches a control for ending the call displayed on the touch screen, for example, the control is a circular red icon, and the touch position is within the initial effective touch area corresponding to the circular red icon, the process of ending the call is executed.
In the prior art, even if a user intends to touch a control, as long as a touch position of the user is not within a preset initial effective touch area, a function corresponding to the control cannot be triggered.
Disclosure of Invention
The embodiment of the invention provides a method and a device for determining an effective touch area, an electronic device and a computer readable medium, which can adjust the effective touch area of a control, so that when the touch position of a user for touching the control is not in the preset effective touch area, the function corresponding to the control can be triggered.
In a first aspect, an embodiment of the present invention provides a method for determining an effective touch area, where the method is applied to an electronic device with a display screen, and the method includes:
detecting at least two touch operations of a user;
recording touch information of the at least two touch operations;
determining a control needing to adjust an effective touch area according to touch information of at least two continuous touch operations;
and adjusting the boundary of the effective touch area of the control needing to adjust the effective touch area according to the touch information of the at least two continuous touch operations.
Alternatively,
the determining a control that needs to adjust an effective touch area according to touch information of at least two consecutive touch operations includes:
and aiming at any two continuous touch operations, executing:
s1: judging whether the touch position of the next touch operation is within the effective touch area of a control according to the touch information of the next touch operation, and if so, executing S2;
s2: and judging whether the previous touch operation meets the condition that the touch position of the previous touch operation is located outside the effective touch area of a first control according to the touch information of the next touch operation and the touch information of the previous touch operation, and if so, determining that the first control is the control needing to adjust the effective touch area, wherein the first control is the control corresponding to the effective touch area where the touch position of the next touch operation is located.
Alternatively,
the determining, according to the touch information of the subsequent touch operation and the touch information of the previous touch operation, whether the previous touch operation satisfies that the touch position of the previous touch operation is located outside an effective touch area of a first control and the previous touch operation is a touch operation for the first control, and if so, determining that the first control is a control whose effective touch area needs to be adjusted includes:
determining whether the touch position of the previous touch operation is located outside the effective touch area of the first control according to the touch information of the previous touch operation;
determining whether the closest distance between the touch position of the previous touch operation and the effective touch area of the first control meets a preset position condition or not according to the touch information of the previous touch operation;
determining whether a time interval between the previous touch operation and the next touch operation meets a preset time condition according to the touch information of the next touch operation and the touch information of the previous touch operation;
and judging whether the previous touch operation simultaneously meets the preset position condition and the preset time condition, and if so, determining that the first control is a control needing to adjust the effective touch area.
Alternatively,
the touch information includes: coordinate information of the touch position;
determining whether the closest distance between the touch position of the previous touch operation and the effective touch area of the first control meets a preset position condition according to the touch information of the previous touch operation, including:
acquiring coordinate information of an effective touch area of each control;
determining the nearest distance between the touch position of the previous touch operation and the effective touch area of each control according to the coordinate information of the touch position of the previous touch operation and the coordinate information of the effective touch area of each control;
judging whether the first closest distance is smaller than the preset distance and the first closest distance is smaller than the closest distance corresponding to each other control,
the first closest distance is the closest distance between the touch position of the previous touch operation and the effective touch area of the first control;
the preset position condition comprises: the first closest distance is smaller than the preset distance and smaller than the closest distance corresponding to each other control.
Alternatively,
the touch information includes: touch control time;
determining whether a time interval between the previous touch operation and the next touch operation meets a preset time condition according to the touch information of the next touch operation and the touch information of the previous touch operation, including:
determining a time interval between the next touch operation and the previous touch operation according to the touch time of the next touch operation and the touch time of the previous touch operation;
judging whether the time interval is smaller than a preset time length or not;
wherein the preset time condition comprises: the time interval is less than the preset time length.
Alternatively,
the adjusting the boundary of the effective touch area of the control needing to adjust the effective touch area according to the touch information of the at least two continuous touch operations includes:
determining position information of a user habit position according to touch information of at least one reference touch operation, wherein the reference touch operation is that a touch position is located outside an effective touch area of the first control and is one previous touch operation for the first control;
and adjusting the boundary of the effective touch control area of the first control according to the position information of the user habit position, so that the adjusted effective touch control area of the first control comprises the user habit position.
Alternatively,
the touch information includes: coordinate information of the touch position;
the determining the position information of the user habit position according to the touch information of at least one reference touch operation includes:
determining coordinate information (X) of the user's habitual position according to the coordinate information of the touch position of the at least one reference touch operation0,Y0);
Adjusting the boundary of the effective touch area of the first control according to the position information of the user habit position, including:
when the maximum value of the X axis of the current effective touch area of the first control is smaller than X0Adjusting the boundary of the effective touch area of the first control, so that the maximum value of the X axis of the adjusted effective touch area of the first control is X0;
When the minimum value of the X axis of the current effective touch area of the first control is larger than X0Adjusting the boundary of the effective touch area of the first control, so that the minimum value of the X axis of the adjusted effective touch area of the first control is X0;
When the maximum value of the Y axis of the current effective touch area of the first control is smaller than Y0Adjusting the boundary of the effective touch area of the first control, so that the maximum value of the Y axis of the effective touch area of the first control after adjustment is Y0;
When the minimum value of the Y axis of the current effective touch area of the first control is larger than Y0And then, adjusting the boundary of the effective touch area of the first control, so that the minimum value of the Y axis of the adjusted effective touch area of the first control is Y0;
The adjusted effective touch control area of the first control is rectangular, and one side of the adjusted effective touch control area of the first control is parallel to the X axis of the rectangular coordinate system.
In a second aspect, an embodiment of the present invention provides an apparatus for determining an effective touch area, where the apparatus includes:
the detection module is used for detecting at least two touch operations of a user;
the recording module is used for recording the touch information of the at least two touch operations;
the determining module is used for determining a control which needs to adjust an effective touch area according to the touch information of at least two continuous touch operations;
and the adjusting module is used for adjusting the boundary of the effective touch area of the control needing to adjust the effective touch area according to the touch information of the at least two continuous touch operations.
In a third aspect, an embodiment of the present invention provides an electronic device, including: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is configured to invoke the machine-readable program to perform the method of any of the first aspects.
In a fourth aspect, the present invention provides a computer-readable medium, on which computer instructions are stored, which, when executed by a processor, cause the processor to perform the method of any one of the first aspect.
In the embodiment of the invention, touch information of touch operation is recorded, a control needing to adjust the effective touch area is determined according to the touch information of at least two continuous touch operations, and the boundary of the effective touch area of the control is adjusted. As can be seen from the above description, in the embodiment of the present invention, the boundary of the effective touch area of the control may be adjusted according to the touch operation, so that when the touch position of the user for touching the control is not in the preset effective touch area, the function corresponding to the control may also be triggered.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a method for determining an effective touch area according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for determining an effective touch area according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an effective touch area of a control before adjustment according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating an effective touch area of a control after adjustment according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an apparatus for determining an effective touch area according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
To facilitate a clear understanding of the following embodiments, a brief description of the related art is first given:
and (4) control: elements presented in a GUI (Graphical User Interface) can be generally referred to as controls, which can provide a User with certain operations or display certain content.
For example, the control may specifically include a text control, such as a TextView control, an EditText control, and the like, and may also include a Button control, such as a Button control, an ImageButton control, and the like, which is not limited in this embodiment of the present application.
The control can respond to the touch operation of the user to present corresponding functions. The control is provided with a corresponding effective touch area, when the touch position of the touch operation of the user is in the effective touch area of one control, the function corresponding to the control is executed, and when the touch position of the touch operation of the user is not in the effective touch area of one control, the function corresponding to the control is not executed.
The existing control is provided with a corresponding initial effective touch area, and if the touch position of a user is not in the initial effective touch area, the function of the control cannot be triggered. However, due to the reason that the initial effective touch area is small, or the position of the initial effective touch area is not favorable for the user to touch, and the like, when the user needs to trigger the function of the control in the process of using the electronic device, the user may often fail to touch the effective touch area of the control, so that the function of the control cannot be triggered.
In order to solve the above technical problem, as shown in fig. 1, an embodiment of the present invention provides a method for determining an effective touch area, which is applied to an electronic device having a display screen, and the method may include:
step 101: detecting at least two touch operations of a user;
step 102: recording touch information of the at least two touch operations;
step 103: determining a control needing to adjust an effective touch area according to touch information of at least two continuous touch operations;
step 104: and adjusting the boundary of the effective touch area of the control needing to adjust the effective touch area according to the touch information of the at least two continuous touch operations.
In the embodiment of the invention, touch information of touch operation is recorded, a control needing to adjust the effective touch area is determined according to the touch information of at least two continuous touch operations, and the boundary of the effective touch area of the control is adjusted. As can be seen from the above description, in the embodiment of the present invention, the boundary of the effective touch area of the control may be adjusted according to the touch operation, so that when the touch position of the user for touching the control is not in the preset effective touch area, the function corresponding to the control may also be triggered.
In an embodiment of the present invention, the determining, according to the touch information of at least two consecutive touch operations, a control that needs to adjust an effective touch area includes:
and aiming at any two continuous touch operations, executing:
s1: judging whether the touch position of the next touch operation is within the effective touch area of a control according to the touch information of the next touch operation, and if so, executing S2;
s2: and judging whether the previous touch operation meets the condition that the touch position of the previous touch operation is located outside the effective touch area of a first control according to the touch information of the next touch operation and the touch information of the previous touch operation, and if so, determining that the first control is the control needing to adjust the effective touch area, wherein the first control is the control corresponding to the effective touch area where the touch position of the next touch operation is located.
When the touch positions of the touch operations are all in the effective touch area of the control, the boundary of the effective touch area of the control does not need to be adjusted, and only when the touch operations with the touch positions not in the effective touch area exist, the effective touch area can be adjusted according to the touch operations. Therefore, in step S2, only when the previous touch operation satisfies that the touch position is outside the effective touch area of the first control and is the touch operation for the first control, the effective touch area of the first control is adjusted based on the previous touch operation.
In the embodiment of the present invention, it is determined that the effective touch area of the first control needs to be adjusted when the following conditions are simultaneously satisfied:
condition 1: the touch position of the latter touch operation in the two continuous touch operations is in the effective touch area of the first control;
condition 2: the touch position of the previous touch operation in the two continuous touch operations is outside the effective touch area of the first control;
condition 3: the previous touch operation is a touch operation for the first control.
The previous touch operation for the first control means that the user performs the previous touch operation to trigger the function of the first control, or to say, the user performs the previous touch operation to touch the effective touch area of the first control.
In the embodiment of the present invention, whether the previous touch operation is for the first control may be determined by touch information of two consecutive touch operations.
Specifically, how to determine that the first control is the control that needs to adjust the effective touch area may be determined by:
the determining, according to the touch information of the subsequent touch operation and the touch information of the previous touch operation, whether the previous touch operation satisfies that the touch position of the previous touch operation is located outside an effective touch area of a first control and the previous touch operation is a touch operation for the first control, and if so, determining that the first control is a control whose effective touch area needs to be adjusted includes:
determining whether the touch position of the previous touch operation is located outside the effective touch area of the first control according to the touch information of the previous touch operation;
determining whether the closest distance between the touch position of the previous touch operation and the effective touch area of the first control meets a preset position condition or not according to the touch information of the previous touch operation;
determining whether a time interval between the previous touch operation and the next touch operation meets a preset time condition according to the touch information of the next touch operation and the touch information of the previous touch operation;
and judging whether the previous touch operation simultaneously meets the preset position condition and the preset time condition, and if so, determining that the first control is a control needing to adjust the effective touch area.
In the embodiment of the present invention, the touch information may include coordinate information of the touch position, and coordinate information of the boundary of each effective touch area may also be obtained. And determining whether the touch position of the previous touch operation is located outside the effective touch area of the first control or not based on the coordinate information of the touch position of the previous touch operation and the coordinate information of the boundary of the effective touch area of the first control.
In the embodiment of the present invention, since one touch operation may be a region, the center point of the region may be used as the touch position of the touch operation.
The distance between a touch location and a different location of an active touch area may be different, where the closest distance is desired.
In the embodiment of the present invention, the previous touch operation needs to satisfy the preset position condition and the preset time condition at the same time, and it is determined that the previous touch operation is the touch operation for the first control, and then it is determined that the first control is the control whose effective touch area needs to be adjusted.
In an embodiment of the present invention, the touch information includes: coordinate information of the touch position;
determining whether the closest distance between the touch position of the previous touch operation and the effective touch area of the first control meets a preset position condition according to the touch information of the previous touch operation, including:
acquiring coordinate information of an effective touch area of each control;
determining the nearest distance between the touch position of the previous touch operation and the effective touch area of each control according to the coordinate information of the touch position of the previous touch operation and the coordinate information of the effective touch area of each control;
judging whether the first closest distance is smaller than the preset distance and the first closest distance is smaller than the closest distance corresponding to each other control,
the first closest distance is the closest distance between the touch position of the previous touch operation and the effective touch area of the first control;
the preset position condition comprises: the first closest distance is smaller than the preset distance and smaller than the closest distance corresponding to each other control.
In the embodiment of the invention, a rectangular coordinate system is established based on the display screen of the electronic equipment for displaying each control. Specifically, a rectangular coordinate system may be established based on the vertex of the lower left corner or the vertex of the upper left corner of the display screen.
In the embodiment of the present invention, coordinate information of the effective touch area of each control based on the rectangular coordinate system may be obtained, and specifically, the coordinate information of the effective touch area may be an equation used for representing a boundary of the effective touch area.
When the user performs a touch operation, coordinate information of the touch position may be determined based on the rectangular coordinate system, and specifically, the coordinate information may be coordinates of the touch position.
In the embodiment of the present invention, the preset position condition includes: the first closest distance is smaller than the preset distance and the first closest distance is smaller than the closest distance corresponding to each other control.
The first closest distance is smaller than the closest distance corresponding to each other control and is closest to the first control from the touch position of the touch operation before the specification. The first closest distance is smaller than the preset distance, which indicates that the touch position of the previous touch operation is close enough to the first control.
After the preset position condition is met, from the perspective of space, it is stated that the purpose of the user executing the previous touch operation is to trigger the function of the first control.
In the embodiment of the present invention, the preset distance may be a length unit, for example: 1 cm, 0.8 cm, 0.6 cm, etc., and may also be pixel elements, such as: 100 pixels, 80 pixels, 60 pixels, etc.
In an embodiment of the present invention, the touch information includes: touch control time;
determining whether a time interval between the previous touch operation and the next touch operation meets a preset time condition according to the touch information of the next touch operation and the touch information of the previous touch operation, including:
determining a time interval between the next touch operation and the previous touch operation according to the touch time of the next touch operation and the touch time of the previous touch operation;
judging whether the time interval is smaller than a preset time length or not;
wherein the preset time condition comprises: the time interval is less than the preset time length.
In the embodiment of the present invention, since the first control is touched by the next touch operation, and the previous touch operation and the next touch operation are two consecutive touch operations, when the time interval between the two touch operations is less than the preset time length, it indicates that the user performs the next touch operation again in a very short time after the user performs the previous touch operation without touching the required control, and the next touch operation touches the first control, therefore, from the time perspective, it indicates that the user performs the previous touch operation with the purpose of triggering the function of the first control.
If the previous touch operation meets the preset position condition and the preset time condition at the same time, from the perspective of space and time, it is stated that the purpose of the user performing the previous touch operation is to trigger the function of the first control, and therefore, the previous touch operation is the touch operation for the first control.
In the embodiment of the present invention, the preset time length may be 1 second, 2 seconds, 3 seconds, or the like.
In an embodiment of the present invention, the adjusting, according to the touch information of the at least two consecutive touch operations, the boundary of the effective touch area of the control that needs to adjust the effective touch area includes:
determining position information of a user habit position according to touch information of at least one reference touch operation, wherein the reference touch operation is that a touch position is located outside an effective touch area of the first control and is one previous touch operation for the first control;
and adjusting the boundary of the effective touch control area of the first control according to the position information of the user habit position, so that the adjusted effective touch control area of the first control comprises the user habit position.
In the embodiment of the invention, the user habit position refers to a position where a user is accustomed to touch when touching the first control, and the user habit position is located outside the current effective touch area of the first control.
The position information of the user habit position may be determined based on touch information of one reference touch operation, and in this implementation, the user habit position may be a touch position of the reference touch operation, and the boundary of the effective touch area of the first control is adjusted every time there is one reference touch operation.
The position information of the user's habitual position may also be determined based on the touch information of two or more reference touch operations, and in this implementation, the boundary of the effective touch area of the first control is adjusted only when the number of the reference touch operations reaches a preset number. For example: the preset number is 60, and after 60 reference touch operations for the control a have been determined, the effective touch area of the control a may be adjusted.
In the embodiment of the invention, the adjusted effective touch control area of the first control comprises the habit position of the user, so that the function of the first control can be touched when the user touches the habit position of the user again, the real intention of the user is effectively responded, and the user experience is improved.
In an embodiment of the present invention, the touch information includes: coordinate information of the touch position;
the effective touch control area of the first control is rectangular, and one side of the effective touch control area of the first control is parallel to the X axis of the rectangular coordinate system;
the determining the position information of the user habit position according to the touch information of at least one reference touch operation includes:
determining coordinate information (X) of the user's habitual position according to the coordinate information of the touch position of the at least one reference touch operation0,Y0);
Adjusting the boundary of the effective touch area of the first control according to the position information of the user habit position, including:
when the maximum value of the X axis of the current effective touch area of the first control is smaller than X0Adjusting the boundary of the effective touch area of the first control, so that the maximum value of the X axis of the adjusted effective touch area of the first control is X0;
When the minimum value of the X axis of the current effective touch area of the first control is larger than X0Adjusting the boundary of the effective touch area of the first control, so that the minimum value of the X axis of the adjusted effective touch area of the first control is X0;
When the maximum value of the Y axis of the current effective touch area of the first control is smaller than Y0Adjusting the boundary of the effective touch area of the first control, so that the maximum value of the Y axis of the effective touch area of the first control after adjustment is Y0;
When the minimum value of the Y axis of the current effective touch area of the first control is larger than Y0And then, adjusting the boundary of the effective touch area of the first control, so that the minimum value of the Y axis of the adjusted effective touch area of the first control is Y0。
In the embodiment of the invention, the coordinate information of the habitual position of the user is determined by referring to the coordinate information of the touch position of the touch operation. Specifically, when the coordinate information of the user's habitual position is determined by one piece of coordinate information of the touch position of the reference touch operation, the coordinate of the touch position of the reference touch operation is taken as the coordinate of the user's habitual position. When two or more reference touch operations are passedWhen the coordinate information of the user habit position is determined from the coordinate information of the touch position, the average value of the coordinates of the X axis of the touch positions of two or more reference touch operations may be used as X0Taking the average value of the coordinates of the Y axes of the touch positions of two or more reference touch operations as Y0。
By adjusting the effective touch area through the scheme provided by the embodiment of the invention, the habit position of the user can be ensured to be positioned in the effective touch area of the adjusted first control, and the effective touch area of the first control before adjustment is also positioned in the effective touch area of the adjusted first control.
In the embodiment of the present invention, the effective touch area of the first control before adjustment may be a rectangle, or may also be a circle, a triangle, or other shapes.
In the embodiment of the present invention, one side of the adjusted effective touch region of the first control is parallel to the X axis of the rectangular coordinate system, and since the adjusted effective touch region of the first control is rectangular, one side of the remaining three sides is parallel to the X axis, and two sides are parallel to the Y axis.
A method for determining an effective touch area according to an embodiment of the present invention is described in detail below by using a specific example, as shown in fig. 2, the method may include the following steps:
step 201: at least two touch operations of a user are detected.
Step 202: and recording the touch time and the coordinate information of the touch position of the at least two touch operations.
Specifically, the touch time refers to a time when a touch operation touches the touch screen, that is, a time when the touch operation of the user is detected.
Step 203: and acquiring coordinate information of the effective touch area of each control.
Specifically, each control herein refers to a control located on the same interface.
As shown in fig. 3, an interface displayed on a display screen before adjustment is shown, where the interface includes two controls, namely a control E and a control F, which are displayed on the display screen, but an effective touch area 301 of the control E and an effective touch area 302 of the control F are not displayed on the display screen. Fig. 3 also shows that the touch position of the previous touch operation is point H.
Step 204: and judging whether the touch position of the next touch operation is in the effective touch area of the control according to the coordinate information of the touch position of the next touch operation and the coordinate information of the effective touch area of each control, if so, executing the step 205, and otherwise, ending the current process.
Specifically, for convenience of description, the control corresponding to the effective touch area where the touch position of the subsequent touch operation is located is used as the first control.
Assume that the first control is control E in fig. 3.
Step 205: and judging whether the touch position of the previous touch operation is outside the effective touch area of the first control according to the coordinate information of the effective touch area of each control of the coordinate information of the touch position of the previous touch operation, if so, executing a step 206, and if not, ending the current process, wherein the first control is the control corresponding to the effective touch area where the touch position of the next touch operation is located.
In this step, it needs to be determined whether the touch position of the previous touch operation is outside the effective touch area 301 of the control E.
Step 206: and determining the closest distance between the touch position of the previous touch operation and the effective touch area of each control according to the coordinate information of the touch position of the previous touch operation and the coordinate information of the effective touch area of each control, and executing step 207.
In the interface of fig. 3, the closest distance between the touch position of the previous touch operation and the effective touch area 301 of the control E and the closest distance between the touch position of the previous touch operation and the effective touch area 302 of the control F need to be determined.
Step 207: and judging whether the first closest distance is smaller than a preset distance and smaller than the closest distance corresponding to each other control, if so, executing the step 208, otherwise, ending the current process, wherein the first closest distance is the closest distance between the touch position of the previous touch operation and the effective touch area of the first control.
Based on the interface of fig. 3, it needs to be determined whether the closest distance between the touch position of the previous touch operation and the effective touch area 301 of the control E is smaller than the preset distance and the closest distance between the touch position of the previous touch operation and the effective touch area 301 of the control E is smaller than the closest distance between the touch position of the previous touch operation and the effective touch area 302 of the control F.
Step 208: determining a time interval between the next touch operation and the previous touch operation according to the touch time of the next touch operation and the touch time of the previous touch operation, and performing step 209.
Step 209: and judging whether the time interval is smaller than a preset time length, if so, executing the step 210, and otherwise, ending the current process.
Step 210: according to the coordinate information of the touch position of the previous touch operation, the position information of the user habit position is determined, and step 211 is executed.
When the position information of the user habit is determined according to at least one previous touch operation, the touch position of the previous touch operation can be used as the user habit position.
Based on the interface shown in fig. 3, the touch position of the previous touch operation is point H, and then, the user habit position is point H.
Step 211: and adjusting the boundary of the effective touch area of the first control according to the position information of the user habit position, so that the adjusted effective touch area of the first control comprises the user habit position.
Based on the interface shown in fig. 3, the effective touch area of the control E is adjusted based on the point H, so as to obtain an adjusted effective touch area 401, as shown in fig. 4, fig. 4 shows the adjusted effective touch area 401, and also shows the control E, the control F, the effective touch area 301 before adjustment of the control E, the effective touch area 302 of the control F, and the point H.
In the embodiment of the invention, the effective touch control area of the control is adjusted according to the operation habit of the user, and the habit position of the user is included in the effective touch control area, so that when the user habitually clicks the habit position of the user again, the real intention of the user for clicking the control is effectively responded, and the user experience is improved.
In the embodiment of the present invention, the part of the control displayed on the display screen is not changed, that is, the control seen by the user is not changed, and only the effective touch area of the control can be adjusted. Based on the interface shown in fig. 3, control E displayed on the display screen does not send a change.
As shown in fig. 5, an embodiment of the present invention provides an apparatus for determining an effective touch area, where the apparatus includes:
a detecting module 501, configured to detect at least two touch operations of a user;
a recording module 502, configured to record touch information of the at least two touch operations;
a determining module 503, configured to determine, according to the touch information of at least two consecutive touch operations, a control that needs to adjust an effective touch area;
an adjusting module 504, configured to adjust a boundary of the effective touch area of the control that needs to adjust the effective touch area according to the touch information of the at least two consecutive touch operations.
In an embodiment of the present invention, the determining module 503 is configured to, for any two consecutive touch operations, perform:
s1: judging whether the touch position of the next touch operation is within the effective touch area of a control according to the touch information of the next touch operation, and if so, executing S2;
s2: and judging whether the previous touch operation meets the condition that the touch position of the previous touch operation is located outside the effective touch area of a first control according to the touch information of the next touch operation and the touch information of the previous touch operation, and if so, determining that the first control is the control needing to adjust the effective touch area, wherein the first control is the control corresponding to the effective touch area where the touch position of the next touch operation is located.
In an embodiment of the present invention, when the determining module 503 executes the touch information according to the next touch operation and the touch information according to the previous touch operation, and determines whether the previous touch operation satisfies that the touch position of the previous touch operation is outside the effective touch area of a first control and the previous touch operation is the touch operation for the first control, if so, it is determined that the first control is a control whose effective touch area needs to be adjusted, and specifically configured to:
determining whether the touch position of the previous touch operation is located outside the effective touch area of the first control according to the touch information of the previous touch operation;
determining whether the closest distance between the touch position of the previous touch operation and the effective touch area of the first control meets a preset position condition or not according to the touch information of the previous touch operation;
determining whether a time interval between the previous touch operation and the next touch operation meets a preset time condition according to the touch information of the next touch operation and the touch information of the previous touch operation;
and judging whether the previous touch operation simultaneously meets the preset position condition and the preset time condition, and if so, determining that the first control is a control needing to adjust the effective touch area.
In an embodiment of the present invention, the touch information includes: coordinate information of the touch position;
the determining module 503, when the determining module determines whether the closest distance between the touch position of the previous touch operation and the effective touch area of the first control meets a preset position condition according to the touch information of the previous touch operation, is specifically configured to:
acquiring coordinate information of an effective touch area of each control;
determining the nearest distance between the touch position of the previous touch operation and the effective touch area of each control according to the coordinate information of the touch position of the previous touch operation and the coordinate information of the effective touch area of each control;
judging whether the first closest distance is smaller than the preset distance and the first closest distance is smaller than the closest distance corresponding to each other control,
the first closest distance is the closest distance between the touch position of the previous touch operation and the effective touch area of the first control;
the preset position condition comprises: the first closest distance is smaller than the preset distance and smaller than the closest distance corresponding to each other control.
In an embodiment of the present invention, the touch information includes: touch control time;
the determining module 503, when the determining module determines whether the time interval between the previous touch operation and the next touch operation satisfies the preset time condition according to the touch information of the next touch operation and the touch information of the previous touch operation, is specifically configured to:
determining a time interval between the next touch operation and the previous touch operation according to the touch time of the next touch operation and the touch time of the previous touch operation;
judging whether the time interval is smaller than a preset time length or not;
wherein the preset time condition comprises: the time interval is less than the preset time length.
In an embodiment of the present invention, the adjusting module 504 is configured to determine position information of a user habit position according to touch information of at least one reference touch operation, where the reference touch operation is a previous touch operation of the first control, and a touch position of the previous touch operation is located outside an effective touch area of the first control;
and adjusting the boundary of the effective touch control area of the first control according to the position information of the user habit position, so that the adjusted effective touch control area of the first control comprises the user habit position.
In an embodiment of the present invention, the touch information includes: coordinate information of the touch position;
the adjusting module 504, when executing the touch information according to the at least one reference touch operation and determining the position information of the user habit position, is specifically configured to:
determining coordinate information (X) of the user's habitual position according to the coordinate information of the touch position of the at least one reference touch operation0,Y0);
The adjusting module 504, when executing the position information according to the user habit position and adjusting the boundary of the effective touch area of the first control, is specifically configured to:
when the maximum value of the X axis of the current effective touch area of the first control is smaller than X0Adjusting the boundary of the effective touch area of the first control, so that the maximum value of the X axis of the adjusted effective touch area of the first control is X0;
When the minimum value of the X axis of the current effective touch area of the first control is larger than X0Adjusting the boundary of the effective touch area of the first control, so that the minimum value of the X axis of the adjusted effective touch area of the first control is X0;
When the maximum value of the Y axis of the current effective touch area of the first control is smaller than Y0Adjusting the boundary of the effective touch area of the first control, so that the maximum value of the Y axis of the effective touch area of the first control after adjustment is Y0;
When the minimum value of the Y axis of the current effective touch area of the first control is larger than Y0And then, adjusting the boundary of the effective touch area of the first control, so that the minimum value of the Y axis of the adjusted effective touch area of the first control is Y0;
The adjusted effective touch control area of the first control is rectangular, and one side of the adjusted effective touch control area of the first control is parallel to the X axis of the rectangular coordinate system.
An embodiment of the present invention provides an electronic device, including: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is configured to invoke the machine readable program to execute any one of the methods for determining an effective touch area according to the embodiments of the present invention.
Embodiments of the present invention provide a computer-readable medium, on which computer instructions are stored, and when executed by a processor, the computer instructions cause the processor to perform any one of the methods for determining an effective touch area according to the embodiments of the present invention.
It is understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the device for determining the effective touch area. In other embodiments of the present invention, the means for determining the active touch area may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Because the information interaction, execution process, and other contents between the units in the device are based on the same concept as the method embodiment of the present invention, specific contents may refer to the description in the method embodiment of the present invention, and are not described herein again.
The present invention also provides a computer-readable medium storing instructions for causing a computer to perform a method of determining an effective touch area as described herein. Specifically, a system or an apparatus equipped with a storage medium on which software program codes that realize the functions of any of the above-described embodiments are stored may be provided, and a computer (or a CPU or MPU) of the system or the apparatus is caused to read out and execute the program codes stored in the storage medium.
In this case, the program code itself read from the storage medium can realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
Examples of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer via a communications network.
Further, it should be clear that the functions of any one of the above-described embodiments may be implemented not only by executing the program code read out by the computer, but also by causing an operating system or the like operating on the computer to perform a part or all of the actual operations based on instructions of the program code.
Further, it is to be understood that the program code read out from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion unit connected to the computer, and then causes a CPU or the like mounted on the expansion board or the expansion unit to perform part or all of the actual operations based on instructions of the program code, thereby realizing the functions of any of the above-described embodiments.
It should be noted that not all steps and modules in the above flows and system structure diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution order of the steps is not fixed and can be adjusted as required. The system structure described in the above embodiments may be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by a plurality of physical entities, or some components in a plurality of independent devices may be implemented together.
In the above embodiments, the hardware unit may be implemented mechanically or electrically. For example, a hardware element may comprise permanently dedicated circuitry or logic (such as a dedicated processor, FPGA or ASIC) to perform the corresponding operations. The hardware elements may also comprise programmable logic or circuitry, such as a general purpose processor or other programmable processor, that may be temporarily configured by software to perform the corresponding operations. The specific implementation (mechanical, or dedicated permanent, or temporarily set) may be determined based on cost and time considerations.
While the invention has been shown and described in detail in the drawings and in the preferred embodiments, it is not intended to limit the invention to the embodiments disclosed, and it will be apparent to those skilled in the art that various combinations of the code auditing means in the various embodiments described above may be used to obtain further embodiments of the invention, which are also within the scope of the invention.
Claims (8)
1. The method for determining the effective touch area is applied to electronic equipment with a display screen, and is characterized by comprising the following steps of:
detecting at least two touch operations of a user;
recording touch information of the at least two touch operations;
determining a control needing to adjust an effective touch area according to touch information of at least two continuous touch operations;
adjusting the boundary of the effective touch area of the control needing to adjust the effective touch area according to the touch information of the at least two continuous touch operations;
determining a control which needs to adjust an effective touch area according to touch information of at least two continuous touch operations, including:
and aiming at any two continuous touch operations, executing:
s1: judging whether the touch position of the next touch operation is within the effective touch area of a control according to the touch information of the next touch operation, and if so, executing S2;
s2: judging whether the previous touch operation meets the condition that the touch position of the previous touch operation is located outside an effective touch area of a first control according to the touch information of the next touch operation and the touch information of the previous touch operation, wherein the previous touch operation is the touch operation for the first control, and if so, determining the first control as the control needing to adjust the effective touch area, wherein the first control is the control corresponding to the effective touch area where the touch position of the next touch operation is located;
adjusting the boundary of the effective touch area of the control needing to adjust the effective touch area according to the touch information of the at least two continuous touch operations, wherein the adjusting comprises:
determining position information of a user habit position according to touch information of at least one reference touch operation, wherein the reference touch operation is that a touch position is located outside an effective touch area of the first control and is one previous touch operation for the first control;
and adjusting the boundary of the effective touch control area of the first control according to the position information of the user habit position, so that the adjusted effective touch control area of the first control comprises the user habit position.
2. The method of claim 1,
the determining, according to the touch information of the subsequent touch operation and the touch information of the previous touch operation, whether the previous touch operation satisfies that the touch position of the previous touch operation is located outside an effective touch area of a first control and the previous touch operation is a touch operation for the first control, and if so, determining that the first control is a control whose effective touch area needs to be adjusted includes:
determining whether the touch position of the previous touch operation is located outside the effective touch area of the first control according to the touch information of the previous touch operation;
determining whether the closest distance between the touch position of the previous touch operation and the effective touch area of the first control meets a preset position condition or not according to the touch information of the previous touch operation;
determining whether a time interval between the previous touch operation and the next touch operation meets a preset time condition according to the touch information of the next touch operation and the touch information of the previous touch operation;
and judging whether the previous touch operation simultaneously meets the preset position condition and the preset time condition, and if so, determining that the first control is a control needing to adjust the effective touch area.
3. The method of claim 2,
the touch information includes: coordinate information of the touch position;
determining whether the closest distance between the touch position of the previous touch operation and the effective touch area of the first control meets a preset position condition according to the touch information of the previous touch operation, including:
acquiring coordinate information of an effective touch area of each control;
determining the nearest distance between the touch position of the previous touch operation and the effective touch area of each control according to the coordinate information of the touch position of the previous touch operation and the coordinate information of the effective touch area of each control;
judging whether the first closest distance is smaller than the preset distance and the first closest distance is smaller than the closest distance corresponding to each other control,
the first closest distance is the closest distance between the touch position of the previous touch operation and the effective touch area of the first control;
the preset position condition comprises: the first closest distance is smaller than the preset distance and smaller than the closest distance corresponding to each other control.
4. The method of claim 2,
the touch information includes: touch control time;
determining whether a time interval between the previous touch operation and the next touch operation meets a preset time condition according to the touch information of the next touch operation and the touch information of the previous touch operation, including:
determining a time interval between the next touch operation and the previous touch operation according to the touch time of the next touch operation and the touch time of the previous touch operation;
judging whether the time interval is smaller than a preset time length or not;
wherein the preset time condition comprises: the time interval is less than the preset time length.
5. The method of claim 1,
the touch information includes: coordinate information of the touch position;
the determining the position information of the user habit position according to the touch information of at least one reference touch operation includes:
determining coordinate information (X) of the user's habitual position according to the coordinate information of the touch position of the at least one reference touch operation0,Y0);
Adjusting the boundary of the effective touch area of the first control according to the position information of the user habit position, including:
when the maximum value of the X axis of the current effective touch area of the first control is smaller than X0Adjusting the boundary of the effective touch area of the first control, so that the maximum value of the X axis of the adjusted effective touch area of the first control is X0;
When the current effective touch of the first controlThe minimum value of the X axis of the region is larger than X0Adjusting the boundary of the effective touch area of the first control, so that the minimum value of the X axis of the adjusted effective touch area of the first control is X0;
When the maximum value of the Y axis of the current effective touch area of the first control is smaller than Y0Adjusting the boundary of the effective touch area of the first control, so that the maximum value of the Y axis of the effective touch area of the first control after adjustment is Y0;
When the minimum value of the Y axis of the current effective touch area of the first control is larger than Y0And then, adjusting the boundary of the effective touch area of the first control, so that the minimum value of the Y axis of the adjusted effective touch area of the first control is Y0;
The adjusted effective touch control area of the first control is rectangular, and one side of the adjusted effective touch control area of the first control is parallel to the X axis of the rectangular coordinate system.
6. An apparatus for determining an active touch area, the apparatus comprising:
the detection module is used for detecting at least two touch operations of a user;
the recording module is used for recording the touch information of the at least two touch operations;
the determining module is used for determining a control which needs to adjust an effective touch area according to the touch information of at least two continuous touch operations; determining a control which needs to adjust an effective touch area according to touch information of at least two continuous touch operations, including: and aiming at any two continuous touch operations, executing: s1: judging whether the touch position of the next touch operation is within the effective touch area of a control according to the touch information of the next touch operation, and if so, executing S2; s2: judging whether the previous touch operation meets the condition that the touch position of the previous touch operation is located outside an effective touch area of a first control according to the touch information of the next touch operation and the touch information of the previous touch operation, wherein the previous touch operation is the touch operation for the first control, and if so, determining the first control as the control needing to adjust the effective touch area, wherein the first control is the control corresponding to the effective touch area where the touch position of the next touch operation is located;
the adjusting module is used for adjusting the boundary of the effective touch area of the control needing to adjust the effective touch area according to the touch information of the at least two continuous touch operations; adjusting the boundary of the effective touch area of the control needing to adjust the effective touch area according to the touch information of the at least two continuous touch operations, wherein the adjusting comprises: determining position information of a user habit position according to touch information of at least one reference touch operation, wherein the reference touch operation is that a touch position is located outside an effective touch area of the first control and is one previous touch operation for the first control; and adjusting the boundary of the effective touch control area of the first control according to the position information of the user habit position, so that the adjusted effective touch control area of the first control comprises the user habit position.
7. An electronic device, comprising: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor, configured to invoke the machine readable program, to perform the method of any of claims 1 to 5.
8. Computer readable medium, characterized in that it has stored thereon computer instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010457690.9A CN111625177B (en) | 2020-05-26 | 2020-05-26 | Method and device for determining effective touch area and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010457690.9A CN111625177B (en) | 2020-05-26 | 2020-05-26 | Method and device for determining effective touch area and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111625177A CN111625177A (en) | 2020-09-04 |
CN111625177B true CN111625177B (en) | 2021-05-18 |
Family
ID=72271137
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010457690.9A Active CN111625177B (en) | 2020-05-26 | 2020-05-26 | Method and device for determining effective touch area and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111625177B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114442819A (en) * | 2020-10-30 | 2022-05-06 | 深圳Tcl新技术有限公司 | Control identification method based on laser interaction, storage medium and terminal equipment |
CN113360327B (en) * | 2021-05-27 | 2022-11-04 | 维沃移动通信有限公司 | Touch screen fault detection method, device and equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106484278A (en) * | 2015-08-27 | 2017-03-08 | 手持产品公司 | Interactive display |
CN106775068A (en) * | 2016-11-29 | 2017-05-31 | 努比亚技术有限公司 | A kind of touch area control method and intelligent terminal |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799350B (en) * | 2012-06-13 | 2014-07-16 | 优视科技有限公司 | Method and device for determining focal element |
CN103389857A (en) * | 2013-07-24 | 2013-11-13 | 珠海市魅族科技有限公司 | Virtual control regulation method and terminal |
KR102518477B1 (en) * | 2016-05-03 | 2023-04-06 | 삼성전자주식회사 | Method and electronic device for outputting screen |
CN106708363A (en) * | 2016-12-16 | 2017-05-24 | 广东欧珀移动通信有限公司 | Mistaken touch preventive method and device for display interface and mobile terminal |
-
2020
- 2020-05-26 CN CN202010457690.9A patent/CN111625177B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106484278A (en) * | 2015-08-27 | 2017-03-08 | 手持产品公司 | Interactive display |
CN106775068A (en) * | 2016-11-29 | 2017-05-31 | 努比亚技术有限公司 | A kind of touch area control method and intelligent terminal |
Also Published As
Publication number | Publication date |
---|---|
CN111625177A (en) | 2020-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10135967B2 (en) | Invalid area specifying method for touch panel of mobile terminal | |
JP6790259B2 (en) | Methods and terminals to prevent accidental touches | |
US9405463B2 (en) | Device and method for gesturally changing object attributes | |
JP5121963B2 (en) | Electronic device and control method | |
US10042546B2 (en) | Systems and methods to present multiple frames on a touch screen | |
EP3070589B1 (en) | Method and device for resizing selected region of previewing interface | |
US20190034042A1 (en) | Screen control method and electronic device thereof | |
CN107391012B (en) | A kind of information cuing method and mobile terminal | |
US20110242038A1 (en) | Input device, input method, and computer program for accepting touching operation information | |
CN111625177B (en) | Method and device for determining effective touch area and electronic equipment | |
CN107506123A (en) | Regulation operation performs method, apparatus and terminal | |
US10901553B2 (en) | Method for responding to touch operation and electronic device | |
KR20150010516A (en) | Method and apparatus for displaying object by flexible device | |
EP3896558A1 (en) | Method and apparatus for displaying content, and terminal and storage medium | |
US9535604B2 (en) | Display device, method for controlling display, and recording medium | |
US11119622B2 (en) | Window expansion method and associated electronic device | |
CN107562359A (en) | Acquisition parameters adjusting method, device and terminal | |
CN108519848A (en) | A kind of display control method and electronic equipment | |
CN103399711A (en) | Display control method of pop-up window and terminal | |
CN110035171B (en) | Electronic device and operation assistance method | |
CN109085978B (en) | View display method, storage medium and mobile terminal | |
JP6093635B2 (en) | Information processing device | |
JP6625178B2 (en) | Multi-display, control method and program | |
CN106231190A (en) | A kind of based on the double formation method opened of front camera and rear camera and terminal | |
CN112640405A (en) | Display control method and electronic device with double-sided display screen |
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 |