Interface zooming method and device applied to touch screen, equipment and storage medium

By obtaining and utilizing the multi-touch operation coordinate information of the touch screen, the two-finger scaling on the car computer screen is achieved, solving the problem that the single-touch screen cannot be scaled, and improving user experience and driving safety.

CN119225608APending Publication Date: 2024-12-31APOLLO INTELLIGENT CONNECTIVITY (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411286694.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

The existing car screen only supports single touch and cannot perform two-finger scaling, resulting in complex operation when users zoom and adjust the interface during driving, affecting driving safety and user experience.

Method used

By obtaining the coordinate information of the first and second touch operations of the touch screen by the user, the interface zoom control is performed based on the historical and current coordinate information, and the two-finger zooming on the single-touch screen is realized, avoiding the addition of the zoom button on the interface necessity.

Benefits of technology

It improves the convenience and efficiency of interface scaling, improves user experience, simplifies the operation process, avoids the storage space occupied by voice commands and network dependence issues, and ensures responsiveness in weak network environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119225608A_ABST
    Figure CN119225608A_ABST
Patent Text Reader

Abstract

The invention provides an interface zooming method and device applied to a touch screen, equipment and a storage medium, and relates to the field of Internet of Vehicles, in particular to the field of touch. According to the specific implementation scheme, in response to a first touch operation performed on a touch screen by a user, coordinate information corresponding to a historical touch operation is obtained; in response to a second touch operation performed on the touch screen by the user, determining coordinate information corresponding to the second touch operation; wherein the operation type of the first touch operation is different from that of the second touch operation; and performing scaling control on the interface according to the coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation. According to the method and the device, zooming control is performed on the interface by responding to the single-point touch operation, so that the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the touch field in the field of Internet of Vehicles, and in particular to an interface zooming method, device, equipment and storage medium applied to a touch screen. Background Art

[0002] When driving a vehicle, users often need to zoom in and out on the content on the vehicle screen to better view the content on the vehicle screen.

[0003] However, performing complex adjustment operations during driving may affect driving safety. Therefore, an efficient and convenient operation method is needed to control the interface zoom of the car screen. Summary of the invention

[0004] The present disclosure provides an interface zooming method, device, equipment and storage medium applied to a touch screen.

[0005] According to a first aspect of the present disclosure, there is provided an interface zooming method applied to a touch screen, comprising:

[0006] In response to a first touch operation performed by a user on the touch screen, obtaining coordinate information corresponding to the historical touch operation;

[0007] In response to a second touch operation performed by a user on the touch screen, determining coordinate information corresponding to the second touch operation; wherein the first touch operation and the second touch operation are of different operation types;

[0008] The interface is zoomed in and out according to the coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation.

[0009] According to a second aspect of the present disclosure, there is provided an interface zooming device applied to a touch screen, comprising:

[0010] A first response unit, configured to respond to a first touch operation performed by a user on the touch screen and obtain coordinate information corresponding to a historical touch operation;

[0011] A second response unit, configured to respond to a second touch operation performed by a user on the touch screen and determine coordinate information corresponding to the second touch operation; wherein the first touch operation and the second touch operation are of different operation types;

[0012] A zoom control unit is used to control the zoom of the interface according to the coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation.

[0013] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0014] at least one processor; and

[0015] a memory communicatively coupled to the at least one processor;

[0016] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect of the present disclosure.

[0017] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method according to the first aspect of the present disclosure.

[0018] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, which implements the steps of the method described in the first aspect of the present disclosure when executed by a processor.

[0019] According to the technology disclosed in the present invention, efficient and convenient zoom control of the touch screen interface is achieved, thereby improving the user experience.

[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0022] Figure 1 It is a flowchart of an interface zooming method applied to a touch screen provided in accordance with an embodiment of the present disclosure;

[0023] Figure 2 It is a flowchart of an interface zooming method applied to a touch screen provided in accordance with an embodiment of the present disclosure;

[0024] Figure 3 It is a flowchart of an interface zooming method applied to a touch screen provided in accordance with an embodiment of the present disclosure;

[0025] Figure 4 is a screen diagram of interface zooming provided according to an embodiment of the present disclosure;

[0026] Figure 5 It is a flowchart of an interface zooming method applied to a touch screen provided in accordance with an embodiment of the present disclosure;

[0027] Figure 6It is a structural block diagram of an interface zooming device applied to a touch screen provided according to an embodiment of the present disclosure;

[0028] Figure 7 It is a structural block diagram of an interface zooming device applied to a touch screen provided according to an embodiment of the present disclosure;

[0029] Figure 8 is a block diagram of an electronic device for implementing the interface zooming method applied to a touch screen according to an embodiment of the present disclosure;

[0030] Fig. 9 The block diagram is a block diagram of an electronic device for implementing the interface zooming method applied to a touch screen according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0032] In the car computer system, due to hardware problems, the car computer screen only supports single-point touch, that is, it can only respond to the touch operation of one finger at a time. When the interface needs to be zoomed in and out, two-finger zooming is not possible. The current car computer screen can add zoom in and out buttons on the interface through interactive design, and the user can zoom in and out by clicking the buttons; or rely on voice commands, the user issues zoom in and out commands through voice, and then the client responds to the zoom in and out commands to achieve the zoom in and out function.

[0033] However, adding zoom in and zoom out buttons to the interface will block the interface content, causing incomplete display of some information in the interface, sacrificing the diversity and friendliness of the interaction, and reducing the user experience. In addition, using voice commands will increase the size of the installation package and require more storage space. And because the voice function relies on the server for voice recognition and command issuance, the response of the car client will be affected in a weak network or no network environment, resulting in delayed or unresponsive response, thus affecting the user experience. When using the voice function, it will also interrupt or interfere with other ongoing audio playback activities on the client, such as music, video, or voice calls, which will cause inconvenience to the user and reduce the overall user satisfaction.

[0034] The present disclosure provides an interface zooming method, device, equipment and storage medium applied to a touch screen, which are applied to the touch field in the field of Internet of Vehicles to realize two-finger zooming on a single-point touch screen.

[0035] It should be noted that the data in this embodiment is not targeted at a specific user and cannot reflect the personal information of a specific user. It should be noted that the data in this embodiment comes from a public data set.

[0036] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0037] In order to enable readers to more deeply understand the implementation principle of the present disclosure, the following Figure 1-Figure 9 The embodiment is further refined.

[0038] Figure 1 FIG. 1 is a flow chart of an interface zooming method applied to a touch screen according to an embodiment of the present disclosure, which can be executed by an interface zooming device applied to a touch screen. Figure 1 As shown, the method comprises the following steps:

[0039] S101 . In response to a first touch operation performed by a user on a touch screen, obtain coordinate information corresponding to a historical touch operation.

[0040] For example, a touch screen refers to a screen that a user can touch with a stylus or finger. Touch screens can be divided into single-point touch screens and multi-point touch screens. A single-point touch screen can only respond to one touch operation at a time, for example, a user can only use one finger to operate at a time; a multi-point touch screen can respond to multiple touch operations at the same time, for example, a user can use two fingers to touch the screen at the same time. A touch screen can be installed on a variety of devices. For example, a touch screen can be installed in a vehicle as a car screen. The user can touch the car screen to enhance the user's driving experience.

[0041] When driving a vehicle, the vehicle screen can provide a map for navigation for the user. During driving, the user may need to zoom in and out on the map to better view the route. However, the vehicle may be limited by hardware during manufacturing. Some vehicle screens only support single-point touch, that is, the vehicle screen may be a single-point touch screen, and the user cannot zoom in and out with two fingers, which affects the user's driving experience and driving safety. In this embodiment, for touch screens, especially single-point touch screens, the control of zooming in and out with two fingers can be realized.

[0042] When the user wants to control the zoom of the interface, the first touch operation can be performed on the touch screen. The operation type of the first touch operation can be preset. If the touch operation performed by the user in response is not of the preset type, the touch operation will not be regarded as the first touch operation. If the user performs a first touch operation of a preset operation type in response, the coordinate information corresponding to the historical touch operation can be obtained. The historical touch operation can be the touch operation before the first touch operation. Each touch operation can correspond to its own coordinate information. The coordinate information refers to the position touched on the screen when the user performs the touch operation. The coordinate information corresponding to the touch operation can be recorded in real time. For example, the user first performs operation A and then performs operation B, then operation A is the historical touch operation of operation B.

[0043] It is also possible to obtain coordinate information of multiple touch operations before the first touch operation after responding to the first touch operation. An average value of the multiple coordinate information is determined as the coordinate information corresponding to the historical touch operation. For example, the coordinate information of three touch operations before the first touch operation can be obtained, or the coordinate information of all touch operations within a preset time period before the first touch operation can be obtained.

[0044] In this embodiment, the operation type of the touch operation may include a press operation type, a slide operation type, a lift operation type, etc. The press operation is when the user's finger presses the screen, the slide operation is when the user's finger slides on the screen, and the lift operation is when the user's finger leaves the screen. The operation type of the preset first touch operation may be a press operation type, that is, when responding to a press operation made by the user, the coordinate information of the historical touch operation may be obtained. If the touch operation made by the user is not a press operation, it is not necessary to obtain the coordinate information of the historical touch operation.

[0045] S102. In response to a second touch operation performed by the user on the touch screen, determine coordinate information corresponding to the second touch operation; wherein the first touch operation and the second touch operation are of different operation types.

[0046] For example, after the user performs a first touch operation on the touch screen, the user may continue to perform a second touch operation on the touch screen, and the operation type of the first touch operation is inconsistent with the operation type of the second touch operation. If the second touch operation is responded to after the first touch operation, the coordinate information corresponding to the second touch operation can be determined.

[0047] An operation type may be preset as the operation type of the second touch operation. After responding to the first touch operation, if another touch operation is responded to, it is determined whether the touch operation is of the preset operation type. If so, it is determined that the operation is the second touch operation. If not, it is determined that the user does not want to perform zoom control. For example, the operation type of the second touch operation is preset as a sliding circle operation. After responding to the pressing operation, if the user performs a sliding circle operation, the coordinate information of the finger position when sliding the circle can be obtained.

[0048] The operation time of each touch operation can be recorded in real time, that is, it can be determined at what time the user made the touch operation. After responding to the first touch operation, the operation time corresponding to the first touch operation can be determined. After responding to the second touch operation, the operation time corresponding to the second touch operation can be determined. To determine the time difference between the operation time corresponding to the first touch operation and the operation time corresponding to the second touch operation, a time difference threshold can be preset. If the time difference is greater than or equal to the preset time difference threshold, the coordinate information of the second touch operation will not be obtained, and the user will wait for the next time to make the first touch operation again, that is, to re-perform two-finger zooming; if the time difference is less than the preset time difference threshold, the coordinate information of the second touch operation can be obtained. That is, if the time interval between the first touch operation and the second touch operation is too long, the zoom control of the interface will not be performed.

[0049] S103 . Control the zooming of the interface according to the coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation.

[0050] Exemplarily, after responding to the first touch operation and the second touch operation in succession, it can be determined that the user wants to perform zoom control on the interface, and the zoom control can be a zoom-in control or a zoom-out control on the interface, for example, zooming in or out on a map on the interface.

[0051] According to the coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation, it can be determined whether the user wants to perform zoom-in control or zoom-in control, and the degree of zooming can be determined. For example, the distance between the two coordinate information can be determined. If the distance is within a preset distance threshold, zoom-out control is performed; if the distance is outside the preset distance threshold, zoom-in control is performed. The association between different distances and zoom ratios can also be preset, and the zoom ratio indicates the degree of zooming. According to the distance between the coordinate information, the zoom ratio corresponding to the distance is found, and the zoom control is performed according to the zoom ratio.

[0052] In this embodiment, it also includes: in response to a third touch operation performed by the user on the touch screen, stopping the zoom control of the interface; wherein the operation type of the third touch operation is a lift operation type.

[0053] Specifically, after the user performs the second touch operation, the content on the interface is zoomed. At this time, if the user performs the third touch operation, the zoom control of the interface can be stopped, that is, the zooming stops. The operation type of the third touch operation can be preset, for example, the operation type of the third touch operation is a lift operation type. That is, when the interface is in the process of zooming, if it responds to the user performing a new touch operation, it is determined whether the touch operation is a lift operation type, that is, whether the user lifts his finger. If so, the interface stops zooming; if not, the zooming can continue.

[0054] In this embodiment, the operation type of the third touch operation may also be set to any type except the operation type of the second touch operation, that is, as long as the user changes the second touch operation, the current zooming may be stopped.

[0055] The beneficial effect of such a setting is that the user can stop zooming at any time by lifting his finger, the operation process is simple, the efficiency of zoom control is improved, and the user experience is enhanced.

[0056] In the disclosed embodiment, the user first performs a first touch operation of a pressing operation type on the touch screen to obtain the coordinate information of the last touch operation. Then, a second touch operation of another operation type is performed on the touch screen to obtain the current coordinate information. Based on these two coordinate information, the interface is zoomed. Even if the touch screen can only respond to one operation at a time, the displayed content on the touch screen can be zoomed, and there is no need to set a zoom button on the screen to avoid blocking the interface. Through historical and current coordinate information, the interface can be accurately zoomed according to the actual needs of the user, the user operation is simple, the efficiency and accuracy of the zoom control are improved, and the user experience is enhanced.

[0057] Figure 2 A schematic flow chart of an interface zooming method applied to a touch screen provided in an embodiment of the present disclosure.

[0058] In this embodiment, in response to a first touch operation made by a user on the touch screen, coordinate information corresponding to historical touch operations is obtained, including: in response to the first touch operation made by the user on the touch screen, an operation type of the historical touch operation is determined; if the operation type of the historical touch operation is consistent with the operation type of the first touch operation, the coordinate information corresponding to the historical touch operation is obtained.

[0059] like Figure 2 As shown, the method comprises the following steps:

[0060] S201: In response to a first touch operation performed by a user on a touch screen, determine an operation type of a historical touch operation.

[0061] Exemplarily, the operation type of the first touch operation is preset, for example, the operation type of the first touch operation is a pressing operation type. If a pressing operation is performed by the user in response, the operation type of the historical touch operation is obtained. The operation type of the touch operation can be recorded in real time.

[0062] After responding to a press operation, it can be determined whether there is a historical touch operation. If so, the operation type of the historical touch operation is obtained; if not, the press operation is regarded as a historical touch operation, and waits for a new press operation to be responded to.

[0063] S202: If the operation type of the historical touch operation is consistent with the operation type of the first touch operation, obtain coordinate information corresponding to the historical touch operation.

[0064] Exemplarily, the operation type of the historical touch operation needs to be consistent with the operation type of the first touch operation in order to perform subsequent zoom control. Therefore, after determining the operation type of the historical touch operation, it is determined whether the operation type of the historical touch operation is consistent with the operation type of the first touch operation, for example, it is determined whether the historical touch operation is also a press operation. If they are consistent, the coordinate information of the historical touch operation can be obtained; if they are inconsistent, the coordinate information of the historical touch operation is not obtained, and the first touch operation is determined as a new historical touch operation, and a response to the new first touch operation is waited.

[0065] For example, when the user performs the first press operation and there is no history touch operation, the first press operation becomes a history touch operation. The first press operation does not move, and the user performs the second press operation with another finger, then the coordinate information of the first press operation can be obtained. If the user lifts the finger that performed the first press operation after performing the first press operation, that is, responds to a lift operation, then the user did not perform the first touch operation of the press operation type, and subsequent zoom control cannot be performed.

[0066] In this embodiment, the historical touch operation is of the same operation type as the first touch operation. After performing the first touch operation, the user can press the touch screen with two fingers to implement two-finger zooming on the single-point touch screen, thereby improving the user experience.

[0067] In this embodiment, the historical touch operation represents the touch operation before the first touch operation; if the operation type of the historical touch operation is consistent with the operation type of the first touch operation, the coordinate information corresponding to the historical touch operation is obtained, including: if the operation type of the historical touch operation is consistent with the operation type of the first touch operation, the operation time of the historical touch operation is obtained; if it is determined that the operation time of the historical touch operation meets the preset time condition, the coordinate information corresponding to the historical touch operation is obtained.

[0068] Specifically, after determining that the operation type of the historical touch operation is the same as the operation type of the first touch operation, the operation time of the historical touch operation is obtained. The operation time of each touch operation can be recorded in real time. A time condition is preset to determine whether the operation time of the historical touch operation meets the preset time condition. If so, the coordinate information corresponding to the historical touch operation can be obtained; if not, the coordinate information corresponding to the historical touch operation is not obtained, and the first touch operation is used as a new historical touch operation, and the next touch operation is waited for again.

[0069] For the preset time condition, for example, the preset time condition may be whether the operation time of the historical touch operation is within a preset time range. If the operation time of the historical touch operation is within the preset time range, it is determined that the time condition is met; otherwise, the time condition is not met. In this embodiment, the preset time condition is not specifically limited.

[0070] The beneficial effect of this setting is that historical touch operations need to meet certain time conditions to obtain coordinate information, avoiding redundant interface zoom control, which may cause the interface to be zoomed due to accidental touches, thereby improving user experience.

[0071] In this embodiment, determining whether the operation time of a historical touch operation meets a preset time condition includes: determining the operation time of a first touch operation; if the time difference between the operation time of the first touch operation and the operation time of the historical touch operation is less than a preset difference threshold, determining that the operation time of the historical touch operation meets the preset time condition.

[0072] Specifically, the preset time condition can be expressed as the time interval between making a historical touch operation and making a first touch operation cannot be too long. When judging whether the operation time of the historical touch operation meets the preset time condition, the operation time of the first touch operation can be obtained, that is, the time when the first touch operation is made. Calculate the time difference between the operation time of the first touch operation and the operation time of the historical touch operation. Preset a difference threshold, for example, the preset difference threshold is 70 milliseconds. If the time difference is less than the preset difference threshold, it is determined that the time interval between making the historical touch operation and making the first touch operation is short, and the preset time condition is met, and the coordinate information corresponding to the historical touch operation can be obtained.

[0073] If the time difference between the operation time of the first touch operation and the operation time of the historical touch operation is equal to or greater than the preset difference threshold, it means that the time interval between the historical touch operation and the first touch operation is long, and the operation time of the historical touch operation does not meet the preset time condition. If the user wants to zoom, it is necessary to make another first touch operation within the preset difference threshold, so that the time difference between the operation time of the original first touch operation and the operation time of the newly made first touch operation is less than the preset difference threshold. Obtaining the coordinate information of the original first touch operation, that is, obtaining the coordinate information of the new historical touch operation.

[0074] The beneficial effect of this setting is that the time interval between two fingers pressing the screen cannot be too long, avoiding the situation where the user zooms as long as two fingers are on the screen, improving the accuracy of zoom control, and effectively improving the user's zoom experience.

[0075] In this embodiment, if the operation type of the historical touch operation is consistent with the operation type of the first touch operation, the coordinate information corresponding to the historical touch operation is obtained, including: if the operation type of the historical touch operation is consistent with the operation type of the first touch operation, the coordinate information corresponding to the first touch operation is obtained; if it is determined that the coordinate information corresponding to the first touch operation is within the preset area range in the interface, the coordinate information corresponding to the historical touch operation is obtained.

[0076] Specifically, after determining that the operation type of the historical touch operation is consistent with the operation type of the first touch operation, the coordinate information corresponding to the first touch operation can also be judged. If the coordinate information corresponding to the first touch operation meets the preset position conditions, the coordinate information corresponding to the historical touch operation can be obtained.

[0077] For example, a preset area range can be pre-divided on the interface, for example, the preset area range can be the range of a map displayed in the interface. After determining that the operation type of the historical touch operation is also a press operation, the coordinate information corresponding to the first touch operation is obtained. It is determined whether the coordinate information corresponding to the first touch operation is within the preset area range in the interface. If so, the coordinate information corresponding to the historical touch operation can be obtained; if not, the coordinate information corresponding to the historical touch operation is not obtained, and the first touch operation is used as a new historical touch operation, and the next touch operation is waited for again.

[0078] The beneficial effect of such a setting is that, by presetting the area range, it is possible to prevent the user from making erroneous operations by pressing in other areas, thereby improving the accuracy of the zoom control.

[0079] S203. In response to a second touch operation performed by the user on the touch screen, determine coordinate information corresponding to the second touch operation; wherein the first touch operation and the second touch operation are of different operation types.

[0080] Exemplarily, this step may refer to the above-mentioned step S102 and will not be described in detail.

[0081] S204 , performing zoom control on the interface according to the coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation.

[0082] Exemplarily, this step may refer to the above-mentioned step S103 and will not be described in detail.

[0083] In the disclosed embodiment, the user first performs a first touch operation of a pressing operation type on the touch screen to obtain the coordinate information of the last touch operation. Then, a second touch operation of another operation type is performed on the touch screen to obtain the current coordinate information. Based on these two coordinate information, the interface is zoomed. Even if the touch screen can only respond to one operation at a time, the displayed content on the touch screen can be zoomed, and there is no need to set a zoom button on the screen to avoid blocking the interface. Through historical and current coordinate information, the interface can be accurately zoomed according to the actual needs of the user, the user operation is simple, the efficiency and accuracy of the zoom control are improved, and the user experience is enhanced.

[0084] Figure 3 A schematic flow chart of an interface zooming method applied to a touch screen provided in an embodiment of the present disclosure.

[0085] In this embodiment, the operation type of the second touch operation is a sliding operation type; in response to the second touch operation performed by the user on the touch screen, the coordinate information corresponding to the second touch operation is determined, including: in response to the second touch operation performed by the user on the touch screen, the corresponding initial coordinates of the second touch operation are determined; wherein the initial coordinates represent the starting coordinate information of the second touch operation when responding to the second touch operation; according to the sliding path of the second touch operation, the current coordinates of the second touch operation are determined; wherein the current coordinates represent the real-time coordinate information of the second touch operation during the sliding process.

[0086] like Figure 3 As shown, the method comprises the following steps:

[0087] S301 . In response to a first touch operation performed by a user on a touch screen, obtain coordinate information corresponding to a historical touch operation.

[0088] Exemplarily, this step may refer to the above-mentioned step S101 and will not be described in detail.

[0089] S302, in response to a second touch operation performed by the user on the touch screen, determining initial coordinates corresponding to the second touch operation; wherein the initial coordinates represent starting coordinate information of the second touch operation when responding to the second touch operation.

[0090] Exemplarily, the second touch operation may be a sliding operation, that is, after the user performs a first touch operation of a pressing operation type, the user may slide based on the first touch operation, that is, perform the second touch operation.

[0091] In response to a second touch operation made by the user on the touch screen, that is, in response to the user's finger starting to slide on the screen, the initial coordinates corresponding to the second touch operation are determined. The initial coordinates represent the starting coordinate information of the second touch operation when the second touch operation begins to be responded, that is, the starting position of the slide. The initial coordinates corresponding to the second touch operation are the coordinate information corresponding to the first touch operation.

[0092] S303: Determine current coordinates of the second touch operation according to the sliding path of the second touch operation; wherein the current coordinates represent real-time coordinate information of the second touch operation during the sliding process.

[0093] For example, as the second touch operation is executed, the sliding path of the second touch operation is obtained, and each point on the sliding path can be the real-time current coordinate. That is, the coordinate information corresponding to the second touch operation changes in real time, and the real-time coordinate information of the second touch operation during the sliding process is obtained as the current coordinate. That is, the real-time coordinate position of the user's finger on the screen during the sliding process can be obtained.

[0094] In this embodiment, the coordinate information corresponding to the second touch operation is obtained, so as to determine the zoom ratio according to the sliding of the user's finger, improve the accuracy of the zoom control, and enhance the user's viewing experience of the interface content.

[0095] S304: Perform zoom control on the interface according to the coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation.

[0096] Exemplarily, the interface is zoomed in and out according to the coordinate information corresponding to the historical touch operation, the initial coordinates corresponding to the second touch operation, and the current coordinates corresponding to the second touch operation.

[0097] In this embodiment, the interface is zoomed and controlled according to the coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation, including: determining the zoom ratio of the interface according to the coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation; and zooming and controlling the interface according to the zoom ratio.

[0098] Specifically, the coordinate information corresponding to the second touch operation is first determined. If the second touch operation is a sliding operation, multiple coordinate information corresponding to the second touch operation can be obtained; if the second touch operation is not a sliding operation, one coordinate information corresponding to the second touch operation can be obtained. If the second touch operation corresponds to only one coordinate information, the zoom ratio of the interface can be determined according to the coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation.

[0099] The coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation may be calculated, and the calculation result may be determined as the scaling ratio. For example, the distance value between the coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation may be determined, and the distance value may be determined as the scaling ratio. In this embodiment, the method for calculating the scaling ratio is not specifically limited.

[0100] According to the zoom ratio, it can be determined whether the user wants to zoom in or out of the interface, and then the interface can be zoomed in and out according to the value of the zoom ratio. For example, if the zoom ratio is a value between 0 and 1, the interface can be zoomed out; if the zoom ratio is a value greater than 1, the interface can be zoomed in. The zoom-out multiple and the zoom-in multiple can be determined according to the specific zoom ratio value. For example, if the zoom ratio is 2, it can be zoomed in twice.

[0101] The beneficial effect of such a setting is that by calculating the zoom ratio, the interface can be accurately zoomed and controlled, making it easier for users to view the content in the interface and improving the user experience.

[0102] In this embodiment, the zoom ratio of the interface is determined based on the coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation, including: determining the initial distance information based on the coordinate information corresponding to the historical touch operation and the initial coordinates corresponding to the second touch operation; determining the current distance information based on the coordinate information corresponding to the historical touch operation and the current coordinates corresponding to the second touch operation; determining the zoom ratio of the interface based on the initial distance information and the current distance information.

[0103] Specifically, the second touch operation is a sliding operation, and the initial coordinates corresponding to the second touch operation are determined. The initial distance information is determined according to the coordinate information corresponding to the historical touch operation and the initial coordinates corresponding to the second touch operation. The initial distance information is the distance value between the coordinate information corresponding to the historical touch operation and the initial coordinates corresponding to the second touch operation.

[0104] Determine the current coordinates corresponding to the second touch operation, and determine the current distance information according to the coordinate information corresponding to the historical touch operation and the current coordinates corresponding to the second touch operation. The current distance information is the distance value between the coordinate information corresponding to the historical touch operation and the current coordinates corresponding to the second touch operation.

[0105] The zoom ratio of the interface is calculated based on the initial distance information and the current distance information. The ratio of the initial distance information to the current distance information can be determined as the zoom ratio. For example, if the initial distance information is S0 and the ratio of the current distance information is S1, the zoom ratio is S0 / S1. As the second touch operation slides, the current distance information changes in real time, that is, the zoom ratio changes in real time, and the content on the interface can be zoomed in real time as the second touch operation slides.

[0106] The beneficial effect of such a setting is that the zoom ratio is determined in real time according to the sliding operation, so that the interface can be zoomed in and out as the user's finger slides, thereby meeting the user's zoom requirements and improving the user experience.

[0107] In this embodiment, the interface is zoomed in and out according to the zoom ratio, including: if the zoom ratio is greater than or equal to a preset first ratio threshold, the interface is zoomed in and out according to the preset first ratio threshold; if the zoom ratio is less than or equal to a preset second ratio threshold, the interface is zoomed out and out according to the preset second ratio threshold.

[0108] Specifically, a first ratio threshold and a second ratio threshold are preset, the first ratio threshold is the upper limit of enlargement, and the second ratio threshold is the lower limit of reduction. That is, the content in the interface can only be scaled within the range of the first ratio threshold and the second ratio threshold.

[0109] After obtaining the zoom ratio, determine whether to zoom in or zoom out. If zooming in is required, compare the zoom ratio with the first ratio threshold. If it is determined that the zoom ratio is greater than or equal to the preset first ratio threshold, the interface is zoomed in according to the preset first ratio threshold, that is, the interface is zoomed in to the maximum extent allowed. If zooming out is required, compare the zoom ratio with the second ratio threshold. If the zoom ratio is less than or equal to the preset second ratio threshold, the interface is zoomed out according to the preset second ratio threshold, that is, the interface is zoomed out to the minimum extent allowed.

[0110] The beneficial effect of such a setting is that by setting the first ratio threshold and the second ratio threshold, it is possible to avoid infinite zooming in or out of the interface, thereby ensuring that the user can clearly view the content in the interface and improving the zooming effect.

[0111] Figure 4 A screen diagram showing the zoomed-in interface. Figure 4In the figure, point A is the coordinate of the historical touch operation, and point B is the coordinate of the first touch operation, that is, the starting coordinate of the second touch operation. When the user needs to zoom, he can slide with point B as the starting point, that is, the coordinate of point B can change in real time. The coordinate position of the historical touch operation is a fixed value obtained, and even if the position of the user's thumb changes, the coordinate position of the historical touch operation will not change. That is, the coordinate of point A is a fixed value, and the coordinate of point B is a real-time changing value. Determine the zoom ratio based on the change in the distance between points A and B.

[0112] In the disclosed embodiment, the user first performs a first touch operation of a pressing operation type on the touch screen to obtain the coordinate information of the last touch operation. Then, a second touch operation of another operation type is performed on the touch screen to obtain the current coordinate information. Based on these two coordinate information, the interface is zoomed. Even if the touch screen can only respond to one operation at a time, the displayed content on the touch screen can be zoomed, and there is no need to set a zoom button on the screen to avoid blocking the interface. Through historical and current coordinate information, the interface can be accurately zoomed according to the actual needs of the user, the user operation is simple, the efficiency and accuracy of the zoom control are improved, and the user experience is enhanced.

[0113] Figure 5 A schematic flow chart of an interface zooming method applied to a touch screen provided in an embodiment of the present disclosure, the method can be applied to a single-point touch screen.

[0114] like Figure 5 As shown, the method comprises the following steps:

[0115] S501. Respond to the user's pressing operation and save as event a.

[0116] Specifically, a finger a of the user presses on the screen.

[0117] S502, determine whether the previous operation is a pressing operation, if so, execute S503; if not, execute S511.

[0118] Specifically, it is determined whether another finger b has been pressed on the screen.

[0119] S503: Determine the time interval between the operation time of the previous pressing operation and the operation time of event a.

[0120] S504, determine whether the time interval is greater than a preset threshold, if not, execute S505; if yes, execute S511.

[0121] S505: Determine the previous pressing operation as event b.

[0122] S506: Determine whether event a becomes a sliding operation. If so, execute S507; if not, execute S511.

[0123] Specifically, it is determined whether finger a starts to slide.

[0124] S507: Determine the initial distance S0 between event a and event b.

[0125] S508. Determine the real-time distance S1 between event a and event b according to the sliding of event a.

[0126] S509, calculating the scaling ratio S0 / S1, and controlling the scaling of the interface according to the scaling ratio.

[0127] Specifically, there are fingers a and b on the screen at this time, and two-finger zooming can be achieved on the single-point touch screen. Since the coordinates of event b are recorded historical fixed values, even if finger b is lifted or slid, the coordinate position corresponding to event b will not change.

[0128] S510, determine whether event a is changed to a lift operation, stop zooming, and clear event a and event b. Specifically, determine whether finger a is removed from the screen.

[0129] S511, waiting for a new pressing operation.

[0130] Figure 6 This is a structural block diagram of an interface zooming device for a touch screen provided by an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Figure 6 , an interface zooming device 600 applied to a touch screen includes: a first response unit 601 , a second response unit 602 and a zooming control unit 603 .

[0131] A first response unit 601 is used to obtain coordinate information corresponding to a historical touch operation in response to a first touch operation performed by a user on the touch screen;

[0132] A second response unit 602 is used to respond to a second touch operation performed by the user on the touch screen and determine coordinate information corresponding to the second touch operation; wherein the first touch operation and the second touch operation are of different operation types;

[0133] The zoom control unit 603 is used to control the zoom of the interface according to the coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation.

[0134] Figure 7 A structural block diagram of an interface zooming device for a touch screen provided in an embodiment of the present disclosure, such as Figure 7As shown, the interface zooming device 700 applied to a touch screen includes a first response unit 701 , a second response unit 702 and a zoom control unit 703 , wherein the first response unit 701 includes a history determination module 7011 and a coordinate acquisition module 7012 .

[0135] A history determination module 7011, configured to determine the operation type of the historical touch operation in response to a first touch operation performed by a user on the touch screen;

[0136] The coordinate acquisition module 7012 is configured to acquire coordinate information corresponding to the historical touch operation if the operation type of the historical touch operation is consistent with the operation type of the first touch operation.

[0137] In one example, the historical touch operation represents a touch operation before the first touch operation; the coordinate acquisition module 7012 includes:

[0138] a time acquisition submodule, configured to acquire the operation time of the historical touch operation if the operation type of the historical touch operation is consistent with the operation type of the first touch operation;

[0139] The coordinate acquisition submodule is used to acquire the coordinate information corresponding to the historical touch operation if it is determined that the operation time of the historical touch operation meets a preset time condition.

[0140] In one example, the coordinate acquisition submodule is specifically used to:

[0141] Determining an operation time of the first touch operation;

[0142] If the time difference between the operation time of the first touch operation and the operation time of the historical touch operation is less than a preset difference threshold, it is determined that the operation time of the historical touch operation meets a preset time condition.

[0143] In one example, the coordinate acquisition module 7012 includes:

[0144] A first acquisition submodule, configured to acquire coordinate information corresponding to the first touch operation if the operation type of the historical touch operation is consistent with the operation type of the first touch operation;

[0145] The second acquisition submodule is used to acquire the coordinate information corresponding to the historical touch operation if it is determined that the coordinate information corresponding to the first touch operation is within a preset area in the interface.

[0146] In one example, the operation type of the second touch operation is a sliding operation type; the second response unit 702 includes:

[0147] An initial determination module, configured to determine initial coordinates corresponding to a second touch operation performed by a user on the touch screen, in response to the second touch operation performed by the user; wherein the initial coordinates represent coordinate information of the start of the second touch operation when responding to the second touch operation;

[0148] The current determination module is used to determine the current coordinates of the second touch operation according to the sliding path of the second touch operation; wherein the current coordinates represent the real-time coordinate information of the second touch operation during the sliding process.

[0149] In one example, the scaling control unit 703 includes:

[0150] a ratio determination module, configured to determine a zoom ratio of the interface according to coordinate information corresponding to the historical touch operation and coordinate information corresponding to the second touch operation;

[0151] The interface zoom module is used to control the zoom of the interface according to the zoom ratio.

[0152] In one example, the ratio determination module includes:

[0153] a first determining submodule, configured to determine initial distance information according to coordinate information corresponding to the historical touch operation and initial coordinates corresponding to the second touch operation;

[0154] a second determining submodule, configured to determine current distance information according to coordinate information corresponding to the historical touch operation and current coordinates corresponding to the second touch operation;

[0155] The ratio determination submodule is used to determine the zoom ratio of the interface according to the initial distance information and the current distance information.

[0156] In one example, the interface scaling module includes:

[0157] An interface magnification submodule, configured to control the magnification of the interface according to the preset first ratio threshold value if the zoom ratio is greater than or equal to the preset first ratio threshold value;

[0158] The interface zoom-out submodule is used to control the interface to be zoomed out according to the preset second ratio threshold value if the zoom-out ratio is less than or equal to the preset second ratio threshold value.

[0159] In one example, it also includes:

[0160] The third response unit is used to stop the zoom control of the interface in response to a third touch operation performed by the user on the touch screen; wherein the operation type of the third touch operation is a lift operation type.

[0161] In one example, the operation types of the first touch operation and the historical touch operation are press operation types.

[0162] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device.

[0163] Figure 8 A structural block diagram of an electronic device provided in an embodiment of the present disclosure, such as Figure 8 As shown, the electronic device 800 includes: at least one processor 802; and a memory 801 communicatively connected to the at least one processor 802; wherein the memory stores instructions executable by the at least one processor 802, and the instructions are executed by the at least one processor 802 so that the at least one processor 802 can execute the interface zooming method applied to a touch screen of the present disclosure.

[0164] The electronic device 800 further includes a receiver 803 and a transmitter 804. The receiver 803 is used to receive instructions and data sent by other devices, and the transmitter 804 is used to send instructions and data to external devices.

[0165] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0166] According to an embodiment of the present disclosure, the present disclosure also provides a computer program product, which includes: a computer program, the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.

[0167] Fig. 9 A schematic block diagram of an example electronic device 900 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0168] like Fig. 9As shown, the device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0169] A number of components in the device 900 are connected to the I / O interface 905, including: an input unit 906, such as a keyboard, a mouse, etc.; an output unit 907, such as various types of displays, speakers, etc.; a storage unit 908, such as a disk, an optical disk, etc.; and a communication unit 909, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 909 allows the device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0170] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above, such as an interface zoom method applied to a touch screen. For example, in some embodiments, the interface zoom method applied to a touch screen may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 900 via the ROM 902 and / or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the computing unit 901, one or more steps of the interface zoom method applied to the touch screen described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to execute the interface zooming method applied to a touch screen in any other appropriate manner (for example, by means of firmware).

[0171] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0172] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0173] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0174] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0175] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0176] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0177] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0178] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for zooming an interface on a touch screen, comprising: In response to a first touch operation performed by a user on the touch screen, obtaining coordinate information corresponding to the historical touch operation; In response to a second touch operation performed by a user on the touch screen, determining coordinate information corresponding to the second touch operation; wherein the first touch operation and the second touch operation are of different operation types; The interface is zoomed in and out according to the coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation.

2. The method according to claim 1, wherein: The step of obtaining coordinate information corresponding to a historical touch operation in response to a first touch operation performed by a user on the touch screen includes: In response to a first touch operation performed by a user on the touch screen, determining an operation type of the historical touch operation; If the operation type of the historical touch operation is consistent with the operation type of the first touch operation, coordinate information corresponding to the historical touch operation is acquired.

3. The method according to claim 2, wherein: The historical touch operation represents a touch operation before the first touch operation; if the operation type of the historical touch operation is consistent with the operation type of the first touch operation, obtaining coordinate information corresponding to the historical touch operation includes: If the operation type of the historical touch operation is consistent with the operation type of the first touch operation, acquiring the operation time of the historical touch operation; If it is determined that the operation time of the historical touch operation meets the preset time condition, the coordinate information corresponding to the historical touch operation is acquired.

4. The method according to claim 3, wherein: The determining that the operation time of the historical touch operation meets a preset time condition includes: Determining an operation time of the first touch operation; If the time difference between the operation time of the first touch operation and the operation time of the historical touch operation is less than a preset difference threshold, it is determined that the operation time of the historical touch operation meets a preset time condition.

5. The method according to any one of claims 2 to 4, wherein: If the operation type of the historical touch operation is consistent with the operation type of the first touch operation, obtaining coordinate information corresponding to the historical touch operation includes: If the operation type of the historical touch operation is consistent with the operation type of the first touch operation, acquiring coordinate information corresponding to the first touch operation; If it is determined that the coordinate information corresponding to the first touch operation is within a preset area in the interface, the coordinate information corresponding to the historical touch operation is acquired.

6. The method according to any one of claims 1 to 5, wherein: The operation type of the second touch operation is a sliding operation type; The step of determining coordinate information corresponding to a second touch operation performed by a user on the touch screen includes: In response to a second touch operation performed by the user on the touch screen, determining initial coordinates corresponding to the second touch operation; wherein the initial coordinates represent coordinate information of the start of the second touch operation when responding to the second touch operation; According to the sliding path of the second touch operation, the current coordinates of the second touch operation are determined; wherein the current coordinates represent real-time coordinate information of the second touch operation during the sliding process.

7. The method according to claim 6, wherein: The zooming control of the interface according to the coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation includes: determining a zoom ratio of the interface according to the coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation; The interface is zoomed in and out according to the zoom ratio.

8. The method according to claim 7, wherein: The determining the zoom ratio of the interface according to the coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation includes: determining initial distance information according to the coordinate information corresponding to the historical touch operation and the initial coordinates corresponding to the second touch operation; determining current distance information according to the coordinate information corresponding to the historical touch operation and the current coordinates corresponding to the second touch operation; A zoom ratio of the interface is determined according to the initial distance information and the current distance information.

9. The method according to claim 7 or 8, wherein: The step of controlling the scaling of the interface according to the scaling ratio includes: If the zoom ratio is greater than or equal to a preset first ratio threshold, the interface is zoomed in according to the preset first ratio threshold; If the zoom ratio is less than or equal to a preset second ratio threshold, the interface is zoomed out according to the preset second ratio threshold.

10. The method according to any one of claims 1 to 9, further comprising: In response to a third touch operation performed by the user on the touch screen, the zoom control of the interface is stopped; wherein the operation type of the third touch operation is a lift operation type. 11 . The method according to claim 1 , wherein the operation types of the first touch operation and the historical touch operation are press operation types.

12. An interface zooming device applied to a touch screen, comprising: A first response unit, configured to respond to a first touch operation performed by a user on the touch screen and obtain coordinate information corresponding to a historical touch operation; A second response unit, configured to respond to a second touch operation performed by a user on the touch screen and determine coordinate information corresponding to the second touch operation; wherein the first touch operation and the second touch operation are of different operation types; A zoom control unit is used to control the zoom of the interface according to the coordinate information corresponding to the historical touch operation and the coordinate information corresponding to the second touch operation.

13. The device according to claim 12, wherein: The first response unit includes: A history determination module, configured to determine an operation type of the historical touch operation in response to a first touch operation performed by a user on the touch screen; The coordinate acquisition module is used to acquire coordinate information corresponding to the historical touch operation if the operation type of the historical touch operation is consistent with the operation type of the first touch operation.

14. The device according to claim 13, wherein: The historical touch operation represents a touch operation before the first touch operation; The coordinate acquisition module comprises: a time acquisition submodule, configured to acquire the operation time of the historical touch operation if the operation type of the historical touch operation is consistent with the operation type of the first touch operation; The coordinate acquisition submodule is used to acquire the coordinate information corresponding to the historical touch operation if it is determined that the operation time of the historical touch operation meets a preset time condition.

15. The device according to claim 14, wherein: The coordinate acquisition submodule is specifically used for: Determining an operation time of the first touch operation; If the time difference between the operation time of the first touch operation and the operation time of the historical touch operation is less than a preset difference threshold, it is determined that the operation time of the historical touch operation meets a preset time condition.

16. The device according to any one of claims 13 to 15, wherein: The coordinate acquisition module comprises: A first acquisition submodule, configured to acquire coordinate information corresponding to the first touch operation if the operation type of the historical touch operation is consistent with the operation type of the first touch operation; The second acquisition submodule is used to acquire the coordinate information corresponding to the historical touch operation if it is determined that the coordinate information corresponding to the first touch operation is within a preset area in the interface.

17. The device according to any one of claims 11 to 16, wherein: The operation type of the second touch operation is a sliding operation type; The second response unit includes: An initial determination module, configured to determine initial coordinates corresponding to a second touch operation performed by a user on the touch screen, in response to the second touch operation performed by the user; wherein the initial coordinates represent coordinate information of the start of the second touch operation when responding to the second touch operation; The current determination module is used to determine the current coordinates of the second touch operation according to the sliding path of the second touch operation; wherein the current coordinates represent the real-time coordinate information of the second touch operation during the sliding process.

18. The device according to claim 17, wherein: The zoom control unit comprises: a ratio determination module, configured to determine a zoom ratio of the interface according to coordinate information corresponding to the historical touch operation and coordinate information corresponding to the second touch operation; The interface zoom module is used to control the zoom of the interface according to the zoom ratio.

19. The device according to claim 18, wherein: The ratio determination module comprises: a first determining submodule, configured to determine initial distance information according to coordinate information corresponding to the historical touch operation and initial coordinates corresponding to the second touch operation; a second determining submodule, configured to determine current distance information according to coordinate information corresponding to the historical touch operation and current coordinates corresponding to the second touch operation; The ratio determination submodule is used to determine the zoom ratio of the interface according to the initial distance information and the current distance information.

20. The device according to claim 18 or 19, wherein: The interface scaling module comprises: An interface magnification submodule, configured to control the magnification of the interface according to the preset first ratio threshold value if the zoom ratio is greater than or equal to the preset first ratio threshold value; The interface zoom-out submodule is used to control the interface to be zoomed out according to the preset second ratio threshold value if the zoom-out ratio is less than or equal to the preset second ratio threshold value.

21. The apparatus according to any one of claims 12 to 20, further comprising: The third response unit is used to stop the zoom control of the interface in response to a third touch operation performed by the user on the touch screen; wherein the operation type of the third touch operation is a lift operation type.

22. The device according to any one of claims 12 to 21, wherein the operation type of the first touch operation and the historical touch operation is a pressing operation type.

23. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 11.

24. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-11.

25. A computer program product, wherein: The invention comprises a computer program, which implements the steps of the method according to any one of claims 1 to 11 when being executed by a processor.