Accidental touch prevention method and related device

By adjusting the anti-mistouch parameters according to the device posture in curved screen electronic devices, the problem of accidental touch when the user is lying down is solved, improving the accuracy of anti-mistouch recognition and user experience.

CN119620878BActive Publication Date: 2026-07-14GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
Filing Date
2023-09-14
Publication Date
2026-07-14

AI Technical Summary

Technical Problem

Existing anti-accidental touch algorithms cannot adapt to users using curved screen electronic devices in a reclining posture, leading to frequent accidental touch problems.

Method used

By determining the device posture of the electronic device, especially its orientation, if the duration exceeds a preset time, the anti-accidental touch parameters of the touchscreen are adjusted to adapt to the lying posture, including adjusting the critical conditions for edge touch operation.

Benefits of technology

Improved accuracy of accidental touch recognition in a lying position, and optimized user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119620878B_ABST
    Figure CN119620878B_ABST
Patent Text Reader

Abstract

The application provides a method and related device for preventing mistaken touch, applied to an electronic device, a touch screen of the electronic device being a curved screen including a planar region and two side edge arc regions, the method comprising: determining a device posture of the electronic device, the device posture including an orientation of the electronic device; if the device posture is a target device posture and a duration of the target device posture is greater than a preset duration, adjusting an initial mistaken touch prevention parameter of the touch screen to a target mistaken touch prevention parameter, the target device posture including a target orientation of the electronic device, the target orientation being used to represent that a ray with an arbitrary point on the planar region as an end point and with the target orientation as a direction has an intersection point with the ground, and an operation region of an edge touch operation including a partial region of the side edge arc region; and processing the edge touch operation according to the target mistaken touch prevention parameter. In this way, the mistaken touch prevention effect of the user in a lying posture is dynamically enhanced, the mistaken touch rate is reduced, and the use experience of the user is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of electronic equipment technology, specifically relating to a method and related device for preventing accidental touches. Background Technology

[0002] With the development of electronic device technology, more and more users are starting to use curved screen electronic devices. However, because the touchscreens of curved screen electronic devices include curved side areas, there is a problem of accidental touches on the side touchscreens. Existing technologies usually set anti-accidental touch algorithms and parameters to solve this problem. However, when users use electronic devices in a reclining posture, they usually increase the grip to prevent the device from falling. In this scenario, existing anti-accidental touch algorithms and parameters are not applicable and are prone to accidental touches. Summary of the Invention

[0003] This application provides a method and related device for preventing accidental touches, aiming to enhance the effect of preventing accidental touches when the user is in a lying position and improve the accuracy of accidental touch recognition.

[0004] In a first aspect, embodiments of this application provide a method for preventing accidental touches, applied to an electronic device, wherein the touchscreen of the electronic device is a curved screen including a planar area and two side arc-shaped areas, and the method includes:

[0005] Determine the device attitude of the electronic device, the device attitude including the orientation of the electronic device;

[0006] If the device posture is the target device posture and the duration of the target device posture is greater than the preset duration, then the initial anti-mistouch parameters of the touch screen are adjusted to the target anti-mistouch parameters. The target device posture includes the target orientation of the electronic device. The target orientation is used to characterize the existence of an intersection point between a ray with any point on the planar area as the endpoint and the target orientation as the direction and the ground. The initial anti-mistouch parameters are used to indicate the critical condition for the electronic device to respond to the user's edge touch operation in a non-target device state. The target device state refers to the device state of the electronic device under the constraint of the target constraint condition. The target constraint condition is that the device posture is the target device posture and the duration is greater than the preset duration. The operation area of ​​the edge touch operation includes a part of the side arc area.

[0007] The edge touch operation is processed according to the target anti-accidental touch parameters.

[0008] Secondly, embodiments of this application provide an electronic device including a processor, a memory, and one or more programs, the one or more programs being stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps in the first aspect of embodiments of this application.

[0009] Thirdly, embodiments of this application provide an anti-accidental touch device applied to an electronic device, wherein the touchscreen of the electronic device is a curved screen with arcs on both sides, and the device includes:

[0010] A determining unit is configured to determine the device attitude of the electronic device, the device attitude including the orientation of the electronic device;

[0011] The parameter adjustment unit is used to adjust the initial anti-mistouch parameters of the touch screen to the target anti-mistouch parameters if the device posture is the target device posture and the duration of the target device posture is greater than a preset duration. The target device posture includes the target orientation of the electronic device. The target orientation is used to characterize the existence of an intersection point between a ray with any point on the planar area as the endpoint and the target orientation as the direction and the ground. The initial anti-mistouch parameters are used to indicate the critical condition for the electronic device to respond to the user's edge touch operation in a non-target device state. The target device state refers to the device state of the electronic device under the constraint of the target constraint condition. The target constraint condition is that the device posture is the target device posture and the duration is greater than the preset duration. The operation area of ​​the edge touch operation includes a part of the side arc area.

[0012] The processing unit is used to process the edge touch operation according to the target anti-accidental touch parameters.

[0013] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program / instructions stored thereon, which, when executed by a processor, implement the steps in the first aspect of embodiments of this application.

[0014] Fifthly, embodiments of this application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps described in the first aspect of embodiments of this application.

[0015] As can be seen, in this embodiment, the electronic device first determines its own device posture, which includes the orientation of the electronic device. If the device posture is the target device posture and the duration of the target device posture is greater than a preset duration, the initial anti-mistouch parameters of the touchscreen are adjusted to the target anti-mistouch parameters. The target device posture includes the target orientation of the electronic device, which represents the intersection of a ray with any point on the planar area of ​​the touchscreen as its endpoint and the target orientation as its direction with the ground. Finally, the edge touch operation is processed according to the target anti-mistouch parameters. In this way, the electronic device can determine whether the user is using the electronic device in a lying position by judging whether its own device posture is the target device posture and whether the duration of the target device posture is greater than a preset duration. When it is determined that the user is using the electronic device in a lying position, the electronic device adjusts the anti-mistouch parameters of the touchscreen to the target anti-mistouch parameters, and then processes the edge touch operation performed by the user in the lying position with the target anti-mistouch parameters. This dynamically enhances the anti-mistouch effect of the user in the lying position, improves the accuracy of anti-mistouch recognition, and optimizes the user experience. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a structural block diagram of an electronic device provided in an embodiment of this application;

[0018] Figure 2 This is a flowchart illustrating a method for preventing accidental touches provided in an embodiment of this application;

[0019] Figure 3a This is a simplified illustration of an electronic device facing a non-target orientation, as provided in an embodiment of this application.

[0020] Figure 3b This is a simplified diagram illustrating an electronic device facing a target orientation, as provided in an embodiment of this application.

[0021] Figure 4 This is a simplified example diagram illustrating the acceleration measurement direction of an electronic device provided in an embodiment of this application;

[0022] Figure 5a This is a functional unit block diagram of an anti-accidental touch device provided in an embodiment of this application;

[0023] Figure 5bThis is a block diagram of the functional units of another anti-accidental touch device provided in the embodiments of this application. Detailed Implementation

[0024] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present application.

[0025] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0026] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0027] Please see Figure 1 , Figure 1 This is a structural block diagram of an electronic device provided in an embodiment of this application. For example... Figure 1 As shown, the electronic device 10 may include one or more of the following components: a processor 11 and a memory 12 coupled to the processor 11, wherein the memory 12 may store one or more computer programs, which may be configured to implement the methods described in the following embodiments when executed by one or more processors 11. The touchscreen of the electronic device is a curved screen including a planar area and two curved side areas; specifically, the electronic device may be a smart device such as a mobile phone terminal with a curved screen.

[0028] Processor 11 may include one or more processing cores. Processor 11 connects to various parts within the electronic device 10 using various interfaces and lines, and performs various functions and processes data of the electronic device 10 by running or executing instructions, programs, code sets, or instruction sets stored in memory 12, and by calling data stored in memory 12. Optionally, processor 11 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 11 may integrate one or more of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into processor 11 and may be implemented separately using a communication chip.

[0029] The memory 12 may include random access memory (RAM) or read-only memory (ROM). The memory 12 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 12 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described above. The data storage area may also store data created by the electronic device 10 during use.

[0030] It is understood that the electronic device 10 may include more or fewer structural elements than those shown in the above block diagram, such as a power module, physical buttons, a Wi-Fi module, a speaker, a Bluetooth module, sensors (such as an accelerometer), etc., without limitation.

[0031] The following describes a method for preventing accidental touches provided by an embodiment of this application.

[0032] Please see Figure 2 , Figure 2 This is a flowchart illustrating a method for preventing accidental touches provided in an embodiment of this application. The method is applied to, for example... Figure 1 In the electronic device 10 shown, such as Figure 2As shown, the method for preventing accidental touches includes:

[0033] Step 201: Determine the device attitude of the electronic device.

[0034] The device posture includes the orientation of the electronic device, which satisfies the following geometric characteristic: a ray with any point on the planar area of ​​the touchscreen as its endpoint and the orientation of the electronic device as its direction is perpendicular to the planar area. For example, when the device posture of the electronic device is parallel to the horizontal plane and the side containing the planar area of ​​the touchscreen is facing upwards, the orientation of the electronic device can be determined to be vertically upwards; or, when the device posture of the electronic device is parallel to the horizontal plane and the side containing the planar area of ​​the touchscreen is facing downwards, the orientation of the electronic device can be determined to be vertically downwards. In this example, the device posture of the electronic device can be used to determine whether the user is using the electronic device in a lying position.

[0035] Step 202: If the device posture is the target device posture and the duration of the target device posture is greater than the preset duration, then the initial anti-mistouch parameters of the touch screen are adjusted to the target anti-mistouch parameters.

[0036] The target device posture includes the target orientation of the electronic device, which represents the intersection of a ray with any point on the planar area as its endpoint and the target orientation as its direction with the ground. The initial anti-mistouch parameter indicates the critical condition for the electronic device to respond to the user's edge touch operation in a non-target device state. The target device state refers to the device state of the electronic device under the constraint of the target constraint condition, which is that the device posture is the target device posture and the duration is greater than the preset duration. The operation area of ​​the edge touch operation includes a portion of the side arc-shaped area. The preset duration is empirical data obtained through statistical analysis of usage records of most users in a lying posture, and is reliable, for example, 10 seconds. The target device state can be equivalent to the device state of the electronic device when the user uses the electronic device in a lying posture. The ground refers to the bottom horizontal surface that provides support in the space where the user is using the electronic device.

[0037] For example, please refer to Figure 3a and Figure 3b , Figure 3a This is a simplified illustration of an electronic device facing a non-target orientation, as provided in an embodiment of this application. Figure 3b This is a simplified example diagram illustrating the target orientation of an electronic device according to an embodiment of this application. Assume the current device orientation of the electronic device is as follows: Figure 3aAs shown, in the three-dimensional coordinate system O'-X'Y'Z', the projection of the electronic device MNPQ onto the ground is the graphic M'N'P'Q', meaning the plane containing the graphic M'N'P'Q' is the ground. Taking any point on the plane region 30 (point A in the figure as an example) as the endpoint, and using the orientation of the plane region 30 as the direction (this direction is perpendicular to the plane region 30), a ray AB is drawn. Since ray AB does not intersect the ground, the orientation of the electronic device is a non-target orientation. Similarly, assuming the current device posture of the electronic device is as follows... Figure 3b As shown, in the three-dimensional coordinate system O'-X'Y'Z', the projection of the electronic device MNPQ on the ground is the graphic Q'P'N'M', that is, the plane where the graphic Q'P'N'M' is located is the ground. At this time, taking any point on the plane region 30 (point A in the figure as an example) as the endpoint, and taking the orientation of the plane region 30 as the direction (this direction is perpendicular to the plane region 30), a ray AC is drawn. Since the ray AC intersects the ground at point D, the orientation of the electronic device is the target orientation, that is, the device posture of the electronic device is the target device posture. After detecting that the duration of the target device posture of the electronic device is longer than the preset duration, it is determined that the user is using the electronic device in a lying posture, thereby adjusting the anti-accidental touch parameters to adapt to the lying scenario.

[0038] Step 203: Process the edge touch operation according to the target anti-accidental touch parameters.

[0039] As can be seen, in this embodiment, the electronic device first determines its own device posture, which includes the orientation of the electronic device. If the device posture is the target device posture and the duration of the target device posture is greater than a preset duration, the initial anti-mistouch parameters of the touchscreen are adjusted to the target anti-mistouch parameters. The target device posture includes the target orientation of the electronic device, which is used to characterize the intersection of a ray with any point on the planar area of ​​the touchscreen as its endpoint and the target orientation as its direction with the horizontal plane. Finally, the edge touch operation is processed according to the target anti-mistouch parameters. In this way, the electronic device can determine whether the user is using the electronic device in a lying position by judging whether its own device posture is the target device posture and whether the duration of the target device posture is greater than a preset duration. When it is determined that the user is using the electronic device in a lying position, the electronic device adjusts the initial anti-mistouch parameters of the touchscreen to the target anti-mistouch parameters, and then processes the edge touch operation performed by the user in the lying position with the target anti-mistouch parameters. This dynamically enhances the anti-mistouch effect of the user in the lying position, improves the accuracy of anti-mistouch recognition, and optimizes the user experience.

[0040] In one possible example, determining the device attitude of the electronic device includes: determining the device attitude of the electronic device based on the three-axis acceleration data of the electronic device.

[0041] The electronic device can measure the triaxial acceleration data using a built-in accelerometer. Each accelerometer has a corresponding mass block for each measurement axis. When the acceleration in a certain measurement direction changes, the mass block slides along that direction, causing a change in the capacitance values. The electronic device can then calculate the acceleration data for that measurement axis based on these capacitance values. Under different device postures, gravity causes the mass block to move to different degrees in different directions, resulting in different accelerations. Therefore, in this example, the electronic device can determine its posture using the measured triaxial acceleration data.

[0042] As can be seen in this example, the electronic device determines its current posture by using its current three-axis acceleration data. Based on the posture, it can determine whether the user is using the electronic device in a lying position, so as to adjust the anti-mistouch parameters, improve the accuracy of anti-mistouch recognition, and optimize the user experience.

[0043] In one possible example, the triaxial acceleration data includes the acceleration 'a' of the electronic device in the Z-axis direction of the reference coordinate system. z The origin of the reference coordinate system is the center point of the electronic device. The X-axis of the reference coordinate system indicates the long side of the electronic device when it is placed perpendicular to the horizontal plane. The Y-axis of the reference coordinate system indicates the short side of the electronic device when it is placed perpendicular to the horizontal plane. The opposite direction of the Z-axis of the reference coordinate system indicates the orientation of the electronic device when it is placed perpendicular to the horizontal plane. Determining the device attitude of the electronic device based on its three-axis acceleration data includes: when a z When <0, the orientation of the electronic device is determined to be the target orientation.

[0044] Please see Figure 4 , Figure 4 This is a simplified example diagram of the acceleration measurement direction of an electronic device provided in an embodiment of this application, such as... Figure 4 As shown, the electronic device is placed perpendicular to the horizontal plane. The X-axis of the reference coordinate system corresponds to the long side of the electronic device, the Y-axis corresponds to the short side, and the Z-axis is perpendicular to the plane XOY. The orientation of the electronic device's touchscreen is opposite to the direction of the Z-axis. That is, when the mass block in the accelerometer moves towards the orientation of the touchscreen under the influence of gravity, the resulting acceleration 'a'... z It is a negative value. When the mass block moves towards the direction of the touchscreen under the influence of gravity, the orientation of the touchscreen at this time can be determined as the target orientation. Therefore, the device posture of the electronic device can be determined as the target device posture, i.e., when the electronic device detects its acceleration 'a' in the Z-axis direction... zWhen the value is negative, the orientation of the electronic device is determined as the target orientation, and thus the current device posture can be determined as the target device posture.

[0045] As can be seen, in this example, the electronic device determines whether it is in the target device posture by the sign of its own acceleration in the Z-axis direction. In this way, it can determine whether the user is using the electronic device in a lying posture by combining the duration of the target device posture, thereby improving the accuracy of device posture recognition, which in turn improves the accuracy of the electronic device in judging the lying posture and enhances the anti-accidental touch effect of the electronic device when the user is in a lying posture.

[0046] In one possible example, the device attitude of the electronic device also includes the angle between the electronic device and the horizontal plane, and the triaxial acceleration data also includes the acceleration α in the X-axis direction. x and acceleration a in the Y-axis direction y The X-axis is used to indicate the long side of the electronic device, and the Y-axis is used to indicate the short side of the electronic device. Determining the device attitude based on the three-axis acceleration data of the electronic device includes: when the electronic device is in portrait mode, calculating the angle R between the electronic device and the horizontal plane using the following formula: When the electronic device is in landscape mode, the angle R between the electronic device and the horizontal plane is calculated using the following formula:

[0047] Furthermore, when the angle between the electronic device and the horizontal plane is within a first preset angle range, the device posture of the electronic device is determined to be the target device posture. The first preset angle range is an angle range obtained by statistical analysis of the angle between the electronic device and the horizontal plane when multiple users use the electronic device in a lying position. The first preset angle range can be, for example, (30°, 90°), that is, this angle range is the most commonly used angle range when users use the electronic device in a lying position. When the orientation of the electronic device is the target orientation, the angle between the electronic device and the horizontal plane is [0°, 90°]. However, in actual application scenarios, users rarely use the electronic device within the angle range of [0°, 30°] and 90°. Therefore, in this example, the method of determining the device posture of the electronic device by combining the angle between the electronic device and the horizontal plane and the orientation of the electronic device is more accurate.

[0048] As can be seen in this example, the electronic device can also calculate the angle between the electronic device and the horizontal plane, and determine the device posture by combining the angle and the orientation of the electronic device. This makes the device posture recognition more accurate, thereby improving the accuracy of the electronic device in judging the lying posture and enhancing the anti-accidental touch effect of the electronic device when the user is in a lying posture.

[0049] In one possible example, the edge touch operation includes an edge swipe operation, the initial anti-mistouch parameter includes a first distance threshold, the first distance threshold being used to indicate the minimum trigger distance at which the edge swipe operation takes effect in the target device state, and adjusting the initial anti-mistouch parameter of the touchscreen to the target anti-mistouch parameter includes: increasing the first distance threshold to the target distance threshold according to the user's target grip posture on the electronic device.

[0050] The first distance threshold is empirical data determined by the cloud server or electronic device by analyzing the common trigger distances for edge swiping operations when most users use the electronic device in a non-lying position. For example, 1 cm. When a user performs an edge swiping operation in a non-lying position, a trigger distance of less than 1 cm will be identified as a mis-touch operation.

[0051] In real-world usage scenarios, users tend to grip electronic devices deeply when lying down, which can easily lead to excessive gripping force causing the hand to slide a large distance across the side area, resulting in accidental touches. Therefore, in this example, after determining the specific target grip posture, the first distance threshold is increased based on that target grip posture, requiring a larger trigger distance when the user performs edge swiping operations while lying down, thus enhancing the anti-accidental touch effect in the lying down posture.

[0052] As can be seen in this example, the electronic device can increase the distance threshold in the anti-mistouch parameters according to the user's grip posture, dynamically enhancing the anti-mistouch effect for edge swiping operations in a lying posture and optimizing the user experience.

[0053] In one possible example, the target grip posture includes a first grip posture and a second grip posture. The first grip posture refers to a grip posture in which the first side arc-shaped area of ​​the touchscreen contacts the web of the user's hand, and the second side arc-shaped area of ​​the touchscreen contacts the user's fingers. The second grip posture refers to a grip posture in which both the first and second side arc-shaped areas of the touchscreen are in contact with the user's fingers. Adjusting the first distance threshold to a target distance threshold based on the user's target grip posture of the electronic device includes: if the target grip posture is the first grip posture, increasing the first distance threshold corresponding to the first side arc-shaped area to a second distance threshold; and increasing the first distance threshold corresponding to the second side arc-shaped area to a third distance threshold, wherein the third distance threshold is less than the second distance threshold; if the target grip posture is the second grip posture, increasing both the first distance threshold corresponding to the first side arc-shaped area and the first distance threshold corresponding to the second side arc-shaped area to the third distance threshold.

[0054] There are two common grip postures for users holding electronic devices while lying down: one is to grip with both the thumb and forefinger, where the thumb contacts the first side arc-shaped area and the fingers contact the second side arc-shaped area; the other is to grip with only the fingers, where both the first and second side arc-shaped areas are in contact with the user's fingers. Optionally, the electronic device determines the user's specific grip posture by detecting the contact area between the user's hand and the touchscreen.

[0055] In this scenario, when a user holds an electronic device in a specific grip posture, the contact area between the web of the hand and the curved side area is larger than that between the fingers and the curved side area. Therefore, when the user grips the device deeply, the sliding distance caused by the web of the hand on the touch area is also relatively greater, increasing the likelihood of accidental touches. Thus, in this scenario, the electronic device increases the first distance threshold corresponding to the first curved side area contacted by the web of the hand to a second distance threshold, and increases the first distance threshold corresponding to the second curved side area contacted by the fingers to a third distance threshold. The second distance threshold should be greater than the third distance threshold. For example, the second distance threshold could be 3 cm, and the third distance threshold could be 2 cm. In this way, setting different distance thresholds for different accidental touch probabilities further enhances the anti-accidental touch effect in a lying posture.

[0056] When a user holds the electronic device in the second grip posture, since both curved side areas are in contact with the fingers, there is no issue of one side having a larger accidental touch area or a higher accidental touch rate in actual use. Therefore, in this scenario, the electronic device simultaneously increases the first distance threshold corresponding to both curved side areas to the third distance threshold to adapt to the usage scenario in a lying posture.

[0057] As can be seen in this example, when the user holds the electronic device in the first grip posture, the electronic device increases the first distance threshold corresponding to the first side arc-shaped area in contact with the thumb to the second distance threshold, and increases the first distance threshold corresponding to the second side arc-shaped area in contact with the fingers to the third distance threshold. When the user holds the electronic device in the second grip posture, the electronic device increases the first distance thresholds corresponding to both the first and second side arc-shaped areas to the third distance threshold. This adjusts the distance thresholds for edge-sliding operations in the anti-mistouch parameters, enhancing the anti-mistouch effect in a lying position.

[0058] In one possible example, the target grip posture is the first grip posture, the edge swipe operation is the user's first edge swipe operation on the first side arc-shaped area, and the processing of the edge touch operation according to the target anti-mistouch parameters includes: if the trigger distance of the first edge swipe operation is greater than or equal to the second distance threshold, then respond to the first edge swipe operation and execute the event corresponding to the first edge swipe operation; if the trigger distance of the first edge swipe operation is less than the second distance threshold, then determine that the first edge swipe operation is a mis-touch operation, and maintain the current screen state.

[0059] Specifically, when a user holds the electronic device in a first grip posture and the electronic device detects a first edge swipe operation by the user on the first side arc-shaped area, it detects the relationship between the trigger distance of the user's first edge swipe operation and a second distance threshold. If the trigger distance is greater than the second distance threshold, it is determined that the user intends to perform an edge swipe operation, and the electronic device responds to the operation by executing the event corresponding to the first edge swipe operation, such as an edge swipe exit event. If the trigger distance is less than the second distance threshold, the first edge swipe operation is not an operation that the user subjectively wants to perform, and the first edge swipe operation is determined to be a mis-touch operation. The electronic device does not respond to this mis-touch operation, thereby maintaining the current screen state unchanged.

[0060] As can be seen in this example, when the user holds the electronic device in the first grip posture and the electronic device detects the user's first edge sliding operation on the first side arc area, the electronic device can determine whether the first edge sliding operation is a mis-touch operation based on the relationship between the trigger distance of the first edge sliding operation and the second distance threshold, and thus execute a response or non-response processing mode, which enhances the anti-mis-touch effect of edge sliding operation in the lying posture.

[0061] In one possible example, the target grip posture is the first grip posture, the edge swipe operation is the user's second edge swipe operation on the second side arc-shaped area, and the processing of the edge touch operation according to the target anti-mistouch parameters includes: if the trigger distance of the second edge swipe operation is greater than or equal to the third distance threshold, then respond to the second edge swipe operation and execute the event corresponding to the second edge swipe operation; if the trigger distance of the second edge swipe operation is less than the third distance threshold, then determine that the second edge swipe operation is a mis-touch operation, and maintain the current screen state.

[0062] Specifically, when a user holds the electronic device in a first grip posture and the electronic device detects a second edge swipe operation by the user on the second side arc-shaped area, it detects the relationship between the trigger distance of the user's second edge swipe operation and a third distance threshold. If the trigger distance is greater than the third distance threshold, it is determined that the user intends to perform an edge swipe operation, and the electronic device responds to the operation by executing the event corresponding to the second edge swipe operation, such as an edge swipe exit event. If the trigger distance is less than the third distance threshold, the second edge swipe operation is not an operation that the user subjectively wants to perform, and the second edge swipe operation is determined to be a mis-touch operation. The electronic device does not respond to this mis-touch operation, thereby maintaining the current screen state unchanged.

[0063] As can be seen in this example, when the user holds the electronic device in the first grip posture and the electronic device detects the user's second edge sliding operation on the second side arc area, the electronic device can determine whether the second edge sliding operation is a mis-touch operation based on the relationship between the trigger distance of the second edge sliding operation and the third distance threshold, and thus execute a response or non-response processing mode, which enhances the anti-mis-touch effect of edge sliding operation in the lying posture.

[0064] In one possible example, the target grip posture is the second grip posture, and the edge swipe operation is a third edge swipe operation by the user targeting the first side arc-shaped area or the second side arc-shaped area. The step of processing the edge touch operation according to the target anti-mistouch parameters includes: if the trigger distance of the third edge swipe operation is greater than or equal to the third distance threshold, then responding to the third edge swipe operation and executing the event corresponding to the third edge swipe operation; if the trigger distance of the third edge swipe operation is less than the third distance threshold, then determining that the third edge swipe operation is a mis-touch operation and maintaining the current screen state.

[0065] Specifically, when a user holds the electronic device in a second grip posture and the electronic device detects a third edge swipe operation by the user on the first or second side arc-shaped area, it detects the relationship between the trigger distance of the user's third edge swipe operation and a third distance threshold. If the trigger distance is greater than the third distance threshold, it is determined that the user intends to perform an edge swipe operation, and the operation is responded to by executing the event corresponding to the third edge swipe operation, such as the pull-down notification box event in landscape mode. If the trigger distance is less than the third distance threshold, the third edge swipe operation is not an operation that the user subjectively wants to perform, and the third edge swipe operation is determined to be a mis-touch operation. The electronic device does not respond to this mis-touch operation, thereby maintaining the current screen state unchanged.

[0066] As can be seen in this example, when the user holds the electronic device in the second grip posture and the electronic device detects the user's third edge sliding operation on the first or second side arc area, the electronic device can determine whether the third edge sliding operation is a mis-touch operation based on the relationship between the trigger distance of the third edge sliding operation and the third distance threshold, and thus execute a response or non-response processing mode, which enhances the anti-mis-touch effect for edge sliding operations in the lying posture.

[0067] In one possible example, the edge touch operation includes an edge long press operation, and the initial anti-mistouch parameter includes a first time threshold. The first time threshold is used to characterize a first empirical time value, which is obtained after statistically analyzing the press time of a preset long press operation performed by the user recorded by the electronic device in the non-target device state. The preset long press operation refers to a preset undo operation performed by the user after performing the edge long press operation. Adjusting the initial anti-mistouch parameter of the touchscreen to the target anti-mistouch parameter includes: reducing the first time threshold to a second time threshold, which is used to characterize a second empirical time value, which is obtained after statistically analyzing the press time of the preset long press operation performed by the user recorded by the electronic device in the target device state.

[0068] Specifically, the preset undo operation can be an operation used to return to the previous display interface. In this example, the preset long press operation means that after the user performs an edge long press operation, the electronic device jumps from the first display interface to the second display interface. Then, the user performs the preset undo operation to make the electronic device return from the second display interface to the first display interface. The preset long press operation is used to indicate that the user's edge long press operation is a mis-touch operation and should not jump to the second display interface.

[0069] The electronic device records the above operations performed by the user in a non-lying position, and records the pressing time of the edge long press operation performed by the user. The cloud server or the electronic device locally can determine the first experience time in a non-lying position based on the multiple pressing times corresponding to multiple users or the multiple pressing times corresponding to a single target user. The first experience time is used as the first time threshold for edge long press operations in a non-lying position. When the edge long press operation performed by the user in a non-lying position exceeds the first time threshold, it is judged as a false touch operation and no response is made.

[0070] Similarly, electronic devices will also record the above operations performed by the user in a lying position, and record the pressing time of the edge long press operation performed by the user in a lying position. The cloud server or the electronic device can determine the second experience time in the lying position based on the multiple pressing times corresponding to multiple users or the multiple pressing times corresponding to a single target user, and use the second experience time as the second time threshold for the edge long press operation in the lying position.

[0071] In this example, both the first and second time thresholds are empirical values ​​obtained by the cloud server or electronic device through data analysis of the user's behavior data and are pre-stored in the electronic device. They are reliable and can be directly called. Therefore, when the electronic device detects that the user is using the electronic device in a lying position, the first time threshold of the touch screen is adjusted to the second time threshold to adjust the anti-mistouch parameters corresponding to the edge long press operation.

[0072] As can be seen in this example, the electronic device adjusts the time threshold directly when it detects that the user is using the electronic device in a lying position, based on the pre-stored time threshold data. This dynamically enhances the anti-accidental touch effect for long-press operations on the edge in a lying position and optimizes the user experience.

[0073] In one possible example, processing the edge touch operation according to the target anti-mistouch parameter includes: if the press time of the edge long press operation is less than the second time threshold, then responding to the edge long press operation and executing the event corresponding to the edge long press operation; if the press time of the edge long press operation is greater than or equal to the second time threshold, then determining that the edge long press operation is a mis-touch operation and maintaining the current screen state.

[0074] Specifically, when the user's edge long press operation has a pressing time less than the second time threshold, it indicates that the user intends to perform the edge long press operation. In this case, the operation is responded to, and the corresponding event for the edge long press operation is executed, such as the application icon entering a draggable state event. When the pressing time is greater than or equal to the second time threshold, it indicates that the edge long press operation is not an operation that the user subjectively wants to perform. The edge long press operation is determined to be a mis-touch operation, and the electronic device does not respond to this mis-touch operation, thereby maintaining the current screen state unchanged.

[0075] As can be seen in this example, the electronic device can determine whether the edge long press operation is a mis-touch operation based on the relationship between the pressing time of the edge long press operation and the second time threshold, and thus perform a response or non-response processing method, which enhances the anti-mis-touch effect of edge long press operation in the lying posture.

[0076] In other possible examples, when an electronic device detects that the user's currently used application is playing a portrait video, it checks whether the application has a function corresponding to the edge long press operation, such as a video speed-up function. If so, it disables the anti-accidental touch function for the edge long press operation.

[0077] In this example, considering that some users have the habit of pressing the curved side area for a long time to speed up the playback when watching portrait videos, in order to avoid conflicts between the speed-up playback function and the anti-mistouch function, when a third-party application supports the speed-up playback function using edge long press, the anti-mistouch function for edge long press is turned off to further improve the user experience.

[0078] For embodiments consistent with those shown above, please refer to... Figure 5a , Figure 5a This is a functional unit block diagram of an anti-accidental touch device provided in an embodiment of this application, such as... Figure 5a As shown, the anti-mistouch device 50 includes: a determining unit 501, used to determine the device posture of the electronic device, the device posture including the orientation of the electronic device; a parameter adjusting unit 502, used to adjust the initial anti-mistouch parameters of the touch screen to the target anti-mistouch parameters if the device posture is the target device posture and the duration of the target device posture is greater than a preset duration, the target device posture including the target orientation of the electronic device, the target orientation being used to characterize the existence of an intersection point between a ray with any point on the planar area as an endpoint and the target orientation as a direction and the ground, the initial anti-mistouch parameters being used to indicate the critical condition for the electronic device to respond to the user's edge touch operation in a non-target device state, the target device state referring to the device state of the electronic device under the constraint of the target constraint condition, the target constraint condition being that the device posture is the target device posture and the duration is greater than the preset duration, the operation area of ​​the edge touch operation including a portion of the side arc area; and a processing unit 503, used to process the edge touch operation according to the target anti-mistouch parameters.

[0079] In one possible example, in determining the device attitude of the electronic device, the determining unit 501 is specifically configured to: determine the device attitude of the electronic device based on the triaxial acceleration data of the electronic device.

[0080] In one possible example, the triaxial acceleration data includes the acceleration 'a' of the electronic device in the Z-axis direction of the reference coordinate system. zThe origin of the reference coordinate system is the center point of the electronic device. The X-axis of the reference coordinate system indicates the long side of the electronic device when it is placed perpendicular to the horizontal plane. The Y-axis of the reference coordinate system indicates the short side of the electronic device when it is placed perpendicular to the horizontal plane. The opposite direction of the Z-axis of the reference coordinate system is the orientation of the electronic device when it is placed perpendicular to the horizontal plane. In determining the device attitude of the electronic device based on its three-axis acceleration data, the determining unit 501 is specifically used to: when a z When <0, the orientation of the electronic device is determined to be the target orientation.

[0081] In one possible example, the device attitude of the electronic device also includes the angle between the electronic device and the horizontal plane, and the triaxial acceleration data also includes the acceleration α in the X-axis direction. x and acceleration a in the Y-axis direction y The X-axis is used to indicate the long side of the electronic device, and the Y-axis is used to indicate the short side of the electronic device. Regarding determining the device attitude of the electronic device based on its three-axis acceleration data, the determining unit 501 is specifically used to: when the electronic device is in portrait mode, calculate the angle R between the electronic device and the horizontal plane using the following formula: When the electronic device is in landscape mode, the angle R between the electronic device and the horizontal plane is calculated using the following formula:

[0082] In one possible example, the edge touch operation includes an edge swipe operation, and the initial anti-mistouch parameter includes a first distance threshold, which is used to indicate the minimum trigger distance at which the edge swipe operation takes effect in the target device state. In terms of adjusting the initial anti-mistouch parameter of the touch screen to the target anti-mistouch parameter, the parameter adjustment unit 502 is specifically used to: increase the first distance threshold to the target distance threshold according to the user's target grip posture on the electronic device.

[0083] In one possible example, the target grip posture includes a first grip posture and a second grip posture. The first grip posture refers to a grip posture in which the first side arc-shaped area of ​​the touchscreen contacts the web of the user's hand, and the second side arc-shaped area of ​​the touchscreen contacts the user's fingers. The second grip posture refers to a grip posture in which both the first and second side arc-shaped areas of the touchscreen are in contact with the user's fingers. Regarding adjusting the first distance threshold to a target distance threshold based on the user's target grip posture of the electronic device, the parameter adjustment unit 502 is specifically used for: if the target grip posture is the first grip posture, increasing the first distance threshold corresponding to the first side arc-shaped area to a second distance threshold; and increasing the first distance threshold corresponding to the second side arc-shaped area to a third distance threshold, the third distance threshold being less than the second distance threshold; if the target grip posture is the second grip posture, increasing both the first distance threshold corresponding to the first side arc-shaped area and the first distance threshold corresponding to the second side arc-shaped area to the third distance threshold.

[0084] In one possible example, the target grip posture is the first grip posture, and the edge swipe operation is the user's first edge swipe operation on the first side arc-shaped area. In terms of processing the edge touch operation according to the target anti-mistouch parameters, the processing unit 503 is specifically used to: if the trigger distance of the first edge swipe operation is greater than or equal to the second distance threshold, then respond to the first edge swipe operation and execute the event corresponding to the first edge swipe operation; if the trigger distance of the first edge swipe operation is less than the second distance threshold, then determine that the first edge swipe operation is a mis-touch operation and maintain the current screen state.

[0085] In one possible example, the target grip posture is the first grip posture, and the edge swipe operation is a second edge swipe operation by the user targeting the second side arc-shaped area. Regarding the processing of the edge touch operation according to the target anti-mistouch parameters, the parameter adjustment unit 502 is specifically configured to: if the trigger distance of the second edge swipe operation is greater than or equal to the third distance threshold, then respond to the second edge swipe operation and execute the event corresponding to the second edge swipe operation; if the trigger distance of the second edge swipe operation is less than the third distance threshold, then determine that the second edge swipe operation is a mis-touch operation and maintain the current screen state.

[0086] In one possible example, the target grip posture is the second grip posture, and the edge swipe operation is a third edge swipe operation by the user targeting the first side arc area or the second side arc area. Regarding the processing of the edge touch operation according to the target anti-mistouch parameters, the processing unit 503 is specifically configured to: if the trigger distance of the third edge swipe operation is greater than or equal to the third distance threshold, then respond to the third edge swipe operation and execute the event corresponding to the third edge swipe operation; if the trigger distance of the third edge swipe operation is less than the third distance threshold, then determine that the third edge swipe operation is a mis-touch operation and maintain the current screen state.

[0087] In one possible example, the edge touch operation includes an edge long press operation, and the initial anti-mistouch parameter includes a first time threshold. The first time threshold is used to characterize a first empirical time value, which is obtained after statistically analyzing the press time of a preset long press operation performed by the user recorded by the electronic device in the non-target device state. The preset long press operation refers to a preset undo operation performed by the user after performing the edge long press operation. In adjusting the initial anti-mistouch parameter of the touchscreen to the target anti-mistouch parameter, the parameter adjustment unit 502 is specifically used to: reduce the first time threshold to a second time threshold, which is used to characterize a second empirical time value, which is obtained after statistically analyzing the press time of the preset long press operation performed by the user recorded by the electronic device in the target device state.

[0088] In one possible example, in processing the edge touch operation according to the target anti-mistouch parameter, the processing unit 503 is specifically configured to: if the pressing time of the edge long press operation is less than the second time threshold, then respond to the edge long press operation and execute the event corresponding to the edge long press operation; if the pressing time of the edge long press operation is greater than or equal to the second time threshold, then determine that the edge long press operation is a mis-touch operation and maintain the current screen state.

[0089] It is understood that since the method embodiments and the device embodiments are different presentations of the same technical concept, the content of the method embodiment section in this application should be adapted to the device embodiment section in a synchronous manner, and will not be repeated here.

[0090] When using integrated units, such as Figure 5b As shown, Figure 5b This is a functional unit block diagram of another anti-accidental touch device provided in an embodiment of this application. Figure 5bThe anti-accidental touch device 50 includes a processing module 52 and a communication module 51. The processing module 52 controls and manages the operation of the anti-accidental touch device, for example, executing the steps of the determining unit 501, the parameter adjusting unit 502, and the processing unit 503, and / or performing other processes of the technology described herein. The communication module 51 supports interaction between the anti-accidental touch device and other devices. Figure 5b As shown, the anti-accidental touch device may also include a storage module 53, which is used to store the program code and data of the anti-accidental touch device.

[0091] The processing module 52 can be a processor or controller, such as a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an ASIC, an FPGA, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc. The communication module 51 can be a transceiver, RF circuitry, or a communication interface, etc. The storage module 53 can be a memory.

[0092] All relevant content in each scenario involved in the above method embodiments can be referenced from the functional descriptions of the corresponding functional modules, and will not be repeated here. The above-mentioned anti-accidental touch device 50 can all perform the above-mentioned functions. Figure 2 The method for preventing accidental touches is shown.

[0093] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more sets of available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. A semiconductor medium can be a solid-state drive.

[0094] This application also provides a computer storage medium storing a computer program / instructions thereon, which, when executed by a processor, implements some or all of the steps of any of the methods described in the above method embodiments.

[0095] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be an application program involved in the above embodiments.

[0096] It should be understood that in the various embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0097] In the several embodiments provided in this application, it should be understood that the disclosed methods, apparatuses, and systems can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for example, the division of units is merely a logical functional division, and other division methods may exist in actual implementation; for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0098] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0099] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can be physically comprised separately, or two or more units can be integrated into one unit. The integrated unit described above can be implemented in hardware or in the form of hardware plus software functional units.

[0100] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device to execute some steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: a USB flash drive, a portable hard disk, a magnetic disk, an optical disk, volatile memory, or non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDR SDRAM), enhanced synchronous DRAM (ESDRAM), synchronous linked DRAM (SLDRAM), and direct rambus RAM (DR RAM), etc., which are various media capable of storing program code.

[0101] While the present invention has been disclosed above, it is not limited thereto. Any person skilled in the art can easily conceive of variations or substitutions without departing from the spirit and scope of the present invention, and various modifications and alterations can be made, including combinations of the different functions and implementation steps described above, as well as software and hardware implementation methods, all of which are within the protection scope of the present invention.

Claims

1. A method for preventing accidental touches, characterized in that, Applied to electronic devices, wherein the touchscreen of the electronic device is a curved screen comprising a planar area and two curved side areas, the method includes: Determine the device attitude of the electronic device, the device attitude including the orientation of the electronic device; If the device posture is detected to be the target device posture and the duration of the target device posture is greater than a preset duration, the target device posture includes the target orientation of the electronic device. The target orientation is used to characterize the existence of an intersection point between a ray with any point on the planar area as the endpoint and the target orientation as the direction and the ground. If the user's target grip posture on the electronic device is a first grip posture, then the first distance threshold corresponding to the first side arc area is increased to a second distance threshold. The first grip posture refers to a grip posture in which the first side arc area of ​​the touch screen contacts the web of the user's hand and the second side arc area of ​​the touch screen contacts the user's fingers. Furthermore, the first distance threshold corresponding to the second side arc area is increased to a third distance threshold, where the third distance threshold is less than the second distance threshold. If the user's target grip posture on the electronic device is the second grip posture, then the first distance threshold corresponding to the first side arc area and the first distance threshold corresponding to the second side arc area are both increased to the third distance threshold. The second grip posture refers to the grip posture in which both the first side arc area and the second side arc area of ​​the touch screen are in contact with the user's fingers. Wherein, the first distance threshold is used to indicate the critical condition for the electronic device to respond to the user's edge touch operation in a non-target device state, the target device state refers to the device state of the electronic device under the constraint of the target constraint condition, the target constraint condition is that the device posture is the target device posture and the duration is greater than the preset duration, the operation area of ​​the edge touch operation includes a part of the side arc area, the edge touch operation includes the edge sliding operation, and the first distance threshold is used to indicate the minimum trigger distance for the edge sliding operation to take effect in the target device state; The edge sliding operation is processed according to the adjusted first distance threshold.

2. The method according to claim 1, characterized in that, Determining the device attitude of the electronic device includes: The device attitude of the electronic device is determined based on the three-axis acceleration data of the electronic device.

3. The method according to claim 2, characterized in that, The triaxial acceleration data includes the acceleration of the electronic device in the Z-axis direction of the reference coordinate system. The origin of the reference coordinate system is the center point of the electronic device. The X-axis of the reference coordinate system indicates the long side of the electronic device when it is placed perpendicular to the horizontal plane. The Y-axis of the reference coordinate system indicates the short side of the electronic device when it is placed perpendicular to the horizontal plane. The opposite direction of the Z-axis of the reference coordinate system indicates the orientation of the electronic device when it is placed perpendicular to the horizontal plane. Determining the device attitude of the electronic device based on its three-axis acceleration data includes: when When the orientation of the electronic device is determined to be the target orientation, the orientation of the electronic device is determined to be the target orientation.

4. The method according to claim 3, characterized in that, The device attitude of the electronic device also includes the angle between the electronic device and the horizontal plane, and the triaxial acceleration data also includes acceleration in the X-axis direction. and acceleration in the Y-axis direction The step of determining the device attitude of the electronic device based on its triaxial acceleration data includes: When the electronic device is in portrait mode, the angle R between the electronic device and the horizontal plane is calculated using the following formula: ; When the electronic device is in landscape mode, the angle R between the electronic device and the horizontal plane is calculated using the following formula: .

5. The method according to claim 1, characterized in that, The target grip posture is the first grip posture, the edge sliding operation is the user's first edge sliding operation on the first side arc-shaped area, and the processing of the edge sliding operation according to the adjusted first distance threshold includes: If the trigger distance of the first edge sliding operation is greater than or equal to the second distance threshold, then respond to the first edge sliding operation and execute the event corresponding to the first edge sliding operation; If the trigger distance of the first edge swipe operation is less than the second distance threshold, then the first edge swipe operation is determined to be a mis-touch operation, and the current screen state is maintained.

6. The method according to claim 1, characterized in that, The target grip posture is the first grip posture, and the edge sliding operation is the user's second edge sliding operation on the second side arc-shaped area. The step of processing the edge sliding operation according to the adjusted first distance threshold includes: If the trigger distance of the second edge sliding operation is greater than or equal to the third distance threshold, then respond to the second edge sliding operation and execute the event corresponding to the second edge sliding operation; If the trigger distance of the second edge swipe operation is less than the third distance threshold, then the second edge swipe operation is determined to be a mis-touch operation, and the current screen state is maintained.

7. The method according to claim 1, characterized in that, The target grip posture is the second grip posture, and the edge sliding operation is a third edge sliding operation by the user targeting the first side arc-shaped area or the second side arc-shaped area. The step of processing the edge sliding operation according to the adjusted first distance threshold includes: If the trigger distance of the third edge sliding operation is greater than or equal to the third distance threshold, then respond to the third edge sliding operation and execute the event corresponding to the third edge sliding operation; If the trigger distance of the third edge swipe operation is less than the third distance threshold, then the third edge swipe operation is determined to be a mis-touch operation, and the current screen state is maintained.

8. An electronic device, characterized in that, It includes a processor, a memory, and one or more programs, said one or more programs being stored in the memory and configured to be executed by the processor, said programs including instructions for performing the steps in the method as claimed in any one of claims 1-7.

9. A device for preventing accidental touch, characterized in that, Applied to electronic devices, wherein the touchscreen of the electronic device is a curved screen with arcs on both sides, the device includes: A determining unit is configured to determine the device attitude of the electronic device, the device attitude including the orientation of the electronic device; A parameter adjustment unit is configured to detect that the device posture is a target device posture and the duration of the target device posture is greater than a preset duration. The target device posture includes the target orientation of the electronic device, which is used to characterize the intersection of a ray with any point on the plane as an endpoint and the target orientation as a direction with the ground. Furthermore, if the user's target grip posture on the electronic device is a first grip posture, the first distance threshold corresponding to the first side arc-shaped area is increased to a second distance threshold. The first grip posture refers to a grip posture where the first side arc-shaped area of ​​the touchscreen contacts the user's thumb and forefinger, and the second side arc-shaped area of ​​the touchscreen contacts the user's fingers. Additionally, the first distance threshold corresponding to the second side arc-shaped area is increased to a third distance threshold, where the third distance threshold is less than the second distance threshold. If the user's target grip posture on the electronic device is the second grip posture, then the first distance threshold corresponding to the first side arc area and the first distance threshold corresponding to the second side arc area are both increased to the third distance threshold. The second grip posture refers to the grip posture in which both the first side arc area and the second side arc area of ​​the touch screen are in contact with the user's fingers. Wherein, the first distance threshold is used to indicate the critical condition for the electronic device to respond to the user's edge touch operation in a non-target device state, the target device state refers to the device state of the electronic device under the constraint of the target constraint condition, the target constraint condition is that the device posture is the target device posture and the duration is greater than the preset duration, the operation area of ​​the edge touch operation includes a part of the side arc area, the edge touch operation includes the edge sliding operation, and the first distance threshold is used to indicate the minimum trigger distance for the edge sliding operation to take effect in the target device state; The processing unit is used to process the edge sliding operation according to the adjusted first distance threshold.

10. A computer-readable storage medium having a computer program / instructions stored thereon, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1-7.