Sliding touch control method and device for touch screen, storage medium and electronic device

By determining the coordinates of the end-of-time report point on the touch screen and controlling the scrolling of the display page, the problems of stagnation and interruption in the sliding operation of the touch screen are solved, and the smoothness and user experience of the sliding operation are improved.

CN114077376BActive Publication Date: 2025-06-20BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010796819.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-10
Publication Date
2025-06-20
Estimated Expiration
2040-08-10

AI Technical Summary

Technical Problem

The touch screen of electronic devices may experience stagnation or interruption when the user slides, resulting in poor user experience.

Method used

By responsive to obtaining the coordinates of the end contact on the touch screen by sliding operations, determining the coordinates of the end report point at the time, and controlling the touch screen to scroll the display page the final time according to the distance between the coordinates of the end report point at the time and the coordinates of the end report point at the time.

Benefits of technology

It avoids rolling speed braking caused by the close distance between the points at the end of the sliding, improves the hand performance and sliding stability of the touch screen, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114077376B_ABST
    Figure CN114077376B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method and device for sliding touch control of a touch screen, a storage medium, and an electronic device, aiming to solve the technical problem of unsmooth display pages during sliding operations on the touch screen. The method includes: in response to obtaining the coordinates of the last contact point of a sliding operation on the touch screen, determining the coordinates of the penultimate reported point, where a reported point is a contact point reported by the touch screen in response to the sliding operation; determining the coordinates of the last reported point according to the coordinates of the penultimate reported point, wherein the distance between the coordinates of the last reported point and the coordinates of the penultimate reported point is equal to the distance between the coordinates of the penultimate reported point and the coordinates of the previous reported point adjacent to the penultimate reported point; controlling the touch screen to perform the final scroll of the display page according to the distance between the coordinates of the penultimate reported point and the coordinates of the last reported point. In this way, the follow-up performance and sliding stability of the touch screen can be improved, avoiding stuttering and touch interruption phenomena, and improving the smoothness of the display page during sliding operations on the touch screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of touch screen control, and particularly to a sliding touch control method and device for a touch screen, a storage medium, and an electronic device. Background Art

[0002] When a user performs a sliding operation on the touch screen of an electronic device, a stuttering phenomenon may occur. For example, when the user's finger has completed a sliding action on the touch interface, the display page of the touch screen lags for a short time before sliding to the corresponding display page. In some cases, the touch screen may even fail to slide to the corresponding display page, resulting in a touch interruption phenomenon. Therefore, users report that the touch screen sliding is not sensitive enough, especially during game operations or web browsing, where stuttering or touch interruption occurs, causing the page display to be unsmooth during the touch screen sliding operation and resulting in a poor user experience.

[0003] In the related art, when it is determined that the user's sliding operation ends, the coordinates of the last contact point are used as the last reported point. Then, the coordinates of the sub-last reported point are calculated based on the coordinates of the last reported point, the current coordinates of the last reported point, and the coordinates of the previous reported point of the current last reported point. Based on the coordinates of the last reported point and the sub-last reported point, the scrolling speed within 1 frame is calculated, and the touch screen is controlled to perform the final scrolling of the display page. Summary of the Invention

[0004] To overcome the problems existing in the related art, the present disclosure provides a sliding touch control method and device for a touch screen, a storage medium, and an electronic device.

[0005] According to a first aspect of an embodiment of the present disclosure, a sliding touch control method for a touch screen is provided. The method includes:

[0006] In response to obtaining the coordinates of the last contact point of a sliding operation on the touch screen, determining the coordinates of the sub-last reported point, where the reported point is a contact point reported by the touch screen in response to the sliding operation;

[0007] Determining the coordinates of the last reported point based on the coordinates of the sub-last reported point, where the distance between the coordinates of the last reported point and the coordinates of the sub-last reported point is equal to the distance between the coordinates of the sub-last reported point and the coordinates of the previous reported point adjacent to the sub-last reported point;

[0008] Controlling the touch screen to perform the final scrolling of the display page based on the distance between the coordinates of the sub-last reported point and the coordinates of the last reported point.

[0009] Optionally, the step of in response to obtaining the coordinates of the last contact point of a sliding operation on the touch screen, determining the coordinates of the sub-last reported point includes:

[0010] Determine the coordinates of the penultimate reported point based on the coordinates of the last contact point and the previous reported point adjacent to the penultimate reported point.

[0011] Optionally, the determining the coordinates of the penultimate reported point based on the coordinates of the last contact point and the previous reported point adjacent to the penultimate reported point includes:

[0012] Calculate the coordinates D of the penultimate reported point through the following formula:

[0013] D = kB+(1 - k)C;

[0014] where k is a preset filtering coefficient, B is the previous reported point adjacent to the penultimate reported point, and C is the coordinates of the last contact point.

[0015] Optionally, the determining the coordinates of the last reported point based on the coordinates of the penultimate reported point includes:

[0016] On the extension line of the previous reported point adjacent to the penultimate reported point and the penultimate reported point, determine the coordinates of the last reported point based on the distance between the coordinates of the previous reported point and the coordinates of the penultimate reported point.

[0017] Optionally, before the determining the coordinates of the last reported point based on the coordinates of the penultimate reported point, it includes:

[0018] Determine that the number of pixel points between the last contact point and the target edge of the touch screen exceeds a preset pixel point number threshold according to the coordinates of the last contact point, and the target edge is the edge on the touch screen in the sliding operation direction.

[0019] According to a second aspect of the embodiments of the present disclosure, there is provided a sliding touch device for a touch screen, including:

[0020] A first determination module configured to determine the coordinates of a penultimate reported point in response to obtaining the coordinates of a last contact point of a sliding operation on the touch screen, where the reported point is a contact point reported by the touch screen in response to the sliding operation;

[0021] A second determination module configured to determine the coordinates of the last reported point according to the coordinates of the penultimate reported point, where the distance between the coordinates of the last reported point and the coordinates of the penultimate reported point is equal to the distance between the coordinates of the penultimate reported point and the coordinates of the previous reported point adjacent to the penultimate reported point;

[0022] A control module configured to control the touch screen to perform a final scroll on the display page according to the distance between the coordinates of the penultimate reported point and the coordinates of the last reported point.

[0023] Optionally, the first determination module is configured to determine the coordinates of the second-to-last reported point according to the coordinates of the last contact point and the previous reported point adjacent to the second-to-last reported point.

[0024] Optionally, the first determination module calculates the coordinates D of the second-to-last reported point through the following formula:

[0025] D = kB + (1 - k)C;

[0026] where k is a preset filtering coefficient, B is the previous reported point adjacent to the second-to-last reported point, and C is the coordinates of the last contact point

[0027] The second determination module is specifically configured to determine the coordinates of the last reported point on the extension line between the previous reported point adjacent to the second-to-last reported point and the second-to-last reported point, based on the distance between the coordinates of the previous reported point and the coordinates of the second-to-last reported point.

[0028] Optionally, the device further includes:

[0029] A third determination module, configured to determine that the number of pixel points between the last contact point and the target edge of the touch screen exceeds a preset pixel point number threshold, where the target edge is the edge on the touch screen in the sliding operation direction.

[0030] According to a third aspect of the embodiments of the present disclosure, a sliding touch device for a touch screen is provided, including:

[0031] A processor;

[0032] A memory for storing instructions executable by the processor;

[0033] Wherein, the processor is configured to:

[0034] In response to obtaining the coordinates of the last contact point of a sliding operation on the touch screen, determine the coordinates of the second-to-last reported point, where the reported point is the contact point reported by the touch screen in response to the sliding operation;

[0035] Determine the coordinates of the last reported point according to the coordinates of the second-to-last reported point, where the distance between the coordinates of the last reported point and the coordinates of the second-to-last reported point is equal to the distance between the coordinates of the second-to-last reported point and the previous reported point adjacent to the second-to-last reported point;

[0036] Control the touch screen to perform a final scroll on the display page according to the distance between the coordinates of the second-to-last reported point and the coordinates of the last reported point.

[0037] According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium storing computer program instructions thereon, and when the program instructions are executed by a processor, the steps of the sliding touch control method of the touch screen provided in the first aspect of the present disclosure are implemented.

[0038] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: According to the coordinates of the end contact point of the user's sliding operation on the touch screen, the coordinates of the second-to-last reported point are determined, and then according to the coordinates of the end contact point and the coordinates of the second-to-last reported point, the coordinates of the last reported point are determined, wherein the distance between the coordinates of the last reported point and the coordinates of the second-to-last reported point is equal to the distance between the coordinates of the second-to-last reported point and the coordinates of the previous reported point adjacent to the second-to-last reported point; finally, according to the distance between the coordinates of the second-to-last reported point and the coordinates of the last reported point, the touch screen is controlled to perform the final scroll of the display page. In this way, it is possible to avoid the braking of the scrolling speed caused by the close distance between the reported points at the end of the sliding, avoid the phenomenon of jamming and touch interruption during the sliding process, improve the follow-up performance and sliding stability of the touch screen, and thus improve the fluency of the display page during the sliding operation of the touch screen.

[0039] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.

[0041] Figure 1 is a flowchart of a sliding touch control method of a touch screen shown according to an exemplary embodiment.

[0042] Figure 2 is a flowchart of another sliding touch control method of a touch screen shown according to an exemplary embodiment.

[0043] Figure 3 is a schematic diagram of determining the pixel points between the end contact point and the target edge shown according to an exemplary embodiment.

[0044] Figure 4 is a flowchart of another sliding touch control method of a touch screen shown according to an exemplary embodiment.

[0045] Figure 5 is a block diagram of a sliding touch control device of a touch screen shown according to an exemplary embodiment.

[0046] Figure 6 is a block diagram of another sliding touch control device of a touch screen shown according to an exemplary embodiment.

[0047] Figure 7 It is a block diagram of a sliding touch control device for a touch screen shown according to an exemplary embodiment. Detailed implementation manners

[0048] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0049] It should be noted that in the present disclosure, terms such as "first" and "second" in the specification, claims, and drawings are used to distinguish similar objects, and do not necessarily need to be understood as describing a specific order or sequence. Similarly, terms such as "S11" and "S12" are used to distinguish steps, and do not necessarily need to be understood as executing method steps in a specific order or sequence.

[0050] Before introducing the sliding touch control method and device for a touch screen, electronic device, and storage medium provided by the present disclosure, first, the application scenarios of the present disclosure will be introduced. The sliding touch control method for a touch screen provided by the present disclosure can be applied to an electronic device, and the electronic device includes a touch screen, such as a smart phone, a tablet device, a smart watch, a personal terminal computer, a medical device, a fitness device, and so on.

[0051] The inventor found through dot trajectory analysis that in the related art, the coordinates of the last contact point are used as the last reported point, and then the final rolling speed is calculated based on the coordinates of the last reported point and the coordinates of the penultimate reported point. However, the distance between the last contact point and the penultimate reported point may be much smaller than the distance between the penultimate reported point and the previous reported point (the current last reported point) of the penultimate reported point. When calculating the rolling speed, the time of 1 frame is used. Therefore, the rolling speed calculated based on the distance between the last contact point and the penultimate reported point is much smaller than the rolling speed calculated based on the distance between the penultimate reported point and the previous reported point of the penultimate reported point. The large decrease in the rolling speed leads to rolling braking, resulting in the phenomenon of frame freezing of the displayed page or the phenomenon of touch interruption during the process of sliding the screen.

[0052] To solve the above technical problems, the present disclosure provides a sliding touch control method for a touch screen. Here, it is taken as an example that this method can be applied to a smart phone. Figure 1 It is a flowchart of a sliding touch control method for a touch screen shown according to an exemplary embodiment. As Figure 1 shown, it includes the following steps:

[0053] In step S11, in response to obtaining the coordinates of the end contact point of the sliding operation on the touch screen, determine the coordinates of the penultimate reported point, where the reported point is the contact point reported by the touch screen in response to the sliding operation.

[0054] In step S12, determine the coordinates of the end reported point according to the coordinates of the penultimate reported point, where the distance between the coordinates of the end reported point and the coordinates of the penultimate reported point is equal to the distance between the coordinates of the penultimate reported point and the coordinates of the previous reported point adjacent to the penultimate reported point.

[0055] In step S13, control the touch screen to perform the final scroll of the display page according to the distance between the coordinates of the penultimate reported point and the coordinates of the end reported point.

[0056] Specifically, in real time according to the user's sliding operation, obtain the coordinates of the sliding contact point, and calculate the coordinates of the penultimate reported point according to the coordinates of the historical reported point and the coordinates of the sliding contact point obtained in real time. When the preset time frame is reached and the coordinates of the sliding contact point continue to be obtained, determine and report the coordinates of the penultimate reported point according to the coordinates of the sliding contact point corresponding to the moment when the preset time frame is reached, so as to control the touch screen to scroll the display page.

[0057] Optionally, the coordinates X of the touch reported point can be calculated by the following formula (1):

[0058]

[0059] where A is the coordinates of the previous reported point of the previously determined reported point, B is the previous reported point adjacent to the penultimate reported point, and C is the coordinates of the end contact point.

[0060] Further, the scrolling speed v of the final scroll page of the touch screen can be determined by the following formula (2):

[0061]

[0062] where t(i + 1) is the reporting time of the end reported point, t(i) is the reporting time of the penultimate reported point, x(i + 1) is the coordinates of the end reported point, x(i) is the coordinates of the penultimate reported point, v(i + 1) is the page scrolling speed of the touch screen at the reporting time of the end reported point, and v(i) is the page scrolling speed of the touch screen at the reporting time of the penultimate reported point.

[0063] Optionally, all reported points are reported to the touch screen after algorithms such as filtering, smoothing, and following the hand.

[0064] Further, in the case where the preset time frame is not reached and the coordinates of the sliding contact point cannot be continuously obtained, the coordinates of the sub-terminal reporting point are determined and reported according to the coordinates of the last contact point on the touch screen.

[0065] Optionally, the scrolling speed of the touch screen to display the page is positively correlated with the distance between two adjacent said reporting points.

[0066] The above technical solution determines the coordinates of the sub-terminal reporting point according to the coordinates of the last contact point of the user's sliding operation on the touch screen, and then determines the coordinates of the last reporting point according to the coordinates of the last contact point and the coordinates of the sub-terminal reporting point. Among them, the distance between the coordinates of the last reporting point and the coordinates of the sub-terminal reporting point is equal to the distance between the coordinates of the sub-terminal reporting point and the coordinates of the previous reporting point adjacent to the sub-terminal reporting point; finally, according to the distance between the coordinates of the sub-terminal reporting point and the coordinates of the last reporting point, the touch screen is controlled to perform the final scrolling of the display page. In this way, it is possible to avoid the braking of the scrolling speed caused by the close distance between the reporting points at the end of the sliding, and it is possible to avoid the phenomenon of jamming and disconnection during the sliding process, and it is possible to improve the follow-up performance and sliding stability of the touch screen, and thus it is possible to improve the fluency of the display page during the sliding operation of the touch screen.

[0067] It can be explained that this method can be applied to both touch screens of the LCD (Liquid Crystal Display) type and touch screens of the OLED (Organic Light-Emitting Diode) type, and has high general performance.

[0068] In a possible implementation manner, referring to Figure 2 the flowchart of a sliding touch method of a touch screen shown in Figure 2 as shown, in step S11, in response to obtaining the coordinates of the last contact point of the sliding operation on the touch screen, determining the coordinates of the sub-terminal reporting point includes:

[0069] In step S111, according to the coordinates of the last contact point and the previous reporting point adjacent to the sub-terminal reporting point, the coordinates of the sub-terminal reporting point are determined.

[0070] Optionally, the determining the coordinates of the sub-terminal reporting point according to the coordinates of the last contact point and the previous reporting point adjacent to the sub-terminal reporting point includes:

[0071] The coordinates D of the sub-terminal reporting point are calculated by the following formula (3):

[0072] D = kB + (1 - k)C; (3)

[0073] Wherein, k is a preset filtering coefficient, B is the previous reporting point adjacent to the penultimate reporting point, and C is the coordinate of the end contact point.

[0074] Optionally, according to the scrolling requirements of different touchscreens, the value of the preset filtering coefficient k can be adjusted. In this embodiment, k takes the value of 1 / 4, that is, the above formula is Exemplarily, when it is determined that the sliding operation ends and the coordinate C of the end contact point is obtained as (3.2, 3.2), assuming that the coordinate A of the previous reporting point determined last time is (1, 1), and the previous reporting point B adjacent to the penultimate reporting point is (2, 2), the coordinate D of the penultimate reporting point is calculated as (111 / 40, 111 / 40) through the above formula (1); the coordinate D of the penultimate reporting point is calculated as (116 / 40, 116 / 40) through the above formula (3).

[0075] Further, the rolling distance of this section is determined to be 1.1 based on the coordinate D of the penultimate reporting point calculated by the formula (1) and the previous reporting point B adjacent to the penultimate reporting point, and the rolling distance of this section is determined to be 0.85 based on the coordinate C of the end contact point and the coordinate D of the penultimate reporting point. The rolling distance of this section is determined to be 1.4 based on the previous reporting point B adjacent to the penultimate reporting point and the coordinate A of the previous reporting point determined last time.

[0076] The rolling distance of this section is determined to be 1.34 based on the coordinate D of the penultimate reporting point calculated by the formula (3) and the previous reporting point B adjacent to the penultimate reporting point, and it is further determined that the rolling distance between the coordinate of the end reporting point and the coordinate D of the penultimate reporting point is also 1.34.

[0077] It can be seen from this that within the rolling time of 1 frame, the rolling speed calculated by using the rolling distances of the last two sections calculated by the formula (3) will be greater than the rolling speed in the related art.

[0078] In this way, when calculating the rolling speed, since the formula (3) provided by the present disclosure uses less data than the related art, the rate of calculating the coordinate of the penultimate reporting point can be improved, and thus the response time of the touchscreen to the user's sliding operation can be shortened, that is, the follow-up time of the screen display page scrolling can be shortened, and further the follow-up performance of the touchscreen can be improved.

[0079] Moreover, it can be seen that the distance between the second-to-last reporting point and the previously determined reporting point in the present disclosure is closer to the distance between the previously determined reporting point and the reporting point before the previously determined reporting point, and the distance between the last reporting point and the second-to-last reporting point and the distance between the second-to-last reporting point and the previously determined reporting point. In this way, when calculating the scrolling speed within the scrolling time of one frame, a large scrolling brake of the scrolling speed can be avoided, and further, the phenomenon of frame freezing of the display page or the phenomenon of touch interruption can be avoided during the process of sliding the screen, improving the smoothness of the display page during the sliding operation of the touch screen and enhancing the user experience.

[0080] Optionally, determining the coordinates of the last reporting point according to the coordinates of the second-to-last reporting point includes:

[0081] On the extension line of the reporting point before the second-to-last reporting point adjacent to the second-to-last reporting point, based on the distance between the coordinates of the previous reporting point and the coordinates of the second-to-last reporting point, determine the coordinates of the last reporting point.

[0082] Specifically, as Figure 3 shown, the arrow in the figure indicates the sliding direction of the user's finger. After determining the coordinates D2 of the second-to-last reporting point according to the coordinates E2 of the last contact point, along the sliding direction of the finger, make the extension line of the line segment of the reporting point before the second-to-last reporting point (the reporting point corresponding to the coordinate B) and the second-to-last reporting point (the reporting point corresponding to the coordinate D2), and based on the distance between the coordinates of the previous reporting point and the coordinates of the second-to-last reporting point, determine the coordinates of the last reporting point on the extension line.

[0083] Optionally, on the extension line of the second-to-last reporting point and the last contact point, based on the distance between the coordinates of the previous reporting point and the coordinates of the second-to-last reporting point, determine the coordinates of the last reporting point. That is, along the sliding direction of the finger, make the extension line of the line segment of the second-to-last reporting point (the reporting point corresponding to the coordinate D2) and the last contact point (the contact point corresponding to the coordinate E2), and based on the distance between the coordinates of the previous reporting point and the coordinates of the second-to-last reporting point, determine the coordinates of the last reporting point on the extension line.

[0084] Optionally, according to the slope of the line segment of the reporting point before the second-to-last reporting point and the second-to-last reporting point, make a ray along the sliding direction of the user's finger from the second-to-last reporting point, and based on the distance between the coordinates of the previous reporting point and the coordinates of the second-to-last reporting point, determine the coordinates of the last reporting point on the ray.

[0085] In a possible implementation manner, referring to Figure 4 the flowchart of a sliding touch control method of a touch screen shown, as Figure 4 shown, before step S12 of determining the coordinates of the last reporting point according to the coordinates of the second-to-last reporting point, it includes:

[0086] In step S31, according to the coordinates of the end contact, it is determined that the number of pixel points between the end contact and the target edge of the touch screen exceeds a preset pixel point number threshold.

[0087] Wherein, the target edge is the edge on the touch screen located in the sliding operation direction.

[0088] Specifically, as Figure 3 shown, the coordinate C1 of the end reporting point is calculated according to the coordinate D1 of the sub-end reporting point and the coordinate E1 of the end contact, and the coordinate C2 of the end reporting point is calculated according to the coordinate D2 of the sub-end reporting point and the coordinate E2 of the end contact. The number of pixel points d2 between the end contact (the contact corresponding to the coordinate E2) and the target edge of the touch screen exceeds the preset pixel point number threshold. The number of pixel points d1 between the end contact (the contact corresponding to the coordinate E1) and the target edge of the touch screen does not exceed the preset pixel point number threshold.

[0089] If the coordinate C1 of the end reporting point is determined, when controlling the touch screen to perform the final scroll of the display page, the display page of the touch screen cannot scroll to the display page corresponding to the coordinate C1 of the end reporting point. However, calculating the coordinate C1 of the end reporting point will waste computing resources.

[0090] Optionally, the preset pixel point number threshold in the present disclosure is 80. That is, when the number of pixel points between the end contact and the target edge of the touch screen exceeds 80, step S12 is executed. When the number of pixel points between the end contact and the target edge of the touch screen does not exceed 80, according to the distance between the coordinate of the sub-end reporting point and the coordinate of the previous reporting point adjacent to the sub-end reporting point, the touch screen is controlled to perform the final scroll of the display page.

[0091] In this way, it can be ensured that when the touch screen performs the final scroll of the display page, the distance between the end reporting point and the sub-end reporting point is sufficient, avoiding the situation where the calculated end reporting point cannot be executed and wasting computing resources.

[0092] Based on the same inventive concept, the present disclosure also provides a sliding touch control device 500 for a touch screen, which is used to execute the steps of the sliding touch control method for the touch screen provided in the above method embodiment. The alarm device 500 can implement intelligent device alarm in a manner of software, hardware or a combination of both. Figure 5 It is a block diagram of a sliding touch control 500 for a touch screen shown according to an exemplary embodiment. Refer to Figure 5 , the device includes: a first determination module 510, a second determination module 520, and a control module 530.

[0093] Among them, the first determination module 510 is configured to determine the coordinates of the penultimate reported point in response to obtaining the coordinates of the end contact point of the sliding operation on the touch screen, where the reported point is the contact point reported by the touch screen in response to the sliding operation;

[0094] The second determination module 520 is configured to determine the coordinates of the last reported point according to the coordinates of the penultimate reported point, where the distance between the coordinates of the last reported point and the coordinates of the penultimate reported point is equal to the distance between the coordinates of the penultimate reported point and the coordinates of the previous reported point adjacent to the penultimate reported point;

[0095] The control module 530 is configured to control the touch screen to perform the final scroll of the display page according to the distance between the coordinates of the penultimate reported point and the coordinates of the last reported point.

[0096] Optionally, the above modules may be configured in different execution entities or in the same execution entity.

[0097] Optionally, the first determination module 510 is specifically configured to determine the coordinates of the penultimate reported point according to the coordinates of the end contact point and the previous reported point adjacent to the penultimate reported point.

[0098] Optionally, the first determination module 510 calculates the coordinates D of the penultimate reported point through the following formula:

[0099] D = kB+(1 - k)C;

[0100] where k is a preset filtering coefficient, B is the previous reported point adjacent to the penultimate reported point, and C is the coordinates of the end contact point

[0101] The second determination module 520 is specifically configured to determine the coordinates of the last reported point on the extension line of the previous reported point adjacent to the penultimate reported point based on the distance between the coordinates of the previous reported point and the coordinates of the penultimate reported point.

[0102] Figure 6 is a block diagram of another sliding touch device 500 for a touch screen shown according to an exemplary embodiment. Refer to Figure 6 , the device 500 further includes: a third determination module 550.

[0103] The third determination module 550 is configured to determine that the number of pixel points between the end contact point and the target edge of the touch screen exceeds a preset pixel point number threshold according to the coordinates of the end contact point, where the target edge is the edge of the touch screen located in the sliding operation direction.

[0104] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.

[0105] The present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the sliding touch control method of the touch screen provided by the present disclosure are implemented.

[0106] Figure 7 FIG. 7 is a block diagram of a device 800 for sliding touch control of a touch screen according to an exemplary embodiment. The device 800 can be configured for sliding touch control of a touch screen to implement the steps of the sliding touch control method of the touch screen provided by the present disclosure. For example, the device 800 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0107] Referring to Figure 7 , the device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0108] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned sliding touch control method of the touch screen. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0109] The memory 804 is configured to store various types of data to support the operation of the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.

[0110] The power component 806 provides power for various components of the device 800. The power component 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.

[0111] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of the touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operations. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

[0112] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.

[0113] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power button, and a lock button.

[0114] The sensor assembly 814 includes one or more sensors for providing an assessment of various aspects of the status of the device 800. For example, the sensor assembly 814 can detect the on / off state of the device 800, the relative positioning of components, such as the display and keypad of the device 800. The sensor assembly 814 can also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and a change in the temperature of the device 800. The sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0115] The communication component 816 is configured to facilitate communication between the device 800 and other devices in a wired or wireless manner. The device 800 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0116] In an exemplary embodiment, the device 800 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described method of sliding touch control of the touch screen.

[0117] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, is also provided. The above instructions can be executed by the processor 820 of the device 800 to complete the above-described method of sliding touch control of the touch screen. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0118] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device, and the computer program has a code portion for performing the above-described sliding touch method of the touch screen when executed by the programmable device.

[0119] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the present disclosure. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0120] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A sliding touch control method for a touch screen, characterized in that, The method includes: In response to obtaining the coordinates of the end contact point of a sliding operation on a touch screen, determining the coordinates of the penultimate reported point, where the reported point is a contact point reported by the touch screen in response to the sliding operation; Determining the coordinates of the end reported point according to the coordinates of the penultimate reported point, where the distance between the coordinates of the end reported point and the coordinates of the penultimate reported point is equal to the distance between the coordinates of the penultimate reported point and the coordinates of the previous reported point adjacent to the penultimate reported point; Controlling the touch screen to perform a final scroll on the display page according to the distance between the coordinates of the penultimate reported point and the coordinates of the end reported point; Wherein, the step of determining the coordinates of the penultimate reported point in response to obtaining the coordinates of the end contact point of the sliding operation on the touch screen includes: Determining the coordinates of the penultimate reported point according to the coordinates of the end contact point and the coordinates of the previous reported point adjacent to the penultimate reported point; Wherein, the coordinates D of the penultimate reported point are calculated by the following formula: ; Where k is a preset filtering coefficient, B is the coordinates of the previous reported point adjacent to the penultimate reported point, and C is the coordinates of the end contact point.

2. The method according to claim 1, characterized in that, The step of determining the coordinates of the end reported point according to the coordinates of the penultimate reported point includes: On the extension line of the previous reported point adjacent to the penultimate reported point and the penultimate reported point, determining the coordinates of the end reported point based on the distance between the coordinates of the previous reported point and the coordinates of the penultimate reported point.

3. The method according to claim 1, characterized in that, Before the step of determining the coordinates of the end reported point according to the coordinates of the penultimate reported point, it further includes: Determining that the number of pixel points between the end contact point and the target edge of the touch screen exceeds a preset pixel point number threshold according to the coordinates of the end contact point, where the target edge is the edge of the touch screen in the sliding operation direction.

4. A sliding touch control device for a touch screen, characterized in that, It includes: A first determination module configured to determine the coordinates of the penultimate reported point in response to obtaining the coordinates of the end contact point of a sliding operation on a touch screen, where the reported point is a contact point reported by the touch screen in response to the sliding operation; A second determination module configured to determine the coordinates of the end reported point according to the coordinates of the penultimate reported point, where the distance between the coordinates of the end reported point and the coordinates of the penultimate reported point is equal to the distance between the coordinates of the penultimate reported point and the coordinates of the previous reported point adjacent to the penultimate reported point; A control module configured to control the touch screen to perform a final scroll on the display page according to the distance between the coordinates of the penultimate reported point and the coordinates of the end reported point; Wherein, the first determination module is configured to determine the coordinates of the penultimate reported point according to the coordinates of the end contact point and the coordinates of the previous reported point adjacent to the penultimate reported point; Wherein, the coordinates D of the penultimate reported point are calculated by the following formula: ; Where k is a preset filtering coefficient, B is the coordinates of the previous reported point adjacent to the penultimate reported point, and C is the coordinates of the end contact point.

5. The device according to claim 4, characterized in that, The device further includes: A third determination module, configured to determine that the number of pixel points between the end contact point and the target edge of the touch screen exceeds a preset pixel point number threshold according to the coordinates of the end contact point, where the target edge is the edge of the touch screen in the sliding operation direction.

6. A sliding touch control device for a touch screen, characterized in that, Comprising: A processor; A memory for storing processor-executable instructions; Wherein, the processor is configured to: In response to obtaining the coordinates of the end contact point of a sliding operation on the touch screen, determine the coordinates of the sub-end reporting point, where the reporting point is the contact point reported by the touch screen in response to the sliding operation; Determine the coordinates of the end reporting point according to the coordinates of the sub-end reporting point, where the distance between the coordinates of the end reporting point and the coordinates of the sub-end reporting point is equal to the distance between the coordinates of the sub-end reporting point and the coordinates of the previous reporting point adjacent to the sub-end reporting point; Control the touch screen to perform a final scroll on the display page according to the distance between the coordinates of the sub-end reporting point and the coordinates of the end reporting point; Wherein, the determining the coordinates of the sub-end reporting point in response to obtaining the coordinates of the end contact point of the sliding operation on the touch screen includes: Determine the coordinates of the sub-end reporting point according to the coordinates of the end contact point and the coordinates of the previous reporting point adjacent to the sub-end reporting point; Wherein, the coordinates D of the sub-end reporting point are calculated by the following formula: ; Where k is a preset filtering coefficient, B is the coordinates of the previous reporting point adjacent to the sub-end reporting point, and C is the coordinates of the end contact point.

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

Citation Information

Patent Citations

  • Touch screen point report method and device and terminal device

    CN106020702A

  • Touch starting position identification method and mobile terminal

    CN106445235A