CN114415888A - Page control method, device, equipment and storage medium - Google Patents

Page control method, device, equipment and storage medium Download PDF

Info

Publication number
CN114415888A
CN114415888A CN202210054969.1A CN202210054969A CN114415888A CN 114415888 A CN114415888 A CN 114415888A CN 202210054969 A CN202210054969 A CN 202210054969A CN 114415888 A CN114415888 A CN 114415888A
Authority
CN
China
Prior art keywords
page
track path
motion
track
value
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.)
Granted
Application number
CN202210054969.1A
Other languages
Chinese (zh)
Other versions
CN114415888B (en
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.)
Ping An International Smart City Technology Co Ltd
Original Assignee
Ping An International Smart City Technology 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 Ping An International Smart City Technology Co Ltd filed Critical Ping An International Smart City Technology Co Ltd
Priority to CN202210054969.1A priority Critical patent/CN114415888B/en
Publication of CN114415888A publication Critical patent/CN114415888A/en
Application granted granted Critical
Publication of CN114415888B publication Critical patent/CN114415888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • 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 invention relates to a user interface design technology, and discloses a page control method, which comprises the following steps: acquiring a track path generated on a page displayed on a screen of electronic equipment by a user in a preset mode, and calculating the absolute value of the vertical coordinate displacement of a starting point and a terminating point of the track path; and controlling the page to roll according to the track path or controlling the content displayed on the page to return to the top or the bottom of the page by using whether the absolute value of the vertical coordinate displacement and the maintaining time of the termination point reach preset standard values or not as trigger conditions. The invention also provides a page control device, electronic equipment and a storage medium. The invention can realize the function of rapidly reaching the top page or the bottom page of the page.

Description

Page control method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of user interface design, in particular to a page control method and device, electronic equipment and a computer readable storage medium.
Background
When information is browsed by using electronic equipment such as a mobile phone and a tablet, the top or the bottom of a page often needs to be directly reached, and how to simply and quickly reach the top or the bottom of the page is very necessary.
The current ways to fulfill this function on the market include: clicking the status bar to the top, clicking the title bar to the top, clicking the float button to the top, dragging the right vertical scroll bar to the top or bottom, and so on.
However, most of the above methods directly reach the top of the page, and when the operating systems or the application programs are different, the operating methods directly reach the top of the page are also different, so that the operator cannot operate smoothly or is easy to operate incorrectly, and the universality is not comprehensive; and the method of reaching the top and the bottom only needs to drag the right vertical scroll bar, and the method of dragging the right vertical scroll bar is slow and is easy to operate by mistake.
Disclosure of Invention
The invention provides a page control method, a page control device and a computer readable storage medium, and mainly aims to solve the problem of low universality of the current one-key-to-top or bottom method of a page of electronic equipment.
In order to achieve the above object, the present invention provides a page control method, including:
the method comprises the steps that a track path generated on a page displayed on a screen of the electronic equipment by a user in a preset mode is obtained, and when the track path meets a preset condition, a longitudinal coordinate value of a starting point and a longitudinal coordinate value of an ending point of the track path are read;
calculating the absolute value of the longitudinal coordinate displacement of the starting point and the ending point of the track path based on the longitudinal coordinate value of the starting point and the longitudinal coordinate value of the ending point;
when the absolute value of the vertical coordinate displacement does not reach a preset standard value, controlling the content displayed on the page to roll according to the track path;
when the absolute value of the longitudinal coordinate displacement reaches the preset standard value, obtaining the maintaining time of the termination point;
when the maintaining time does not reach a preset time value, controlling the content displayed on the page to roll according to the track path;
and when the maintaining time reaches a preset time value, controlling the content displayed on the page to return to the top or the bottom of the page according to the track path.
Optionally, the reading the ordinate values of the start point and the end point of the track path includes:
calculating the change amplitude of the ordinate and the change amplitude of the abscissa of the track path;
judging whether the track path meets a preset condition, wherein the preset condition comprises that the change amplitude of the ordinate is larger than that of the abscissa;
when the variation amplitude of the ordinate is not larger than the variation amplitude of the abscissa, controlling the content displayed on the page to execute page turning operation according to the track path;
and when the change amplitude of the ordinate is larger than the change amplitude of the abscissa, reading the ordinate of the starting point and the ordinate of the ending point of the track path.
Optionally, the controlling the content displayed on the page to scroll according to the track path includes:
acquiring relevant operation information of the page, wherein the relevant operation information comprises: the motion speed, the motion track direction and the displacement distance of the motion track when the track path is finished;
determining an inertia motion speed attenuation parameter and inertia motion duration according to the relevant operation information of the page;
and controlling the content displayed on the page to roll according to the track path according to the motion speed at the end of the track path, the inertia motion speed attenuation parameter, the inertia motion duration and the motion track direction.
Optionally, the determining an inertia motion speed attenuation parameter and an inertia motion duration according to the relevant operation information of the page includes:
respectively determining the weight of the motion speed, the weight of the motion track, the weight of the direction of the motion track and the weight of the displacement distance of the motion track when the track path is finished according to a preset weight distribution rule;
determining a first inertia motion velocity attenuation parameter by using the weight of the motion velocity when the track path is ended and the weight of the motion track;
determining a second inertia motion speed attenuation parameter by using the weight of the motion track direction and the weight of the displacement distance of the motion track;
and determining the duration of the inertial motion according to the first inertial motion velocity attenuation parameter and the second inertial motion velocity attenuation parameter.
Optionally, the determining an inertia motion speed attenuation parameter and an inertia motion duration according to the first inertia motion speed attenuation parameter and the second inertia motion speed attenuation parameter includes:
determining the duration of the inertial motion by utilizing the following preset inertial motion speed attenuation function according to the first inertial motion speed attenuation parameter and the second inertial motion speed attenuation parameter;
B(t)=P0(1-t)3+3P1t(1-t)2+3P2t2(1-t)2+P3t3
t=t0/t1
wherein, P0Represents a velocity decay of 0%, P3Represents a velocity decay of 100%, P1、P2Respectively representing the first inertia motion speed attenuation parameter and the second inertia motion speed attenuation parameter, t represents the ratio of the inertia motion duration of the page to the inertia motion duration, t1Representing the duration of said inertial movement, t0Representing the duration of page inertial motion.
Optionally, the controlling, according to the trajectory path, the content displayed on the page to return to the top or the bottom of the page includes:
calculating a longitudinal coordinate displacement value of a track path based on the longitudinal coordinate value of the starting point and the longitudinal coordinate value of the ending point, and popping up a function icon which is pressed to the top or the bottom according to the longitudinal coordinate displacement value of the track path;
and when the user clicks the function icon, loading the content displayed on the page and returning to the top or the bottom of the page.
Optionally, the acquiring a track path generated by a user on a page displayed on a screen of the electronic device in a preset manner includes:
generating a track path according to touch operation of a user on a screen of the electronic equipment through a finger or touch equipment; or generating a track path according to the limb movement of the user captured by the camera of the electronic equipment.
In order to solve the above problem, the present invention further provides a page control apparatus, including:
the coordinate acquisition module is used for acquiring a track path generated on a page displayed on a screen of the electronic equipment by a user in a preset mode, and reading a longitudinal coordinate value of a starting point and a longitudinal coordinate value of an ending point of the track path when the track path meets a preset condition;
the displacement calculation module is used for calculating the absolute value of the longitudinal coordinate displacement of the starting point and the ending point of the track path based on the longitudinal coordinate value of the starting point and the longitudinal coordinate value of the ending point;
the page rolling control module is used for controlling the content displayed on the page to roll according to the track path when the absolute value of the vertical coordinate displacement does not reach a preset standard value; when the absolute value of the longitudinal coordinate displacement reaches the preset standard value, obtaining the maintaining time of the termination point; when the maintaining time does not reach a preset time value, controlling the content displayed on the page to roll according to the track path;
and the page top or bottom control module is used for controlling the content displayed on the page to return to the top or bottom of the page according to the track path when the maintaining time reaches a preset time value. In order to solve the above problem, the present invention also provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the page control method described above.
In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is executed by a processor in an electronic device to implement the page control method described above.
According to the method and the device for controlling the page, the track path of the page of the electronic equipment is identified, the change amplitude of the ordinate and the change amplitude of the abscissa of the track path, the ordinate displacement value of the starting point and the ending point of the track path and the maintaining time of the ending point of the track path are used as trigger conditions, the function icon of pressing one key to the top or the bottom is generated, the function icon is clicked to realize the function of pressing the page to the top or the bottom, the method and the device are not limited by an electronic equipment system or a specific application program, and other devices are not required to be added in a redundant mode.
Drawings
Fig. 1 is a schematic flowchart of a page control method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a detailed implementation of one step in the page control method shown in FIG. 1;
FIG. 3 is a flowchart illustrating a detailed implementation of one step in the page control method shown in FIG. 1;
FIG. 4 is a functional block diagram of a page control apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device implementing the page control method according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application provides a page control method. The execution subject of the page control method includes, but is not limited to, at least one of electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present application. In other words, the page control method may be performed by software or hardware installed in the terminal device or the server device, and the software may be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
Fig. 1 is a schematic flow chart of a page control method according to an embodiment of the present invention.
In this embodiment, the page control method includes:
s1, acquiring a track path generated on a page displayed on a screen of the electronic equipment by a user in a preset mode, and reading a longitudinal coordinate value of a starting point and a longitudinal coordinate value of an ending point of the track path when the track path meets a preset condition;
in the embodiment of the invention, the track path can be generated according to the touch operation of a user on a page displayed on a screen of the electronic equipment through a finger or touch equipment; or generating a track path according to the limb movement of the user captured by the camera of the electronic equipment.
In detail, referring to fig. 2, when the trajectory path satisfies the preset condition in S1, reading ordinate values of a start point and an end point of the trajectory path includes:
s11, calculating the change amplitude of the ordinate and the change amplitude of the abscissa of the track path;
s12, judging whether the track path meets a preset condition, wherein the preset condition comprises that the change amplitude of the ordinate is larger than that of the abscissa;
when the variation amplitude of the ordinate is not larger than the variation amplitude of the abscissa, S13, controlling the content displayed on the page to execute page turning operation according to the track path;
and when the change amplitude of the ordinate is larger than the change amplitude of the abscissa, S14, reading the ordinate of the start point and the ordinate of the end point of the track path.
Specifically, in the embodiment of the present invention, a first pixel point on the upper left corner of the screen of the electronic device may be used as a coordinate origin of a two-dimensional coordinate system, the two-dimensional coordinate system may be established, a coordinate change of the track path may be calculated through the two-dimensional coordinate system, and a vertical coordinate change amplitude and a horizontal coordinate change amplitude may be calculated according to the coordinate change.
In the embodiment of the present invention, the track path may be a track path of various modes, for example: up, down, left, right, etc. trajectory paths. When the variation amplitude of the ordinate is smaller than the variation amplitude of the abscissa, it is indicated that the track path may be left or right, and when the track path is scrolled, the embodiment of the present invention controls the content displayed on the page to perform a forward or backward page turning operation; when the change amplitude of the ordinate is greater than the change amplitude of the abscissa, it indicates that the track path may be upward or downward, and at this time, the embodiment of the present invention reads ordinate values of a start point and an end point of the track path, for example: the longitudinal coordinate value of the starting point of the track path is y1The longitudinal coordinate value of the end point of the track path is y2
In detail, in an embodiment of the present invention, the S11 includes:
calculating the change amplitude | Y | of the ordinate of the track path by using the following calculation formula:
|Y|=|y2-y1|
wherein, y2Is the ordinate value, y, of the end point of the trajectory path1The longitudinal coordinate value of the starting point of the track path is taken as the longitudinal coordinate value;
calculating the change amplitude | X | of the abscissa of the track path by using the following calculation formula;
|X|=|x2-x1|
wherein x is2Is the abscissa value, x, of the end point of the trajectory path1And the abscissa value of the starting point of the track path.
In the embodiment of the invention, whether the track path meets the preset condition or not is judged according to the change amplitude of the ordinate and the change amplitude of the abscissa of the track path, and the judgment is a first trigger condition of a standard path reaching the top or the bottom of a page.
S2, calculating the absolute value of the longitudinal coordinate displacement of the starting point and the ending point of the track path based on the longitudinal coordinate value of the starting point and the longitudinal coordinate value of the ending point;
in the embodiment of the invention, the longitudinal coordinate value of the starting point of the track path is y1The longitudinal coordinate value of the end point of the track path is y2Then, the absolute value S of the ordinate displacement of the start point and the end point of the trajectory path is:
S=|y2-y1|
s3, judging whether the absolute value of the vertical coordinate displacement reaches a preset standard value;
in one embodiment of the present invention, the preset standard value may be one half or two thirds of the screen length of the electronic device.
In the embodiment of the present invention, the determining whether the absolute value of the vertical coordinate displacement reaches a preset standard value is a second trigger condition for determining whether the trajectory path is a standard path reaching the top or the bottom of the page.
When the absolute value of the vertical coordinate displacement does not reach a preset standard value, S4, controlling the content displayed on the page to roll according to the track path;
in the embodiment of the invention, when the absolute value of the vertical coordinate displacement is smaller than the preset standard value tau1And when the page is in the up-direction or the down-direction, the page is scrolled upwards or downwards according to the upward or downward track path.
In detail, referring to fig. 3, the S4 includes:
s41, obtaining the relevant operation information of the page, wherein the relevant operation information comprises: the motion speed, the motion track direction and the displacement distance of the motion track when the track path is finished;
s42, determining an inertia motion speed attenuation parameter and inertia motion duration according to the relevant operation information of the page;
and S43, controlling the content displayed on the page to scroll according to the track path according to the movement speed at the end of the track path, the inertia movement speed attenuation parameter, the inertia movement duration and the movement track direction.
In detail, the determining an inertia motion speed attenuation parameter and an inertia motion duration according to the relevant operation information of the page includes:
respectively determining the weight of the motion speed, the weight of the motion track, the weight of the direction of the motion track and the weight of the displacement distance of the motion track when the track path is finished according to a preset weight distribution rule;
determining a first inertia motion velocity attenuation parameter by using the weight of the motion velocity when the track path is ended and the weight of the motion track;
determining a second inertia motion speed attenuation parameter by using the weight of the motion track direction and the weight of the displacement distance of the motion track;
and determining the duration of the inertial motion according to the first inertial motion velocity attenuation parameter and the second inertial motion velocity attenuation parameter.
In one embodiment of the present invention, the preset weight distribution rule may be configured to divide the relevant operation information of the page into different information groups, and perform weight distribution according to the different information groups. The first information group mainly includes: the motion speed and the motion track when the track path is finished; the second information group mainly includes: the direction of the motion trail and the displacement distance of the motion trail. The total weight of the first information group may be 60% to 70%, wherein each is equally weighted; the total weight of the second information set may be 30% to 40%, with each item sharing weight. Wherein the sum of the weights of the related information in the first information group and the second information group is 1.
In one embodiment of the present invention, the following inertia motion velocity attenuation function may be used to determine the duration of inertia motion according to the first inertia motion velocity attenuation parameter and the second inertia motion velocity attenuation parameter:
B(t)=P0(1-t)3+3P1t(1-t)2+3P2t2(1-t)2+P3t3
t=t0/t1
wherein, P0Represents a velocity decay of 0%, P3Represents a velocity decay of 100%, P1、P2Respectively representing a first inertia motion velocity attenuation parameter and a second inertia motion velocity attenuation parameter, wherein t represents inertia rolling completion degree and takes the value of [0, 1%]I.e. the ratio of the duration of the page inertial movement to the duration of the page inertial movement, t1Representing duration of inertial scrolling of a page, t0Representing the duration of page inertial motion.
According to the embodiment of the invention, the content displayed on the page is controlled to scroll according to the track path according to the inertia motion speed attenuation parameter and the inertia motion duration of the page.
According to one embodiment of the invention, when the touch operation of the user on the page displayed on the screen of the electronic device through the finger or the touch device is detected, the scrolling speed of the content displayed on the page when scrolling according to the track path can be adjusted through the acting force acting on the screen. The embodiment of the invention can calculate the rolling speed through the following formula:
V=V0+V1
wherein V0At an initial scroll speed, V1To compensate for scrolling speed;
wherein the compensated scrolling speed is:
Figure BDA0003475832650000081
wherein, t1Is the starting time, t, of the trajectory path2F (t) is the end time of the trajectory path, f (t) is the force acting on the screen, a (t) is the acceleration function, and m is the preset mass of the page.
According to the embodiment of the invention, the page scrolling speed is controlled through the inertia motion speed attenuation function and the compensation scrolling speed, so that the inertia motion process of the displayed page is matched with the motion operation of a user.
S5, when the absolute value of the vertical coordinate displacement reaches the preset standard value, obtaining the maintaining time of the termination point;
in the embodiment of the invention, the maintaining time of the termination point is the staying time of a user on a screen after stopping sliding through touch operation of a finger or a touch device on the screen of the electronic equipment; or after the limb movement of the user captured by the camera of the electronic equipment stops moving, maintaining the limb movement at the stopping time point.
S6, judging whether the maintaining time reaches a preset time value;
in the embodiment of the present invention, the preset time value may be, for example, 5 seconds.
In the embodiment of the present invention, the determining whether the maintaining time reaches the preset time value is a third triggering condition for determining whether the track path is a standard track reaching the top or the bottom of the page. When the third trigger condition is met, the track path is indicated to be a standard path reaching the top or the bottom of the page.
When the maintaining time does not reach the preset time value, returning to the step S4, and controlling the content displayed on the page to roll according to the track path;
in the embodiment of the invention, when the maintaining time is less than the preset time value tau2And when the content displayed on the page is scrolled upwards or downwards according to the upwards or downwards track path, the scrolling mode is the same as that of S4, and details are not repeated here.
And S7, when the maintaining time reaches a preset time value, controlling the content displayed on the page to return to the top or the bottom of the page according to the track path.
In detail, the controlling the content displayed on the page to return to the top or the bottom of the page according to the track path includes:
calculating a longitudinal coordinate displacement value of a track path based on the longitudinal coordinate value of the starting point and the longitudinal coordinate value of the ending point, and popping up a function icon which is pressed to the top or the bottom according to the longitudinal coordinate displacement value of the track path;
and when the user clicks the function icon, loading the content displayed on the page and returning to the top or the bottom of the page.
Further, in an embodiment of the present invention, the popping up a key to a top or bottom function icon according to the ordinate displacement value includes:
when the vertical coordinate displacement value is a positive value, popping up a function icon of one key to the top;
when the vertical coordinate displacement value is a negative value, popping up a function icon of one key to the bottom;
the function icon in the embodiment of the present invention is an icon capable of implementing a specific function, and may be a floating button, and may be implemented by adding a dispatchtime instance named hovertime in the KinectButton class through the created KinectButton class.
In the embodiment of the invention, the function icon is detected to be clicked by the user, the content displayed on the page is loaded and returned to the top or the bottom of the page, and the function from one key to the top of the page or from one key to the bottom of the page is realized.
Optionally, when the hovercimer exceeds the preset time and no user click function icon is detected, the content displayed on the page scrolls along the track path;
according to the embodiment of the invention, the track path of the electronic equipment page is identified, the variation amplitude of the ordinate and the variation amplitude of the abscissa of the track path, the displacement value of the ordinate of the starting point and the ending point of the track path and the maintaining time of the ending point of the track path are used as trigger conditions, the function icon of pressing one key to the top or the bottom is generated, the function icon is clicked to realize the function of pressing the page to the top or the bottom, the method is not limited by an electronic equipment system or a specific application program, and other devices are not required to be added in a redundant manner, so that the problem of low universality of the method of pressing one key to the top or the bottom of the current electronic equipment page can be solved.
Fig. 4 is a functional block diagram of a page control apparatus according to an embodiment of the present invention.
The page control apparatus 100 of the present invention may be installed in an electronic device. According to the implemented functions, the page control apparatus 100 may include a position coordinate obtaining module 101, a displacement calculating module 102, a page scrolling control module 103, and a page top or bottom control module 104. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the position coordinate acquiring module 101 is configured to acquire a track path generated on a page displayed on a screen of an electronic device by a user in a preset manner, and when the track path meets a preset condition, read a longitudinal coordinate value of a start point and a longitudinal coordinate value of an end point of the track path;
the displacement calculation module 102 is configured to calculate an absolute value of a vertical coordinate displacement between the start point and the end point of the track path based on the vertical coordinate value of the start point and the vertical coordinate value of the end point;
the page rolling control module 103 is configured to control content displayed on the page to roll according to the track path when the absolute value of the vertical coordinate displacement does not reach a preset standard value; when the absolute value of the longitudinal coordinate displacement reaches the preset standard value, obtaining the maintaining time of the termination point; when the maintaining time does not reach a preset time value, controlling the content displayed on the page to roll according to the track path;
the page top or bottom control module 104 is configured to control, when the retention time reaches a preset time value, content displayed on the page to return to the top or bottom of the page according to the track path.
In detail, when the modules in the page control apparatus 100 according to the embodiment of the present invention are used, the same technical means as the page control method described in fig. 1 to 3 are adopted, and the same technical effects can be produced, which is not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device implementing a page control method according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further comprise a computer program, such as a page control program, stored in the memory 11 and executable on the processor 10.
In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, and includes one or more Central Processing Units (CPUs), a microprocessor, a digital Processing chip, a graphics processor, a combination of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules (e.g., executing page Control programs, etc.) stored in the memory 11 and calling data stored in the memory 11.
The memory 11 includes at least one type of readable storage medium including flash memory, removable hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only to store application software installed in the electronic device and various types of data, such as codes of a page control program, etc., but also to temporarily store data that has been output or is to be output.
The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
The communication interface 13 is used for communication between the electronic device and other devices, and includes a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are typically used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
Fig. 5 only shows an electronic device with components, and it will be understood by a person skilled in the art that the structure shown in fig. 5 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management and the like are realized through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The page control program stored in the memory 11 of the electronic device 1 is a combination of a plurality of instructions, and when running in the processor 10, can realize:
the method comprises the steps that a track path generated on a page displayed on a screen of the electronic equipment by a user in a preset mode is obtained, and when the track path meets a preset condition, a longitudinal coordinate value of a starting point and a longitudinal coordinate value of an ending point of the track path are read;
calculating the absolute value of the longitudinal coordinate displacement of the starting point and the ending point of the track path based on the longitudinal coordinate value of the starting point and the longitudinal coordinate value of the ending point;
when the absolute value of the vertical coordinate displacement does not reach a preset standard value, controlling the content displayed on the page to roll according to the track path;
when the absolute value of the longitudinal coordinate displacement reaches the preset standard value, obtaining the maintaining time of the termination point;
when the maintaining time does not reach a preset time value, controlling the content displayed on the page to roll according to the track path;
and when the maintaining time reaches a preset time value, controlling the content displayed on the page to return to the top or the bottom of the page according to the track path. Specifically, the specific implementation method of the instruction by the processor 10 may refer to the description of the relevant steps in the embodiment corresponding to the drawings, which is not described herein again.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
The present invention also provides a computer-readable storage medium, storing a computer program which, when executed by a processor of an electronic device, may implement:
the method comprises the steps that a track path generated on a page displayed on a screen of the electronic equipment by a user in a preset mode is obtained, and when the track path meets a preset condition, a longitudinal coordinate value of a starting point and a longitudinal coordinate value of an ending point of the track path are read;
calculating the absolute value of the longitudinal coordinate displacement of the starting point and the ending point of the track path based on the longitudinal coordinate value of the starting point and the longitudinal coordinate value of the ending point;
when the absolute value of the vertical coordinate displacement does not reach a preset standard value, controlling the content displayed on the page to roll according to the track path;
when the absolute value of the longitudinal coordinate displacement reaches the preset standard value, obtaining the maintaining time of the termination point;
when the maintaining time does not reach a preset time value, controlling the content displayed on the page to roll according to the track path;
and when the maintaining time reaches a preset time value, controlling the content displayed on the page to return to the top or the bottom of the page according to the track path. In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A page control method, characterized in that the method comprises:
the method comprises the steps that a track path generated on a page displayed on a screen of the electronic equipment by a user in a preset mode is obtained, and when the track path meets a preset condition, a longitudinal coordinate value of a starting point and a longitudinal coordinate value of an ending point of the track path are read;
calculating the absolute value of the longitudinal coordinate displacement of the starting point and the ending point of the track path based on the longitudinal coordinate value of the starting point and the longitudinal coordinate value of the ending point;
when the absolute value of the vertical coordinate displacement does not reach a preset standard value, controlling the content displayed on the page to roll according to the track path;
when the absolute value of the longitudinal coordinate displacement reaches the preset standard value, obtaining the maintaining time of the termination point;
when the maintaining time does not reach a preset time value, controlling the content displayed on the page to roll according to the track path;
and when the maintaining time reaches a preset time value, controlling the content displayed on the page to return to the top or the bottom of the page according to the track path.
2. The page control method according to claim 1, wherein said reading the ordinate values of the start point and the end point of the track path comprises:
calculating the change amplitude of the ordinate and the change amplitude of the abscissa of the track path;
judging whether the track path meets a preset condition, wherein the preset condition comprises that the change amplitude of the ordinate is larger than that of the abscissa;
when the variation amplitude of the ordinate is not larger than the variation amplitude of the abscissa, controlling the content displayed on the page to execute page turning operation according to the track path;
and when the change amplitude of the ordinate is larger than the change amplitude of the abscissa, reading the ordinate of the starting point and the ordinate of the ending point of the track path.
3. The page control method of claim 1, wherein said controlling the content displayed on the page to scroll according to the trajectory path comprises:
acquiring relevant operation information of the page, wherein the relevant operation information comprises: the motion speed, the motion track direction and the displacement distance of the motion track when the track path is finished;
determining an inertia motion speed attenuation parameter and inertia motion duration according to the relevant operation information of the page;
and controlling the content displayed on the page to roll according to the track path according to the motion speed at the end of the track path, the inertia motion speed attenuation parameter, the inertia motion duration and the motion track direction.
4. The method for controlling pages of claim 3, wherein said determining the inertia speed decay parameter and the inertia duration according to the relevant operation information of the page comprises:
respectively determining the weight of the motion speed, the weight of the motion track, the weight of the direction of the motion track and the weight of the displacement distance of the motion track when the track path is finished according to a preset weight distribution rule;
determining a first inertia motion velocity attenuation parameter by using the weight of the motion velocity when the track path is ended and the weight of the motion track;
determining a second inertia motion speed attenuation parameter by using the weight of the motion track direction and the weight of the displacement distance of the motion track;
and determining the duration of the inertial motion according to the first inertial motion velocity attenuation parameter and the second inertial motion velocity attenuation parameter.
5. The page control method of claim 4, wherein determining the inertial motion velocity decay parameter and the inertial motion duration based on the first inertial motion velocity decay parameter and the second inertial motion velocity decay parameter comprises:
determining the duration of the inertial motion by utilizing the following preset inertial motion speed attenuation function according to the first inertial motion speed attenuation parameter and the second inertial motion speed attenuation parameter;
B(t)=P0(1-t)3+3P1t(1-t)2+3P2t2(1-t)2+P3t3
t=t0/t1
wherein, P0Represents a velocity decay of 0%, P3Represents a velocity decay of 100%, P1、P2Respectively representing the first inertia motion speed attenuation parameter and the second inertia motion speed attenuation parameter, t represents the ratio of the inertia motion duration of the page to the inertia motion duration, t1Representing the duration of said inertial movement, t0Representing the duration of page inertial motion.
6. The page control method of claim 1, wherein said controlling content displayed on the page to return to the top or bottom of the page according to the trajectory path comprises:
calculating a longitudinal coordinate displacement value of a track path based on the longitudinal coordinate value of the starting point and the longitudinal coordinate value of the ending point, and popping up a function icon which is pressed to the top or the bottom according to the longitudinal coordinate displacement value of the track path;
and when the user clicks the function icon, loading the content displayed on the page and returning to the top or the bottom of the page.
7. The page control method of any one of claims 1 to 6, wherein the acquiring a track path generated by a user on a page displayed on a screen of an electronic device in a preset manner comprises:
generating a track path according to touch operation of a user on a screen of the electronic equipment through a finger or touch equipment; or
And generating a track path according to the limb action of the user captured by the camera of the electronic equipment.
8. A page control apparatus, characterized in that the apparatus comprises:
the coordinate acquisition module is used for acquiring a track path generated on a page displayed on a screen of the electronic equipment by a user in a preset mode, and reading a longitudinal coordinate value of a starting point and a longitudinal coordinate value of an ending point of the track path when the track path meets a preset condition;
the displacement calculation module is used for calculating the absolute value of the longitudinal coordinate displacement of the starting point and the ending point of the track path based on the longitudinal coordinate value of the starting point and the longitudinal coordinate value of the ending point;
the page rolling control module is used for controlling the content displayed on the page to roll according to the track path when the absolute value of the vertical coordinate displacement does not reach a preset standard value; when the absolute value of the longitudinal coordinate displacement reaches the preset standard value, obtaining the maintaining time of the termination point; when the maintaining time does not reach a preset time value, controlling the content displayed on the page to roll according to the track path;
and the page top or bottom control module is used for controlling the content displayed on the page to return to the top or bottom of the page according to the track path when the maintaining time reaches a preset time value.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the page control method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the page control method according to any one of claims 1 to 7.
CN202210054969.1A 2022-01-18 2022-01-18 Page control method, device, equipment and storage medium Active CN114415888B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210054969.1A CN114415888B (en) 2022-01-18 2022-01-18 Page control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210054969.1A CN114415888B (en) 2022-01-18 2022-01-18 Page control method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114415888A true CN114415888A (en) 2022-04-29
CN114415888B CN114415888B (en) 2024-04-30

Family

ID=81272481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210054969.1A Active CN114415888B (en) 2022-01-18 2022-01-18 Page control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114415888B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116088997A (en) * 2023-04-07 2023-05-09 深圳市微克科技有限公司 Page scrolling display method and device, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040021676A1 (en) * 2002-08-01 2004-02-05 Tatung Co., Ltd. Method and apparatus of view window scrolling
CN102402392A (en) * 2011-10-31 2012-04-04 广东威创视讯科技股份有限公司 Page transmission method and device for touch screen
CN104461255A (en) * 2014-12-29 2015-03-25 小米科技有限责任公司 Page display method and device and electronic equipment
CN105872233A (en) * 2016-04-26 2016-08-17 努比亚技术有限公司 Display method and terminal
US20170123624A1 (en) * 2015-11-02 2017-05-04 Guangzhou Ucweb Computer Technology Co., Ltd. Methods, apparatuses, and devices for processing interface displays
US20180121079A1 (en) * 2015-12-15 2018-05-03 Huawei Technologies Co., Ltd. Operation Track Response Method and Operation Track Response Apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040021676A1 (en) * 2002-08-01 2004-02-05 Tatung Co., Ltd. Method and apparatus of view window scrolling
CN102402392A (en) * 2011-10-31 2012-04-04 广东威创视讯科技股份有限公司 Page transmission method and device for touch screen
CN104461255A (en) * 2014-12-29 2015-03-25 小米科技有限责任公司 Page display method and device and electronic equipment
US20170123624A1 (en) * 2015-11-02 2017-05-04 Guangzhou Ucweb Computer Technology Co., Ltd. Methods, apparatuses, and devices for processing interface displays
US20180121079A1 (en) * 2015-12-15 2018-05-03 Huawei Technologies Co., Ltd. Operation Track Response Method and Operation Track Response Apparatus
CN105872233A (en) * 2016-04-26 2016-08-17 努比亚技术有限公司 Display method and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116088997A (en) * 2023-04-07 2023-05-09 深圳市微克科技有限公司 Page scrolling display method and device, storage medium and electronic equipment
CN116088997B (en) * 2023-04-07 2023-07-21 深圳市微克科技有限公司 Page scrolling display method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN114415888B (en) 2024-04-30

Similar Documents

Publication Publication Date Title
CN104106033B (en) The thumbnail image selection of application
CN102099782B (en) Pan and zoom control
US20120102400A1 (en) Touch Gesture Notification Dismissal Techniques
CN102929491A (en) Cross-window animation
CN108182032A (en) For the user interface edited on the spot to value
CN107219983A (en) List display method and device
CN103488372A (en) Method for displaying load data and electronic equipment
CN116320141B (en) Method for recommending card punching, electronic equipment and computer readable storage medium
CN114415888B (en) Page control method, device, equipment and storage medium
CN113641638A (en) Application management method and device, electronic equipment and storage medium
CN115048174A (en) User-based personalized menu generation method, device, equipment and storage medium
US20120159319A1 (en) Method for simulating a page turn in an electronic document
CN114862140A (en) Behavior analysis-based potential evaluation method, device, equipment and storage medium
WO2023216745A1 (en) Table reconstruction method and electronic device
CN112069782A (en) Document template generation method and device, electronic equipment and storage medium
CN103460174A (en) Augmenting user interface elements
CN106445083A (en) Gravity sensing data correction method and system
CN115238179A (en) Project pushing method and device, electronic equipment and computer readable storage medium
US20150178281A1 (en) Determining whether a user has seen a content item
CN114090392A (en) Page browsing time duration statistical method and device, electronic equipment and storage medium
CN113869218A (en) Face living body detection method and device, electronic equipment and readable storage medium
CN114186540A (en) Mail content intelligent filling method and device, electronic equipment and storage medium
CN103809899A (en) Instruction input method and portable electronic device
EP2921944B1 (en) User interface
CN114286164B (en) Video synthesis method and device, electronic equipment and storage medium

Legal Events

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