CN111221460A - Content scrolling display method and electronic equipment - Google Patents

Content scrolling display method and electronic equipment Download PDF

Info

Publication number
CN111221460A
CN111221460A CN201911045047.9A CN201911045047A CN111221460A CN 111221460 A CN111221460 A CN 111221460A CN 201911045047 A CN201911045047 A CN 201911045047A CN 111221460 A CN111221460 A CN 111221460A
Authority
CN
China
Prior art keywords
distance
input
speed
target interface
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911045047.9A
Other languages
Chinese (zh)
Inventor
申茂情
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911045047.9A priority Critical patent/CN111221460A/en
Publication of CN111221460A publication Critical patent/CN111221460A/en
Priority to PCT/CN2020/113045 priority patent/WO2021082718A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a content scrolling display method and electronic equipment, relates to the technical field of communication, and aims to solve the problem that the traditional content scrolling display mode is low in intelligence degree. The method comprises the following steps: receiving a first input of a user at a first position and a second position in a target interface; determining, in response to the first input, a first distance and a second distance based on the first location and the second location; receiving a second input of the user; responding to the second input, determining a first speed according to the target distance, and scrolling and displaying the content in the target interface according to the first speed; wherein the target distance is the first distance or the second distance. The method can be applied to a scene that the user triggers the electronic equipment to scroll and display contents such as a webpage, a list or a file.

Description

Content scrolling display method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a content scrolling display method and electronic equipment.
Background
Generally, in the process of browsing contents such as web pages, lists or files by using an electronic device (e.g. a mobile phone), a user can trigger the electronic device to scroll and update the contents displayed in an area through a sliding operation in the area where the contents are located. For example, the user may trigger the electronic device to scroll down the displayed web page by a slide-down operation in the current web page, so that the user may stop the slide operation after updating to the content focused by the user.
However, if the content of the web page, list or file is small, the user may miss the concerned content during the user sliding operation; if the content of the web page, the list or the file is more, the user may need to spend a longer time to perform the sliding operation to find the content focused by the user. I.e., the traditional way of scrolling content is less intelligent.
Disclosure of Invention
The embodiment of the invention provides a content scrolling display method and electronic equipment, and aims to solve the problem that the traditional content scrolling display mode is low in intelligentization degree.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a content scrolling display method. The method comprises the following steps: receiving a first input of a user at a first position and a second position in a target interface; determining, in response to the first input, a first distance and a second distance based on the first location and the second location; receiving a second input of the user; responding to the second input, determining a first speed according to the target distance, and scrolling and displaying the content in the target interface according to the first speed; wherein the target distance is the first distance or the second distance.
In a second aspect, an embodiment of the present invention provides an electronic device. The electronic device comprises a receiving module, a determining module and a display module. The receiving module is used for receiving first input of a user at a first position and a second position in the target interface; a determining module, configured to determine, in response to the first input received by the receiving module, a first distance and a second distance according to the first position and the second position; the receiving module is also used for receiving a second input of the user; a determining module, further configured to determine, in response to the second input received by the receiving module, a first speed according to a target distance, the target distance being the first distance or the second distance; and the display module is used for scrolling and displaying the content in the target interface according to the first speed determined by the determination module.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the content scrolling display method provided in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the content scrolling display method provided in the first aspect.
In the embodiment of the invention, a first input of a user at a first position and a second position in a target interface can be received; determining, in response to the first input, a first distance and a second distance from the first location and the second location; receiving a second input of the user; responding to the second input, determining a first speed according to the target distance, and scrolling and displaying the content in the target interface according to the first speed; wherein the target distance is the first distance or the second distance. According to the scheme, the electronic equipment can determine two distances according to two touch positions of a user in the target interface and determine the scrolling speed according to one of the two distances, so that the user can control the electronic equipment to adjust the scrolling speed of the content in the target interface by changing the touch position of the user in the target interface according to actual use requirements, and therefore the phenomenon that the concerned content is missed or long time is consumed for sliding operation can be avoided. Therefore, the content scrolling display method provided by the embodiment of the invention has higher intelligent degree.
Drawings
Fig. 1 is a schematic structural diagram of an android operating system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a content scrolling method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a user's operation of a target interface according to an embodiment of the present invention;
FIG. 4 is a second schematic diagram illustrating operations performed by a user on a target interface according to an embodiment of the present invention;
FIG. 5 is a third schematic view illustrating operations performed by a user on a target interface according to an embodiment of the present invention;
FIG. 6 is a fourth schematic view illustrating operations performed by a user on a target interface according to an embodiment of the present invention;
fig. 7 is a second schematic diagram illustrating a content scrolling method according to an embodiment of the invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 9 is a second schematic structural diagram of an electronic device according to an embodiment of the invention;
fig. 10 is a hardware schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first and second locations, etc. are for distinguishing between different locations and are not intended to describe a particular order of locations.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of elements means two or more elements, and the like.
The embodiment of the invention provides a content scrolling display method and electronic equipment, which can receive first input of a user at a first position and a second position in a target interface; determining, in response to the first input, a first distance and a second distance from the first location and the second location; receiving a second input of the user; responding to the second input, determining a first speed according to the target distance, and scrolling and displaying the content in the target interface according to the first speed; wherein the target distance is the first distance or the second distance. According to the scheme, the electronic equipment can determine two distances according to two touch positions of a user in the target interface and determine the scrolling speed according to one of the two distances, so that the user can control the electronic equipment to adjust the scrolling speed of the content in the target interface by changing the touch position of the user in the target interface according to actual use requirements, and therefore the phenomenon that the concerned content is missed or long time is consumed for sliding operation can be avoided. Therefore, the content scrolling display method provided by the embodiment of the invention has higher intelligent degree.
The electronic device in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied to the content scrolling display method provided by the embodiment of the present invention, taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of an android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the content scrolling display method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the content scrolling display method may operate based on the android operating system shown in fig. 1. That is, the processor or the electronic device may implement the content scrolling display method provided by the embodiment of the present invention by running the software program in the android operating system.
The electronic device in the embodiment of the invention can be a terminal device. The terminal device may be a mobile terminal device or a non-mobile terminal device. For example, the mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile terminal device may be a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
The execution main body of the content scrolling display method provided by the embodiment of the present invention may be the electronic device, or may also be a functional module and/or a functional entity capable of implementing the content scrolling display method in the electronic device, which may be specifically determined according to actual use requirements, and the embodiment of the present invention is not limited. The following takes an electronic device as an example to exemplarily describe the content scroll display method provided by the embodiment of the present invention.
As shown in fig. 2, an embodiment of the present invention provides a content scrolling display method. The method can be applied to electronic devices. The method may include S101 to S104 described below.
S101, the electronic equipment receives first input of a user at a first position and a second position in a target interface.
It should be noted that, in the embodiment of the present invention, the target interface may be a sliding area for receiving user input in a screen of the electronic device.
Optionally, in this embodiment of the present invention, the first position and the second position may be any two different touch positions in a target interface of the electronic device.
Optionally, in an embodiment of the present invention, the first input may be touch input of two fingers of a user at a first position and a second position in the target interface respectively.
Illustratively, as shown in fig. 3 or 4, the first input may include: a first finger at a first position (x1, y1) in the target interface, a second finger at a second position (x2, y2) in the target interface.
It should be noted that, in the embodiment of the present invention, the content in the target interface is displayed in a variable-speed scrolling manner through the cooperation of two fingers of the user. For example, if the direction of sliding of the first finger in the target interface is the direction of scrolling of the content in the target interface, then the second finger is used to locate and adjust the speed of the scrolling display; if the direction of the swipe in the second finger target interface is the direction of the scrolling of the content in the target interface, then the first finger is used to locate and adjust the speed of the scrolling. Reference may be made to the following description of embodiments, which are not repeated herein.
Optionally, in this embodiment of the present invention, the target interface may be any area in a screen of the electronic device, where the user input may be accepted. For example, the target interface may be the entire display area of the screen of the electronic device or may be a partial display area of the screen of the electronic device.
Optionally, in the embodiment of the present invention, the target interface may display content that can be displayed in a sliding manner, such as a web page, a list, or a file, and the user may trigger the electronic device to update the content displayed in the target interface in a scrolling manner through a sliding input in the target interface.
For example, assume that a web page is displayed in a target interface of a screen of an electronic device. If the user slides a finger up and down in the webpage, the electronic equipment can scroll up and down to display the webpage, namely updating the content displayed in the target interface along the up-down direction; if the user slides a finger left or right in the web page, the electronic device may scroll left or right to display the web page, i.e., update the content displayed in the target interface in the left or right direction.
It should be noted that, in the embodiment of the present invention, the screen display state of the electronic device is not specifically limited when the first input is received. For example, the first input may be an input received when the electronic device is in the portrait display state, or the first input may be an input received when the electronic device is in the landscape display state.
S102, the electronic equipment responds to the first input, and determines a first distance and a second distance according to the first position and the second position.
Optionally, in this embodiment of the present invention, the step of "determining the first distance and the second distance according to the first position and the second position" in the step S102 may specifically include the following two steps: step 1, determining a distance from a first position to a second straight line including a second position as a first distance; and 2, determining the distance from the second position to the first straight line comprising the first position as a second distance. Wherein the first straight line and the second straight line are perpendicular to each other.
Optionally, in an embodiment of the present invention, the second straight line may be a straight line that passes through the second position and is parallel to a frame of the electronic device; the second straight line may be a straight line passing through the first position and parallel to another frame of the electronic device.
For example, as shown in fig. 3, after the electronic device receives a tap input of a first position (x1, y1) of a first finger of a user in the target interface, a tap input of a second position (x2, y2) of a second finger in the target interface, the electronic device may determine a distance Δ x from the first position (x1, y1) to a second straight line including the second position (x2, y2) as a first distance; and determining a distance Δ y from the second position (x2, y2) to a first straight line including the first position (x1, y1) as a second distance.
For example, as shown in fig. 4, after the electronic device receives a tap input of a first position (x1, y1) of a first finger of a user in the target interface, a tap input of a second position (x2, y2) of a second finger in the target interface, the electronic device may determine a distance Δ y from the first position (x1, y1) to a second line including the second position (x2, y2) as a first distance, and determine a distance Δ x from the second position (x2, y2) to the first line including the first position (x1, y1) as a second distance.
It should be noted that, in the embodiment of the present invention, there may be a plurality of first straight lines including the first position, and a plurality of second straight lines including the second position. When the electronic device adopts different first straight lines and second straight lines, the first distance and the second distance determined by the electronic device may be different, and may be specifically determined according to actual use requirements. For example, as shown in fig. 3, the first line may be a line parallel to a top bezel and a bottom bezel of the electronic device, and the second line may be a line parallel to a left side bezel and a right side bezel of the electronic device; as shown in fig. 4, the first line may be a line parallel to the left and right side frames of the electronic device, and the second line may be a line parallel to the top and bottom frames of the electronic device.
S103, the electronic equipment receives a second input of the user.
Optionally, in an embodiment of the present invention, the second input may be a sliding input, a gesture input, or a key input in the target interface. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Further, the second input is a sliding input in the target interface, and specifically may include (1) or (2) described below.
(1) The second input is a sliding input which takes the first position as a starting position and is along one direction of the first straight line.
Optionally, the second input may specifically be a sliding input of the first finger along one direction of the first straight line with the first position as a start position.
For example, as shown in fig. 3, the second input may be a sliding input starting at the first position (x1, y1) and along one direction F2 of the first straight line; alternatively, the second input may be a sliding input in a direction opposite to the direction F2 with the first position (x1, y1) as the start position and along the first line. Wherein the direction F1 and the direction F2 are perpendicular to each other.
For example, as shown in fig. 4, the second input may be a sliding input starting at the first position (x1, y1) and along one direction F1 of the first straight line; alternatively, the second input may be a sliding input in a direction opposite to the direction F1 with the first position (x1, y1) as the start position and along the first line. Wherein the direction F1 and the direction F2 are perpendicular to each other.
(2) The second input is a sliding input which takes the second position as a starting position and is along one direction of the second straight line.
Optionally, the second input may specifically be a sliding input of a second finger along one direction of a second straight line with the second position as a start position.
For example, as shown in fig. 3, the second input may be a sliding input starting at a second position (x2, y2) and along one direction F1 of a second straight line; alternatively, the second input may be a sliding input in a direction opposite to the direction F1 with the second position (x2, y2) as the start position and along a second straight line. Wherein the direction F1 and the direction F2 are perpendicular to each other.
For example, as shown in fig. 4, the second input may be a sliding input starting at the second position (x2, y2) and along one direction F2 of the second line; alternatively, the second input may be a sliding input in a direction opposite to the direction F2 with the second position (x2, y2) as the start position and along a second straight line. Wherein the direction F1 and the direction F2 are perpendicular to each other.
It should be noted that, in the case that the second input is a sliding input of one finger of the user along the first straight line or the second straight line, other fingers of the user may leave the target interface, or other fingers of the user may still perform a touch input in the target interface to adjust a scrolling speed of content in the target interface. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
And S104, the electronic equipment responds to the second input, determines a first speed according to the target distance, and scrolls and displays the content in the target interface according to the first speed.
The target distance may be a first distance or a second distance.
In an embodiment of the present invention, the first speed may be a speed of content scrolling in the control target interface of the electronic device.
It should be noted that, in the process of scrolling and displaying the content in the target interface by the electronic device at the first speed, if the finger for positioning and adjusting the speed of scrolling and displaying leaves the electronic device and the finger for controlling the scrolling direction of the content in the target interface continues to slide in the target interface, the electronic device may continue to scroll and display the content in the target interface at the first speed; and if the finger for controlling the scrolling direction of the content in the target interface leaves the electronic device, the electronic device may stop scrolling and updating the content in the target interface.
Optionally, the electronic device provided in the embodiment of the present invention may be provided with a sliding control. After the electronic device determines the first speed, the electronic device can send the first speed to the slider control to control the slider control to scroll through the content in the target interface at the first speed.
Optionally, in this embodiment of the present invention, the larger the target distance is, the larger the first speed is; the smaller the target distance, the smaller the first velocity. It will be appreciated that by adjusting the target distance, the content in the target interface can be controlled to scroll at different speeds.
Optionally, in this embodiment of the present invention, if the first distance is equal to the second distance, the first speed determined according to the first distance is equal to the first speed determined according to the second distance.
Optionally, in the embodiment of the present invention, if the second input is a sliding input along one direction of the first straight line with the first position as an initial position, the target distance may be a second distance; or, if the second input is a sliding input along one direction of the second straight line with the second position as the starting position, the target distance is the first distance.
Optionally, after the electronic device responds to the second input in S104 and before the "determining the first speed according to the target distance" in S104, the content scroll display method provided in the embodiment of the present invention may further include: and the electronic equipment determines the target distance according to the sliding direction of the second input in the target interface and the first distance or the second distance.
Optionally, if the second input is a sliding input along one direction of the first straight line with the first position as the starting position, the electronic device determines the target distance from the second distance; and if the second input is a sliding input which takes the second position as the initial position and is along one direction of the second straight line, determining the target distance according to the first distance.
For example, as shown in fig. 3, if the second input is a sliding input with the first position (x1, y1) as the start position and along one direction F2 of the first straight line, the electronic device may determine the second distance Δ y as the target distance. Alternatively, if the second input is a sliding input with the second position (x2, y2) as the start position and in one direction F1 of the second line, the electronic device may determine the first distance Δ x as the target distance.
For example, as shown in fig. 4, if the second input is a sliding input with the first position (x1, y1) as the start position and along one direction F1 of the first straight line, the electronic device may determine the second distance Δ x as the target distance. Alternatively, if the second input is a sliding input with the second position (x2, y2) as the start position and in one direction F2 of the second line, the electronic device may determine the first distance Δ y as the target distance.
The embodiment of the invention provides a content scrolling display method, and the electronic equipment can determine two distances according to two touch positions of a user in a target interface and determine a scrolling speed according to one distance of the two distances, so that the user can control the electronic equipment to adjust the scrolling speed of the content in the target interface by changing the touch position of the user in the target interface according to actual use requirements, thereby avoiding missing the concerned content or needing to spend a long time for sliding operation. Therefore, the content scrolling display method provided by the embodiment of the invention has higher intelligent degree.
Optionally, in the embodiment of the present invention, the "determining the first speed according to the target distance" in S104 may be specifically implemented by any one of S104a to S104f described below.
S104a, the electronic device determines a ratio of the target distance to the first value as the first speed.
For the case where the target distance is the first distance, assuming that the first distance is represented by Δ x, the first value is represented by Δ s, and the first speed is represented by v, then v is Δ x/Δ s. For the case where the target distance is the second distance, assuming that the second distance is represented by Δ y, the first value is represented by Δ s, and the first speed is represented by v, then v is Δ y/Δ s.
For example, assume that a speed step is 10 pixels and the first value is the ratio of the speed step to the original speed k. When the first distance is 10 pixels, the scrolling speed may be k; when the first distance is 20 pixels, the scroll speed may be 2 k; when the first distance is 30 pixels, the scroll speed may be 3 k.
S104b, the electronic device determines the first speed as a product of the target distance and the second value.
For the case where the target distance is the first distance, assuming that the first distance is denoted by Δ x, the second value is denoted by Δ s, and the first speed is denoted by v, then v is Δ x Δ s. For the case where the target distance is the second distance, assuming that the second distance is represented by Δ y, the second value is represented by Δ s, and the first speed is represented by v, then v is Δ y × Δ s.
For example, assume that a speed step is 10 pixels and the second value is the ratio of the original speed k to the speed step. When the first distance is 10 pixels, the scrolling speed may be k; when the first distance is 20 pixels, the scroll speed may be 2 k; when the first distance is 30 pixels, the scroll speed may be 3 k.
S104c, the electronic device rounds down the ratio of the target distance to the first value, and determines the rounded down value as the first speed.
Assuming that the first distance is represented by Δ x, the first value is represented by Δ s, and the first velocity is represented by v for the case where the target distance is the first distance
Figure BDA0002253912510000071
Assuming that the second distance is represented by Δ y, the first value is represented by Δ s, and the first velocity is represented by v for the case where the target distance is the second distance
Figure BDA0002253912510000072
For example, assume that a speed step is 10 pixels and the first value is the ratio of the speed step to the original speed k. When the first distance is 10 pixels, the scrolling speed may be k; when the first distance is 15 pixels, the scroll speed may be k; when the first distance is 25 pixels, the scroll speed may be 2 k; when the first distance is 35 pixels, the scroll speed may be 3 k.
S104d, the electronic device rounds up the ratio of the target distance to the first value, and determines the rounded up value as the first speed.
Assuming that the first distance is represented by Δ x, the first value is represented by Δ s, and the first velocity is represented by v for the case where the target distance is the first distance
Figure BDA0002253912510000073
Assuming that the second distance is represented by Δ y, the first value is represented by Δ s, and the first velocity is represented by v for the case where the target distance is the second distance
Figure BDA0002253912510000074
For example, assume that a speed step is 10 pixels and the first value is the ratio of the speed step to the original speed k. When the first distance is 10 pixels, the scrolling speed may be k; when the first distance is 15 pixels, the scroll speed may be 2 k; when the first distance is 25 pixels, the scroll speed may be 3 k; when the first distance is 35 pixels, the scroll speed may be 4 k.
S104e, the electronic device rounds down the product of the target distance and the second value, and determines the rounded down value as the first speed.
Assuming that the first distance is represented by Δ x, the second value is represented by Δ s, and the first velocity is represented by v for the case where the target distance is the first distance
Figure BDA0002253912510000075
Assuming that the second distance is represented by Δ y, the second value is represented by Δ s, and the first velocity is represented by v for the case where the target distance is the second distance
Figure BDA0002253912510000076
For example, assume that a speed step is 10 pixels and the second value is the ratio of the original speed k to the speed step. When the first distance is 10 pixels, the scrolling speed may be k; when the first distance is 15 pixels, the scroll speed may be k; when the first distance is 25 pixels, the scroll speed may be 2 k; when the first distance is 35 pixels, the scroll speed may be 3 k.
S104f, the electronic device rounds up the product of the target distance and the second value, and determines the rounded up value as the first speed.
Assuming that the first distance is represented by Δ x, the second value is represented by Δ s, and the first velocity is represented by v for the case where the target distance is the first distance
Figure BDA0002253912510000077
Assuming that the second distance is represented by Δ y, the second value is represented by Δ s, and the first velocity is represented by v for the case where the target distance is the second distance
Figure BDA0002253912510000078
For example, assume that a speed step is 10 pixels and the second value is the ratio of the original speed k to the speed step. When the first distance is 10 pixels, the scrolling speed may be k; when the first distance is 15 pixels, the scroll speed may be 2 k; when the first distance is 25 pixels, the scroll speed may be 3 k; when the first distance is 35 pixels, the scroll speed may be 4 k.
It should be noted that, regarding the values of the first value and the second value in S104a to S104f, the embodiment of the present invention is not particularly limited, and may be determined according to actual use requirements.
According to the content scrolling display method provided by the embodiment of the invention, the electronic equipment can acquire the first speed according to the target distance and the first numerical value (or according to the target distance and the second numerical value), so that a user can control the content in the target interface to scroll at different speeds by adjusting the target distance. For example, the scrolling speed of the content in the target interface may be increased by increasing the target distance, or the scrolling speed of the content in the target interface may be decreased by decreasing the target distance.
Optionally, in this embodiment of the present invention, in a first possible implementation manner, when the second input is specifically a sliding input along one direction of the first straight line with the first position as a start position, the content scrolling display method provided in this embodiment of the present invention may further include S105 described below. In a second possible implementation manner, in the case that the second input is specifically a sliding input along one direction of the second straight line with the second position as a start position, the content scrolling display method provided by the embodiment of the invention may further include S106 described below.
S105, in the process of scrolling and displaying the content in the target interface according to the first speed, if a third input moving from the second position to the third position is received, the electronic equipment responds to the third input, determines a second speed according to the distance from the third position to the first straight line, and scrolls and displays the content in the target interface according to the second speed.
For a specific implementation manner of determining the second speed by the electronic device according to the distance from the third position to the first straight line, reference may be made to the related description of determining the first speed according to the target distance in the foregoing embodiment, which is not repeated herein.
In the embodiment of the invention, the third position is any position in the target interface except the second position.
Optionally, the second input is specifically a sliding input of a first finger along one direction of a first straight line with the first position as a starting position; the third input may specifically be a sliding output of the second finger moving from the second position to the third position.
For example, as shown in (a) of fig. 5, assuming that the first distance is Δ x, the second distance is Δ y, and the second input is a sliding input of the first finger of the user in one direction F2 of the first straight line with the first position (x1, y1) as a start position, after the electronic device determines the first speed according to the second distance being Δ y, the electronic device may scroll and display the content in the scroll area along the direction F2 at the first speed. As shown in (b) of fig. 5, in the scroll displaying of the content in the target interface by the electronic device at the first speed, if the user slides the second finger at the second position (x2, y2) to the third position (x2, y3), the electronic device may determine the second speed according to the distance Δ p from the third position (x2, y3) to the first straight line in response to the slide input, and scroll display the content in the target interface at the second speed.
S106, in the process of scrolling and displaying the content in the target interface according to the first speed, if a fourth input moving from the first position to a fourth position is received, the electronic equipment responds to the fourth input, determines a third speed according to the distance from the fourth position to the second straight line, and scrolls and displays the content in the target interface according to the third speed.
For a specific implementation manner of determining the third speed by the electronic device according to the distance from the fourth position to the second straight line, reference may be made to the related description of determining the first speed according to the target distance in the foregoing embodiment, which is not repeated herein.
In the embodiment of the invention, the fourth position is any position in the target interface except the first position.
Optionally, the second input is specifically a sliding input of a second finger along one direction of the first straight line with the first position as a starting position; the fourth input may specifically be a sliding output of the first finger moving from the second position to the third position.
For example, as shown in (a) of fig. 6, assuming that the first distance is Δ x, the second distance is Δ y, and the second input is a sliding input of the first finger of the user in one direction F1 of the second straight line with the second position (x2, y2) as a start position, after the electronic device determines the first speed according to the first distance being Δ x, the electronic device may scroll and display the content in the scroll area in the direction F1 at the first speed. As shown in (b) of fig. 6, in the scroll displaying of the content in the target interface at the first speed by the electronic device, if the user slides the second finger at the first position (x1, y1) to the fourth position (x3, y3), the electronic device may determine a third speed according to a distance Δ q from the fourth position (x3, y3) to the second line in response to the slide input, and scroll displaying the content in the target interface at the third speed.
In the embodiment of the present invention, the third speed may be the same as or different from the second speed. Specifically, if the distance from the third position to the first straight line is equal to the distance from the fourth position to the second straight line, the third speed is the same as the second speed; the third speed is different from the second speed if the distance from the third position to the first line is not equal to the distance from the fourth position to the second line.
According to the content scroll display method provided by the embodiment of the invention, when the distance between the two fingers changes in the direction perpendicular to the sliding direction of the second input in the target interface, the distance can be acquired again, and the sliding speed is calculated according to the acquired distance, so that the electronic equipment can scroll and display the content in the target interface according to the recalculated sliding speed. In this way, the user can control the content in the target interface to scroll at different speeds by adjusting the distance between the two fingers.
Alternatively, in conjunction with fig. 2, as shown in fig. 7, in the case that the second input is a slide input in the target interface, after "the electronic device determines the first speed according to the target distance in response to the second input" (hereinafter, referred to as S104A) in the above S104, before "scroll-displaying the content in the target interface according to the first speed" (hereinafter, referred to as S104B) in the above S104, the content scroll display method provided by the embodiment of the present invention may further include S107 described below. S104B can be specifically realized by S104B1 described below.
S104A, the electronic device determines a first speed according to the target distance in response to the second input.
S107, the electronic equipment acquires a rolling distance according to the first speed and the sliding distance of the second input in the target interface.
Alternatively, the scroll distance may be a product of the first speed and a sliding distance of the second input in the target interface.
For example, assuming that the first velocity is represented by v, the sliding distance of the second input in the target interface is represented by r, and the scrolling distance is represented by h, then h is v r.
S104B1, the electronic device scrolls and displays the content in the target interface along the sliding direction of the second input in the target interface according to the first speed, wherein the distance between the starting position of the scroll display and the ending position of the scroll display is the scroll distance.
For example, as shown in (a) of fig. 5, assuming that the sliding direction of the second input in the target interface is a direction F2, after the electronic device determines the first speed and the scroll distance, the electronic device may scroll and display the content in the target interface along a direction F2 at the first speed. The electronic device stops the scroll display until a distance from a start position of the scroll display to an end position of the scroll display is a scroll distance.
For example, as shown in (a) of fig. 6, assuming that the sliding direction of the second input in the target interface is a direction F1, after the electronic device determines the first speed and the scroll distance, the electronic device may scroll and display the content in the target interface along a direction F1 at the first speed. The electronic device stops the scroll display until a distance from a start position of the scroll display to an end position of the scroll display is a scroll distance.
According to the content scrolling display method provided by the embodiment of the invention, the content in the target interface can be scrolled and displayed for a certain distance along the sliding direction of the second input in the target interface according to the acquired speed. In this way, for the electronic device without the scroll bar, the user can also browse the displayed content quickly or slowly through browsing requirements, which is convenient for the user to browse the content.
Optionally, for the electronic device with the dual-finger zoom function, both the dual-finger zoom function and the scroll display function are dual-finger touch input, so that the two functions may conflict with each other. According to the content scrolling display method provided by the embodiment of the invention, after the input of the user at the first position and the second position is received, a target control can be displayed first to prompt the user to scroll the display function or other two-finger operation functions (such as a two-finger zooming function). Specifically, S102 may specifically be S102A and S102B described below.
S102A, the electronic equipment responds to the first input and displays the target control.
The target control is used for prompting the user whether to scroll and display the content in the target interface through sliding input.
Optionally, in this embodiment of the present invention, the target control may be a floating control or a floating window.
Optionally, in the embodiment of the present invention, the target control may be displayed in the electronic device with a certain transparency.
S102, 102B, the electronic device responds to the received target input of the target control, and determines a first distance and a second distance according to the first position and the second position.
Optionally, the content scrolling display method provided in the embodiment of the present invention may further include: the electronic device continues to display the target control in the screen. It can be understood that the electronic device can conveniently switch a plurality of functions such as a scrolling function and a two-finger zooming function by continuously displaying the target control.
For example, after the electronic device receives the first and second positions of the first and second fingers touching the target interface, the electronic device may display a floating window "please select the two-finger zoom function or the scroll display function". If the user selects the scroll display function, the electronic device may determine the first distance and the second distance according to the first position and the second position, and perform subsequent S103 and S104, i.e., the electronic device may perform the scroll display function. If the user selects the two-finger zoom function, the electronic device may zoom and display the content in the target interface according to the position change of the first finger and the second finger, that is, the electronic device may perform the two-finger zoom function.
According to the content scrolling display method provided by the embodiment of the invention, when the scrolling display function conflicts with other two-finger operation functions (such as a two-finger zooming function), a user can conveniently select one function from a plurality of functions according to actual use requirements through the display target control, and the operation convenience is improved.
As shown in fig. 8, an embodiment of the invention provides an electronic device 800. The electronic device comprises a receiving module 801, a determining module 802 and a display module 803. The receiving module 801 may be configured to receive a first input of a user at a first location and a second location in a target interface. The determining module 802 may be configured to determine a first distance and a second distance according to the first position and the second position in response to the first input received by the receiving module 801. The receiving module 801 may further be configured to receive a second input from the user. The determining module 802 may be further configured to determine the first speed according to a target distance, which may be the first distance or the second distance, in response to the second input received by the receiving module 801. The display module 803 may be configured to scroll and display the content in the target interface according to the first speed determined by the determination module 802.
Optionally, in this embodiment of the present invention, the determining module 802 may be specifically configured to determine a distance from the first position to a second straight line including the second position as the first distance; and determining a distance from the second position to a first straight line including the first position as the second distance. Wherein the first straight line and the second straight line are perpendicular to each other.
Optionally, in the embodiment of the present invention, if the second input is a sliding input along one direction of the first straight line with the first position as an initial position, the target distance may be a second distance; alternatively, if the second input is a sliding input along one direction of the second straight line with the second position as the start position, the target distance may be the first distance.
Optionally, in this embodiment of the present invention, the second input may specifically be a sliding input along one direction of the first straight line with the first position as a start position. The determining module 802 may be further configured to, during the scrolling of the content in the target interface at the first speed, determine, in response to a third input received from the second location to the third location, a second speed according to a distance from the third location to the first straight line. The display module 803 may further be configured to scroll the content in the target interface according to the second speed determined by the determination module 802.
Optionally, in this embodiment of the present invention, the second input may specifically be a sliding input along one direction of the second straight line with the second position as a start position. The determining module 802 may be further configured to, during the scrolling of the content in the target interface at the first speed, determine, in response to a fourth input received from the first location to the fourth location, a third speed according to a distance from the fourth location to the second straight line. The display module 803 may further be configured to scroll and display the content in the target interface according to the third speed determined by the determination module 802.
Optionally, in an embodiment of the present invention, the second input may be a sliding input in the target interface. With reference to fig. 8, as shown in fig. 9, the electronic device provided in the embodiment of the present invention may further include an obtaining module 804. An obtaining module 804 may be configured to obtain the scroll distance according to the first speed and the sliding distance of the second input in the target interface determined by the determining module 802. The display module 803 may be specifically configured to scroll and display the content in the target interface along the sliding direction of the second input in the target interface according to the first speed. Wherein the distance between the starting position of the scroll display and the ending position of the scroll display is the scroll distance.
Optionally, in this embodiment of the present invention, the determining module 802 may be specifically configured to determine a ratio of the target distance to the first numerical value as the first speed; alternatively, the first speed is determined as the product of the target distance and the second value.
Optionally, in this embodiment of the present invention, the determining module 802 may be further configured to determine the target distance according to the first distance or the second distance according to the sliding direction of the second input in the target interface before determining the first speed according to the target distance.
The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiments, and is not described herein again to avoid repetition.
The embodiment of the invention provides electronic equipment, which can determine two distances according to two touch positions of a user in a target interface and determine a scrolling speed according to one of the two distances, so that the user can control the electronic equipment to adjust the scrolling speed of content in the target interface by changing the touch position of the user in the target interface according to actual use requirements, thereby avoiding missing concerned content or needing to spend a long time for sliding operation. Therefore, the electronic equipment provided by the embodiment of the invention has higher intelligent degree.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. The electronic device may be a terminal device. As shown in fig. 10, the terminal device 200 includes, but is not limited to: radio frequency unit 201, network module 202, audio output unit 203, input unit 204, sensor 205, display unit 206, user input unit 207, interface unit 208, memory 209, processor 210, and power supply 211. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 10 is not intended to be limiting, and that terminal devices may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like.
The user input unit 207 may be configured to receive a first input from a user at a first location and a second location in the target interface. The processor 210 may be configured to determine a first distance and a second distance according to the first position and the second position in response to the first input received by the user input unit 207. The user input unit 207 may be further configured to receive a second input from the user. The processor 210 may be further configured to determine a first speed according to a target distance in response to the second input received by the user input unit 207, the target distance being the first distance or the second distance. The display unit 206 may be configured to scroll through the content in the target interface according to the first speed determined by the processor 210.
The embodiment of the invention provides a terminal device, which can determine two distances according to two touch positions of a user in a target interface and determine a scrolling speed according to one of the two distances, so that the user can control the terminal device to adjust the scrolling speed of content in the target interface by changing the touch position of the user in the target interface according to actual use requirements, thereby avoiding missing concerned content or needing to spend a long time for sliding operation. Therefore, the terminal equipment provided by the embodiment of the invention has higher intelligent degree.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 201 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 210; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 201 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 201 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides the user with wireless broadband internet access through the network module 202, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 203 may convert audio data received by the radio frequency unit 201 or the network module 202 or stored in the memory 209 into an audio signal and output as sound. Also, the audio output unit 203 may also provide audio output related to a specific function performed by the terminal apparatus 200 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 203 includes a speaker, a buzzer, a receiver, and the like.
The input unit 204 is used to receive an audio or video signal. The input Unit 204 may include a Graphics Processing Unit (GPU) 2041 and a microphone 2042, and the Graphics processor 2041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 206. The image frames processed by the graphic processor 2041 may be stored in the memory 209 (or other storage medium) or transmitted via the radio frequency unit 201 or the network module 202. The microphone 2042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 201 in case of a phone call mode.
The terminal device 200 further comprises at least one sensor 205, such as light sensors, motion sensors and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 2061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 2061 and/or the backlight when the terminal apparatus 200 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 205 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 206 is used to display information input by the user or information provided to the user. The Display unit 206 may include a Display panel 2061, and the Display panel 2061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 207 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 207 includes a touch panel 2071 and other input devices 2072. Touch panel 2071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 2071 (e.g., user operation on or near the touch panel 2071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 2071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 210, and receives and executes commands sent by the processor 210. In addition, the touch panel 2071 may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 207 may include other input devices 2072 in addition to the touch panel 2071. In particular, the other input devices 2072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not further described herein.
Further, a touch panel 2071 may be overlaid on the display panel 2061, and when the touch panel 2071 detects a touch operation on or near the touch panel 2071, the touch panel is transmitted to the processor 210 to determine the type of the touch event, and then the processor 210 provides a corresponding visual output on the display panel 2061 according to the type of the touch event. Although the touch panel 2071 and the display panel 2061 are shown as two separate components in fig. 10 to implement the input and output functions of the terminal device, in some embodiments, the touch panel 2071 and the display panel 2061 may be integrated to implement the input and output functions of the terminal device, and are not limited herein.
The interface unit 208 is an interface for connecting an external device to the terminal apparatus 200. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 208 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 200 or may be used to transmit data between the terminal apparatus 200 and the external device.
The memory 209 may be used to store software programs as well as various data. The memory 209 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 209 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 210 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 209 and calling data stored in the memory 209, thereby performing overall monitoring of the terminal device. Processor 210 may include one or more processing units; optionally, the processor 210 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 210.
Terminal device 200 may also include a power source 211 (e.g., a battery) for providing power to various components, and optionally, power source 211 may be logically connected to processor 210 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the terminal device 200 includes some functional modules that are not shown, and are not described in detail here.
Optionally, an embodiment of the present invention further provides a terminal device, which includes the processor 210 shown in fig. 10, the memory 209, and a computer program stored in the memory 209 and capable of running on the processor 210, where the computer program, when executed by the processor 210, implements the processes of the foregoing method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. Examples of the computer-readable storage medium include a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method described in the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A method for scrolling display of content, the method comprising:
receiving a first input of a user at a first position and a second position in a target interface;
determining, in response to the first input, a first distance and a second distance from the first location and the second location;
receiving a second input of the user;
responding to the second input, determining a first speed according to the target distance, and scrolling and displaying the content in the target interface according to the first speed;
wherein the target distance is the first distance or the second distance.
2. The method of claim 1, wherein determining a first distance and a second distance from the first location and the second location comprises:
determining a distance from the first position to a second line including the second position as the first distance;
determining a distance from the second position to a first straight line including the first position as the second distance;
wherein the first straight line and the second straight line are perpendicular to each other.
3. The method according to claim 2, wherein the second input is specifically a sliding input along one direction of the first straight line with the first position as a starting position;
the method further comprises the following steps:
and in the process of scrolling and displaying the content in the target interface according to the first speed, if a third input of moving from the second position to a third position is received, responding to the third input, determining a second speed according to the distance from the third position to the first straight line, and scrolling and displaying the content in the target interface according to the second speed.
4. The method according to claim 2, wherein the second input is specifically a sliding input along one direction of the second line with the second position as a starting position;
the method further comprises the following steps:
and in the process of scrolling and displaying the content in the target interface according to the first speed, if a fourth input of moving from the first position to a fourth position is received, responding to the fourth input, determining a third speed according to the distance from the fourth position to the second straight line, and scrolling and displaying the content in the target interface according to the third speed.
5. The method of any of claims 1-4, wherein the second input is a sliding input in the target interface;
before the scrolling the content in the target interface according to the first speed, the method further comprises:
acquiring a rolling distance according to the first speed and the sliding distance of the second input in the target interface;
the scrolling and displaying the content in the target interface according to the first speed comprises the following steps:
according to the first speed, scrolling and displaying the content in the target interface along the sliding direction of the second input in the target interface;
wherein a distance between a start position of the scroll display and an end position of the scroll display is the scroll distance.
6. An electronic device, comprising a receiving module, a determining module, and a display module;
the receiving module is used for receiving first input of a user at a first position and a second position in the target interface;
the determining module is configured to determine, in response to the first input received by the receiving module, a first distance and a second distance according to the first position and the second position;
the receiving module is further used for receiving a second input of the user;
the determining module is further configured to determine, in response to the second input received by the receiving module, a first speed according to a target distance, where the target distance is the first distance or the second distance;
and the display module is used for scrolling and displaying the content in the target interface according to the first speed determined by the determination module.
7. The electronic device according to claim 6, wherein the determining module is specifically configured to determine a distance from the first location to a second line including the second location as the first distance; and determining a distance from the second position to a first straight line including the first position as the second distance;
wherein the first straight line and the second straight line are perpendicular to each other.
8. The electronic device of claim 7, wherein the second input is specifically a sliding input along one direction of the first straight line with the first position as a starting position;
the determining module is further configured to, in the process of scrolling and displaying the content in the target interface according to the first speed, if a third input moving from the second position to a third position is received, determine, in response to the third input, a second speed according to a distance from the third position to the first straight line;
and the display module is further used for scrolling and displaying the content in the target interface according to the second speed determined by the determination module.
9. The electronic device of claim 7, wherein the second input is specifically a sliding input along one direction of the second line with the second position as a starting position;
the determining module is further configured to, in the process of scrolling and displaying the content in the target interface according to the first speed, if a fourth input moving from the first position to a fourth position is received, determine, in response to the fourth input, a third speed according to a distance from the fourth position to the second straight line;
and the display module is further used for scrolling and displaying the content in the target interface according to the third speed determined by the determination module.
10. The electronic device of any of claims 6-9, wherein the second input is a slide input in the target interface; the electronic equipment further comprises an acquisition module;
the obtaining module is configured to obtain a scroll distance according to the first speed and the sliding distance of the second input in the target interface, which are determined by the determining module;
the display module is specifically configured to scroll and display the content in the target interface along the sliding direction of the second input in the target interface according to the first speed;
wherein a distance between a start position of the scroll display and an end position of the scroll display is the scroll distance.
11. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the content scrolling method according to any of claims 1 to 5.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the content scrolling method according to any one of claims 1 to 5.
CN201911045047.9A 2019-10-30 2019-10-30 Content scrolling display method and electronic equipment Pending CN111221460A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911045047.9A CN111221460A (en) 2019-10-30 2019-10-30 Content scrolling display method and electronic equipment
PCT/CN2020/113045 WO2021082718A1 (en) 2019-10-30 2020-09-02 Content scrolling display method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911045047.9A CN111221460A (en) 2019-10-30 2019-10-30 Content scrolling display method and electronic equipment

Publications (1)

Publication Number Publication Date
CN111221460A true CN111221460A (en) 2020-06-02

Family

ID=70827540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911045047.9A Pending CN111221460A (en) 2019-10-30 2019-10-30 Content scrolling display method and electronic equipment

Country Status (2)

Country Link
CN (1) CN111221460A (en)
WO (1) WO2021082718A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111753236A (en) * 2020-06-29 2020-10-09 上海二三四五网络科技有限公司 Control method and device for calculating news display degree
WO2021082718A1 (en) * 2019-10-30 2021-05-06 维沃移动通信有限公司 Content scrolling display method and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477439A (en) * 2009-02-06 2009-07-08 苏州瀚瑞微电子有限公司 Method for controlling display screen page scrolling speed by touch control plate
CN101689092A (en) * 2007-06-27 2010-03-31 诺基亚公司 Method, apparatus and computer program product for providing a scrolling mechanism for touch screen devices
CN102819389A (en) * 2012-07-19 2012-12-12 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and method for displaying content on mobile terminal
US20130268883A1 (en) * 2012-04-05 2013-10-10 Lg Electronics Inc. Mobile terminal and control method thereof
CN104866205A (en) * 2015-05-12 2015-08-26 北京奇虎科技有限公司 Method and device for operating touch screen of large-screen intelligent terminal
CN105892872A (en) * 2016-04-06 2016-08-24 惠州Tcl移动通信有限公司 Touch screen-based automatic screen scrolling control method for electronic books, and mobile terminal
CN106155524A (en) * 2015-03-23 2016-11-23 阿里巴巴集团控股有限公司 Page control method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096513B (en) * 2011-02-23 2014-04-16 惠州Tcl移动通信有限公司 Solution for sliding of touch screen and electronic device using the same
WO2014010292A1 (en) * 2012-07-09 2014-01-16 Necカシオモバイルコミュニケーションズ株式会社 Mobile phone information terminal, multi-touch input processing method, multi-touch input processing program, and storage medium
JP5786828B2 (en) * 2012-08-29 2015-09-30 コニカミノルタ株式会社 Display device, display device control method, and display device control program
US10282067B2 (en) * 2013-06-04 2019-05-07 Sony Corporation Method and apparatus of controlling an interface based on touch operations
WO2015168298A1 (en) * 2014-04-29 2015-11-05 Brit Media, Inc. Video scrolling
CN104636048A (en) * 2015-01-26 2015-05-20 上海天奕达电子科技有限公司 Page content rolling display method and device
CN111221460A (en) * 2019-10-30 2020-06-02 维沃移动通信有限公司 Content scrolling display method and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101689092A (en) * 2007-06-27 2010-03-31 诺基亚公司 Method, apparatus and computer program product for providing a scrolling mechanism for touch screen devices
CN101477439A (en) * 2009-02-06 2009-07-08 苏州瀚瑞微电子有限公司 Method for controlling display screen page scrolling speed by touch control plate
US20130268883A1 (en) * 2012-04-05 2013-10-10 Lg Electronics Inc. Mobile terminal and control method thereof
CN102819389A (en) * 2012-07-19 2012-12-12 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and method for displaying content on mobile terminal
CN106155524A (en) * 2015-03-23 2016-11-23 阿里巴巴集团控股有限公司 Page control method and device
CN104866205A (en) * 2015-05-12 2015-08-26 北京奇虎科技有限公司 Method and device for operating touch screen of large-screen intelligent terminal
CN105892872A (en) * 2016-04-06 2016-08-24 惠州Tcl移动通信有限公司 Touch screen-based automatic screen scrolling control method for electronic books, and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021082718A1 (en) * 2019-10-30 2021-05-06 维沃移动通信有限公司 Content scrolling display method and electronic device
CN111753236A (en) * 2020-06-29 2020-10-09 上海二三四五网络科技有限公司 Control method and device for calculating news display degree

Also Published As

Publication number Publication date
WO2021082718A1 (en) 2021-05-06

Similar Documents

Publication Publication Date Title
CN110851051B (en) Object sharing method and electronic equipment
CN109002243B (en) Image parameter adjusting method and terminal equipment
CN108491149B (en) Split screen display method and terminal
CN108897486B (en) Display method and terminal equipment
CN109032486B (en) Display control method and terminal equipment
CN108897473B (en) Interface display method and terminal
CN111142723B (en) Icon moving method and electronic equipment
CN110489045B (en) Object display method and terminal equipment
CN109407949B (en) Display control method and terminal
CN110888568B (en) Notification bar display method and terminal equipment
CN109558046B (en) Information display method and terminal equipment
CN109408072B (en) Application program deleting method and terminal equipment
CN108874906B (en) Information recommendation method and terminal
CN111026350A (en) Display control method and electronic equipment
CN110989896A (en) Control method and electronic equipment
CN111190517B (en) Split screen display method and electronic equipment
CN110795402B (en) Method and device for displaying file list and electronic equipment
CN110167006B (en) Method for controlling application program to use SIM card and terminal equipment
CN109597546B (en) Icon processing method and terminal equipment
CN109683764B (en) Icon management method and terminal
CN110851098A (en) Video window display method and electronic equipment
CN108984062B (en) Content display method and terminal
WO2021082718A1 (en) Content scrolling display method and electronic device
CN107943959B (en) Webpage display method and device and mobile terminal
CN111443860B (en) Touch control method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination