A scrolling control method and device for task timeline

By calculating the pixel spacing and time point difference of task time point data, the page scrolling speed is adjusted, which solves the problem in the existing technology that the timeline scrolling display does not correspond to the currently executed task, and achieves more accurate and friendly task timeline scrolling. control.

CN118394444BActive Publication Date: 2024-09-27GUANGZHOU BAOLUN ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410866756.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-09-27
Estimated Expiration
2044-07-01

AI Technical Summary

Technical Problem

The scrolling control of the existing timeline cannot dynamically generate appropriate time intervals based on the current task, resulting in the problem that the scrolling display does not correspond to the currently executing task.

Method used

By obtaining task time point data, calculate the pixel spacing and time point difference between each row of task time point data, generate task timeline control instructions, and adjust the page scrolling speed so that the scrolling of the task timeline is completely consistent with the currently executing task.

Benefits of technology

Improved the accuracy and user experience of task timeline scrolling to ensure that the timeline scrolling display corresponds to the currently executing tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118394444B
    Figure CN118394444B
Patent Text Reader

Abstract

The present invention discloses a method and device for scrolling control of a task timeline, which comprises the steps of obtaining a plurality of rows of task time point data; obtaining the pixel spacing and the time point difference between each two adjacent rows of task time point data according to the timeline display data corresponding to each row of task time point data; for each row of task time point data, calculating the page scrolling speed of each row of task time point data when it is at a position indicated by a page arrow according to the pixel spacing and the time point difference between the current row of task time point data and the next row of task time point data; generating a task timeline control instruction based on the page scrolling speed of each row of task time point data, and transmitting the task timeline control instruction to the task timeline, so that the task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data based on the page scrolling speed corresponding to the task time point data when it is at the position indicated by the page arrow.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of electronic digital data processing, and in particular to a method and device for scrolling control of a task time axis. Background Art

[0002] The existing timeline usually has a fixed time period and displays different tasks based on the same time interval. The scrolling control of the existing timeline does not dynamically generate a time interval inconsistent timeline that is more friendly to task display based on the current existing tasks. Therefore, the existing timeline has the problem that the scrolling display does not correspond to the currently executed task.

[0003] Therefore, there is an urgent need for a scrolling control strategy for the task timeline, so as to solve the problem that the scrolling display of the timeline does not correspond to the currently executed task. Summary of the invention

[0004] The embodiment of the present invention provides a method and device for scrolling control of a task timeline, so as to solve the problem that the scrolling display of the timeline does not correspond to the currently executed task.

[0005] In order to solve the above problem, an embodiment of the present invention provides a scrolling control method of a task timeline, comprising:

[0006] Acquire several rows of task time point data; wherein each of the task time point data includes: time axis display data and task block display data; wherein the time axis display data is specifically a time point; and the task block display data is specifically one or more task names;

[0007] According to the time axis display data corresponding to each row of the task time point data, the pixel spacing and time point difference between every two adjacent rows of the task time point data are obtained;

[0008] For each row of the task time point data, the page scrolling speed of each row of the task time point data when it is at the position indicated by the page arrow is calculated according to the pixel spacing and time point difference between the current row of the task time point data and the next row of the task time point data;

[0009] Based on the page scrolling speed of the task time point data in each row, a task timeline control instruction is generated, and the task timeline control instruction is transmitted to the task timeline, so that the task timeline is based on the page scrolling speed corresponding to the task time point data when it is at the position indicated by the page arrow. The task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data; wherein, the task timeline selects the target task time point data from several rows of task time point data for page display according to a preset pixel spacing.

[0010] As an improvement of the above solution, the task time axis selects target task time point data from several rows of task time point data for page display according to a preset pixel spacing, including:

[0011] The task timeline arranges all rows of task time point data in order from early to late according to the time corresponding to the time displayed on the timeline, to obtain a total display area of ​​the timeline; wherein each row of task time point data occupies the same page size;

[0012] The task timeline calculates the number of displayable tasks according to the pixel spacing, the current time, and the screen display size, determines the corresponding target task time point data based on the number of displayable tasks in the total display area of ​​the timeline, and uses the position corresponding to the target task time point data as the target display area;

[0013] The task time axis displays data of several task time points in the target display area, and performs time judgment on each target task time point data in the target display area;

[0014] If the time corresponding to the target task time point data is the current time, the task timeline marks the state of the target task time point data corresponding to the current time as the task being executed;

[0015] If the time corresponding to the target task time point data is greater than the current time, the task time axis marks the state of the target task time point data whose time is greater than the current time as the task not executed;

[0016] If the time corresponding to the target task time point data is less than the current time, the task timeline marks the state of the target task time point data whose time is less than the current time as the task has been executed.

[0017] As an improvement of the above solution, the method of determining the corresponding target task time point data based on the number of displayable tasks in the total display area of ​​the time axis, and using the position corresponding to the target task time point data as the target display area, includes:

[0018] The task time axis determines whether the first row of task time point data corresponds to the current time;

[0019] If so, in the total display area of ​​the time axis, the task time axis selects the first row of task time point data as the first row and the first target task time point data as the last row to obtain the target display area; wherein the first target task time point data is the task time point data of the first preset number of rows below the current task time point data; the first preset number of rows is the number of displayable tasks minus two;

[0020] If not, the task timeline scrolls the total timeline display area in the target display area.

[0021] As an improvement of the above solution, after the task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data, it also includes:

[0022] When the scrolling distance does not exceed the difference between the size of the total display area of ​​the timeline and the screen display size, the task timeline keeps scrolling upwards;

[0023] When the scrolling distance exceeds the difference between the total display area of ​​the timeline and the screen, the task timeline stops scrolling upwards;

[0024] When it is detected that the user scrolls the scroll axis, the task time axis stops scrolling upward within a preset pending time.

[0025] As an improvement of the above solution, the task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data, including:

[0026] The task timeline is based on the page scrolling speed corresponding to the task time point when it is at the position indicated by the page arrow, and through the animation function, controls the timeline display data and task block display data corresponding to each task time point in the timeline total display area to scroll upward synchronously in the target area.

[0027] Accordingly, an embodiment of the present invention further provides a scrolling control device for a task timeline, comprising: a data acquisition module, a data extraction module, a data calculation module and a data control module;

[0028] The data acquisition module is used to acquire several rows of task time point data; wherein each of the task time point data includes: time axis display data and task block display data; wherein the time axis display data is specifically a time point; and the task block display data is specifically one or more task names;

[0029] The data extraction module is used to obtain the pixel spacing and time point difference between every two adjacent rows of the task time point data according to the time axis display data corresponding to each row of the task time point data;

[0030] The data calculation module is used to calculate the page scrolling speed of each row of the task time point data when it is at the position indicated by the page arrow according to the pixel spacing and time point difference between the current row of the task time point data and the next row of the task time point data;

[0031] The data control module is used to generate a task timeline control instruction based on the page scrolling speed of the task time point data in each row, and transmit the task timeline control instruction to the task timeline so that the task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data based on the page scrolling speed corresponding to the task time point data when the task time line is at the position indicated by the page arrow; wherein the task timeline selects the target task time point data from several rows of task time point data for page display according to a preset pixel spacing.

[0032] As an improvement of the above solution, the task time axis selects target task time point data from several rows of task time point data for page display according to a preset pixel spacing, including:

[0033] The task timeline arranges all rows of task time point data in order from early to late according to the time corresponding to the time displayed on the timeline, to obtain a total display area of ​​the timeline; wherein each row of task time point data occupies the same page size;

[0034] The task timeline calculates the number of displayable tasks according to the pixel spacing, the current time, and the screen display size, determines the corresponding target task time point data based on the number of displayable tasks in the total display area of ​​the timeline, and uses the position corresponding to the target task time point data as the target display area;

[0035] The task time axis displays data of several task time points in the target display area, and performs time judgment on each target task time point data in the target display area;

[0036] If the time corresponding to the target task time point data is the current time, the task timeline marks the state of the target task time point data corresponding to the current time as the task being executed;

[0037] If the time corresponding to the target task time point data is greater than the current time, the task time axis marks the state of the target task time point data whose time is greater than the current time as the task not executed;

[0038] If the time corresponding to the target task time point data is less than the current time, the task timeline marks the state of the target task time point data whose time is less than the current time as the task has been executed.

[0039] As an improvement of the above solution, the method of determining the corresponding target task time point data based on the number of displayable tasks in the total display area of ​​the time axis, and using the position corresponding to the target task time point data as the target display area, includes:

[0040] The task time axis determines whether the first row of task time point data corresponds to the current time;

[0041] If so, in the total display area of ​​the time axis, the task time axis selects the first row of task time point data as the first row and the first target task time point data as the last row to obtain the target display area; wherein the first target task time point data is the task time point data of the first preset number of rows below the current task time point data; the first preset number of rows is the number of displayable tasks minus two;

[0042] If not, the task timeline scrolls the total timeline display area in the target display area.

[0043] As an improvement of the above solution, after the task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data, it also includes:

[0044] When the scrolling distance does not exceed the difference between the size of the total display area of ​​the timeline and the screen display size, the task timeline keeps scrolling upwards;

[0045] When the scrolling distance exceeds the difference between the total display area of ​​the timeline and the screen, the task timeline stops scrolling upwards;

[0046] When it is detected that the user scrolls the scroll axis, the task time axis stops scrolling upward within a preset pending time.

[0047] As an improvement of the above solution, the task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data, including:

[0048] The task timeline is based on the page scrolling speed corresponding to the task time point when it is at the position indicated by the page arrow, and through the animation function, controls the timeline display data and task block display data corresponding to each task time point in the timeline total display area to scroll upward synchronously in the target area.

[0049] As can be seen from the above, the present invention has the following beneficial effects:

[0050] The present invention provides a scrolling control method for a task timeline, which includes obtaining several rows of task time point data; obtaining the pixel spacing and time point difference between each two rows of adjacent task time point data according to the timeline display data corresponding to each row of task time point data; for each row of task time point data, calculating the page scrolling speed of each row of task time point data when it is at the position indicated by the page arrow according to the pixel spacing and time point difference between the current row of task time point data and the next row of task time point data; generating a task timeline control instruction based on the page scrolling speed of each row of task time point data, and transmitting the task timeline control instruction to the task timeline, so that the task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data based on the page scrolling speed corresponding to the task time point data when it is at the position indicated by the page arrow. The present invention analyzes the pixel spacing and time point difference of the task time point, and adjusts the page scrolling speed based on different time point differences, so that the time of the timeline scrolling display is completely consistent with the currently executed task, thereby improving the accuracy of the task timeline scrolling and optimizing the user experience of using the task timeline. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a flowchart of a method for scrolling control of a task timeline provided by an embodiment of the present invention;

[0052] Figure 2 It is a structural schematic diagram of a scrolling control device for a task timeline provided by an embodiment of the present invention;

[0053] Figure 3 It is a schematic diagram of an interface display of a task timeline provided by an embodiment of the present invention;

[0054] Figure 4 It is a schematic diagram of the structure of a terminal device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] Embodiment 1

[0057] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for scrolling a task timeline provided by an embodiment of the present invention. Figure 1As shown, this embodiment includes steps 101 to 104, and each step is specifically as follows:

[0058] Step 101: Obtain several rows of task time point data; wherein each of the task time point data includes: timeline display data and task block display data; wherein the timeline display data is specifically a time point; and the task block display data is specifically one or more task names.

[0059] In this embodiment, the task time point data is created in advance by the user and imported into the server. The task data includes the content of the task and the start execution time of the task, etc. The tasks that need to be executed today are obtained from the server, and the start execution time of these tasks is returned to the front-end interface via HTTP.

[0060] Step 102: According to the time axis display data corresponding to each row of the task time point data, the pixel spacing and time point difference between every two adjacent rows of the task time point data are obtained.

[0061] Step 103: For each row of the task time point data, calculate the page scrolling speed of each row of the task time point data when it is at the position indicated by the page arrow based on the pixel spacing and time point difference between the current row of the task time point data and the next row of the task time point data.

[0062] Step 104: Generate a task timeline control instruction based on the page scrolling speed of each row of the task time point data, and transmit the task timeline control instruction to the task timeline so that the task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data based on the page scrolling speed corresponding to the task time point data when the task time line is at the position indicated by the page arrow; wherein the task timeline selects the target task time point data from several rows of task time point data for page display according to a preset pixel spacing.

[0063] In a specific embodiment, the page arrow indicates the task and time currently being processed by the task timeline. The arrow position is changed by changing the value of the top attribute in the built-in attribute object style in the DOM element of the arrow.

[0064] In this embodiment, the task time axis selects target task time point data from a number of rows of task time point data for page display according to a preset pixel spacing, including:

[0065] The task timeline arranges all rows of task time point data in order from early to late according to the time corresponding to the time displayed on the timeline, to obtain a total display area of ​​the timeline; wherein each row of task time point data occupies the same page size;

[0066] The task timeline calculates the number of displayable tasks according to the pixel spacing, the current time, and the screen display size, determines the corresponding target task time point data based on the number of displayable tasks in the total display area of ​​the timeline, and uses the position corresponding to the target task time point data as the target display area;

[0067] The task time axis displays data of several task time points in the target display area, and performs time judgment on each target task time point data in the target display area;

[0068] If the time corresponding to the target task time point data is the current time, the task timeline marks the state of the target task time point data corresponding to the current time as the task being executed;

[0069] If the time corresponding to the target task time point data is greater than the current time, the task time axis marks the state of the target task time point data whose time is greater than the current time as the task not executed;

[0070] If the time corresponding to the target task time point data is less than the current time, the task timeline marks the state of the target task time point data whose time is less than the current time as the task has been executed.

[0071] In a specific embodiment, the task status is classified into: task being executed, task not executed, and task executed.

[0072] The judgment logic is based on the current time: execution time (each task will have a start execution time accurate to the second);

[0073] Task executed: execution time < current time;

[0074] Task not executed: execution time > current time;

[0075] Task is being executed: Determine whether the task is being executed by receiving the real-time status of the task returned from the server via the webSocket communication protocol; the task being executed has the highest priority.

[0076] In a specific embodiment, the code logic is implemented as follows:

[0077] ① Monitor changes in the current time;

[0078] 1) Since the tasks are divided into different time periods by minute, and the time periods are sorted in order;

[0079] 2) Every change of the current time (every second) will be judged;

[0080] a. Whether it is greater than the current time period limit;

[0081] b. Traverse all tasks in this time period and determine:

[0082] a) Check if the parent task is being executed. If so, continue to traverse the next task (to ensure that the priority of the task being executed is the highest);

[0083] b) If the task is not being executed; if it is greater than the task execution time, change the task status to executed;

[0084] c) If the task is not being executed; if it is less than the task execution time, change the task status to not executed.

[0085] ② Listen for task status information pushed from the server to the interface program via the webSocket communication protocol;

[0086] 1) Update which tasks are being executed in real time, if the status of a task changes; judge:

[0087] a. Traverse all tasks in the current component and change the status of the tasks.

[0088] In this embodiment, the determining of the corresponding target task time point data based on the number of displayable tasks in the total display area of ​​the time axis, and using the position corresponding to the target task time point data as the target display area, includes:

[0089] The task time axis determines whether the first row of task time point data corresponds to the current time;

[0090] If so, in the total display area of ​​the time axis, the task time axis selects the first row of task time point data as the first row and the first target task time point data as the last row to obtain the target display area; wherein the first target task time point data is the task time point data of the first preset number of rows below the current task time point data; the first preset number of rows is the number of displayable tasks minus two;

[0091] If not, the task timeline scrolls the total timeline display area in the target display area.

[0092] In this embodiment, after the task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data, the following further comprises:

[0093] When the scrolling distance does not exceed the difference between the size of the total display area of ​​the timeline and the screen display size, the task timeline keeps scrolling upwards;

[0094] When the scrolling distance exceeds the difference between the total display area of ​​the timeline and the screen, the task timeline stops scrolling upwards;

[0095] When it is detected that the user scrolls the scroll axis, the task time axis stops scrolling upward within a preset pending time.

[0096] To better illustrate, the page scrolls if the scroll distance does not exceed the maximum height of the page (the current page is not at the bottom); and the user does not actively scroll over the scroll axis;

[0097] If the current page is at the bottom (i.e., the difference between the size of the total display area of ​​the timeline and the screen display size as described in the present invention), the logic of automatically changing the page scroll height will no longer be triggered;

[0098] If the user actively scrolls over the scroll axis, the page scroll height will not be automatically changed within 30 seconds (ie, the pending time mentioned in the present invention).

[0099] Page scrolling implementation logic:

[0100] 1) Get the overall height of the scrollable area: clientHeight;

[0101] a. Get the DOM element timeLineBoxRef of the page (the DOM element of the timeline in the component) through the Ref method of the Vue framework;

[0102] a) Principle: The implementation principle of Vue's ref is to generate the corresponding AST node during compilation, create a responsive reference object when the component is instantiated, and finally assign the actual DOM element or component instance to the corresponding attribute in the $refs attribute;

[0103] b) Get the overall height of the area through the clientHeight property built into the DOM element.

[0104] 2) Get the current height of the page;

[0105] a. The scrolled height + the user's current visible height;

[0106] b. Get scrollbarRef (DOM element of the scrollable area) through the Ref method;

[0107] c. Then get clientHeight (visible height) and scrollTop (scrolling height) through the built-in method of Element-plus UI framework;

[0108] 3) Use the built-in setScrollTop method of scrollbarRef in (5)-②- 2)- b to change the scroll height of the current page;

[0109] 4) The height (H) of each change is calculated based on the speed calculated in (3) above: H = speed* 1s.

[0110] In this embodiment, the task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data, including:

[0111] The task timeline is based on the page scrolling speed corresponding to the task time point when it is at the position indicated by the page arrow, and through the animation function, controls the timeline display data and task block display data corresponding to each task time point in the timeline total display area to scroll upward synchronously in the target area.

[0112] In a specific embodiment, the use of the animation function is specifically as follows:

[0113] By using a method provided by the browser requestAnimationFrame; this method is mainly used to optimize the animation and rendering loop to ensure that the callback function is executed before each browser repaint.

[0114] When you call requestAnimationFrame and pass in a callback function, the browser adds the callback function to a callback queue.

[0115] Every time the browser is ready to redraw, it checks the callback queue and chooses the right time to execute these callback functions according to specific rules. This ensures that the callback function is executed before the browser processes the next frame of animation.

[0116] When the browser is ready for the next repaint, it will pick up the callback functions from the callback queue and execute them one by one.

[0117] The browser triggers the requestAnimationFrame callback function before each frame. This is usually around 60 times per second, depending on the performance of the browser and device.

[0118] The requestAnimationFrame callback function is executed on the browser's main thread and is usually used to perform animations, update rendering, or handle other operations that require high performance.

[0119] The requestAnimationFrame method returns a unique identifier, and you can cancel the execution of the callback function by calling the cancelAnimationFrame method.

[0120] When the page is not visible or the browser is running in the background, the requestAnimationFrame callback function will not be executed, which can save system resources.

[0121] Specific implementation of animation function:

[0122] We need to control how many seconds it takes to scroll the page. Considering performance and user experience, we will scroll the page once more than 1 second.

[0123] a.js function call;

[0124] b. Calculation of the timer time of js;

[0125] c. Implementation of browser repainting.

[0126] There will be errors and delays because it takes time to execute instructions. So we change the scroll height of the page every 0.99 seconds in the code to smooth out the errors as much as possible, so as to achieve a change of the page scroll height every 1 second.

[0127] The 0.99 seconds is compared with the current time and the timestamp of the last change in the scroll height (a variable prveTimeWar stored globally).

[0128] Then change the page scroll height and the position of the arrow on the left side of the page;

[0129] The most important thing is to implement the loop triggering of each frame through the requestAnimationFrame function.

[0130] In a specific embodiment, see Figure 3 , Figure 3 The following is a schematic diagram of the interface display of the task timeline shown in the present invention, specifically:

[0131] 1. Component location analysis:

[0132] (1) The left side is the timeline of the current task, accurate to the minute;

[0133] (2) The right side shows the tasks that started within the same minute.

[0134] (3) The arrow indicates the current time on the timeline.

[0135] 2. Color description:

[0136] (1) Gray indicates tasks that have been completed

[0137] (2) Green indicates a task that is being executed. Since users can manually trigger the execution of tasks, there may be situations where the task is being executed even though the time has not yet arrived.

[0138] (3) Blue indicates unexecuted tasks

[0139] See also Figure 2 , Figure 2 It is a structural schematic diagram of a scrolling control device for a task timeline provided by an embodiment of the present invention, comprising: a data acquisition module 201, a data extraction module 202, a data calculation module 203 and a data control module 204;

[0140] The data acquisition module is used to acquire several rows of task time point data; wherein each of the task time point data includes: time axis display data and task block display data; wherein the time axis display data is specifically a time point; and the task block display data is specifically one or more task names;

[0141] The data extraction module is used to obtain the pixel spacing and time point difference between every two adjacent rows of the task time point data according to the time axis display data corresponding to each row of the task time point data;

[0142] The data calculation module is used to calculate the page scrolling speed of each row of the task time point data when it is at the position indicated by the page arrow according to the pixel spacing and time point difference between the current row of the task time point data and the next row of the task time point data;

[0143] The data control module is used to generate a task timeline control instruction based on the page scrolling speed of the task time point data in each row, and transmit the task timeline control instruction to the task timeline so that the task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data based on the page scrolling speed corresponding to the task time point data when the task time line is at the position indicated by the page arrow; wherein the task timeline selects the target task time point data from several rows of task time point data for page display according to a preset pixel spacing.

[0144] As an improvement of the above solution, the task time axis selects target task time point data from several rows of task time point data for page display according to a preset pixel spacing, including:

[0145] The task timeline arranges all rows of task time point data in order from early to late according to the time corresponding to the time displayed on the timeline, to obtain a total display area of ​​the timeline; wherein each row of task time point data occupies the same page size;

[0146] The task timeline calculates the number of displayable tasks according to the pixel spacing, the current time, and the screen display size, determines the corresponding target task time point data based on the number of displayable tasks in the total display area of ​​the timeline, and uses the position corresponding to the target task time point data as the target display area;

[0147] The task time axis displays data of several task time points in the target display area, and performs time judgment on each target task time point data in the target display area;

[0148] If the time corresponding to the target task time point data is the current time, the task timeline marks the state of the target task time point data corresponding to the current time as the task being executed;

[0149] If the time corresponding to the target task time point data is greater than the current time, the task time axis marks the state of the target task time point data whose time is greater than the current time as the task not executed;

[0150] If the time corresponding to the target task time point data is less than the current time, the task timeline marks the state of the target task time point data whose time is less than the current time as the task has been executed.

[0151] As an improvement of the above solution, the method of determining the corresponding target task time point data based on the number of displayable tasks in the total display area of ​​the time axis, and using the position corresponding to the target task time point data as the target display area, includes:

[0152] The task time axis determines whether the first row of task time point data corresponds to the current time;

[0153] If so, in the total display area of ​​the time axis, the task time axis selects the first row of task time point data as the first row and the first target task time point data as the last row to obtain the target display area; wherein the first target task time point data is the task time point data of the first preset number of rows below the current task time point data; the first preset number of rows is the number of displayable tasks minus two;

[0154] If not, the task timeline scrolls the total timeline display area in the target display area.

[0155] As an improvement of the above solution, after the task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data, it also includes:

[0156] When the scrolling distance does not exceed the difference between the size of the total display area of ​​the timeline and the screen display size, the task timeline keeps scrolling upwards;

[0157] When the scrolling distance exceeds the difference between the total display area of ​​the timeline and the screen, the task timeline stops scrolling upwards;

[0158] When it is detected that the user scrolls the scroll axis, the task time axis stops scrolling upward within a preset pending time.

[0159] As an improvement of the above solution, the task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data, including:

[0160] The task timeline is based on the page scrolling speed corresponding to the task time point when it is at the position indicated by the page arrow, and through the animation function, controls the timeline display data and task block display data corresponding to each task time point in the timeline total display area to scroll upward synchronously in the target area.

[0161] This embodiment obtains several rows of task time point data; according to the time axis display data corresponding to each row of task time point data, obtains the pixel spacing and time point difference between each two rows of adjacent task time point data; for each row of task time point data, according to the pixel spacing and time point difference between the current row of task time point data and the next row of task time point time, calculates the page scrolling speed of each row of task time point data when it is at the position indicated by the page arrow; based on the page scrolling speed of each row of task time point data, generates a task time axis control instruction, and transmits the task time axis control instruction to the task time axis, so that the task time axis is based on the page scrolling speed corresponding to the task time point data when it is at the position indicated by the page arrow, and the task time axis controls the synchronous upward scrolling of the time axis display data and the task block display data. The present invention analyzes the pixel spacing and time point difference of the task time point, adjusts the page scrolling speed based on different time point differences, makes the time of the time axis scrolling display completely consistent with the currently executed task, improves the accuracy of the task time axis scrolling, and optimizes the user experience of using the task time axis.

[0162] Embodiment 2

[0163] See also Figure 4 , Figure 4 It is a schematic diagram of the structure of a terminal device provided in one embodiment of the present invention.

[0164] A terminal device of this embodiment includes: a processor 401, a memory 402, and a computer program stored in the memory 402 and executable on the processor 401. When the processor 401 executes the computer program, the steps of the above-mentioned method for scrolling control of each task time axis in the embodiment are implemented, for example Figure 1 Alternatively, when the processor executes the computer program, the functions of each module in the above-mentioned device embodiments are realized, for example: Figure 2 The task timeline shown is a scrollable control for all modules of the device.

[0165] In addition, an embodiment of the present invention further provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the scrolling control method of the task timeline as described in any of the above embodiments.

[0166] Those skilled in the art will understand that the schematic diagram is merely an example of a terminal device and does not constitute a limitation on the terminal device. The terminal device may include more or fewer components than shown in the diagram, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.

[0167] The processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 401 is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.

[0168] The memory 402 can be used to store the computer program and / or module. The processor 401 implements various functions of the terminal device by running or executing the computer program and / or module stored in the memory and calling the data stored in the memory 402. The memory 402 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.). In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0169] Wherein, if the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0170] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0171] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for scrolling control of a task timeline, characterized in that: include: Acquire several rows of task time point data; wherein each of the task time point data includes: time axis display data and task block display data; wherein the time axis display data is specifically a time point; and the task block display data is specifically one or more task names; According to the time axis display data corresponding to each row of the task time point data, the pixel spacing and time point difference between every two adjacent rows of the task time point data are obtained; For each row of task time point data, the page scrolling speed of each row of task time point data when it is at the position indicated by the page arrow is calculated based on the pixel spacing and time point difference between the current row of task time point data and the next row of task time point data, and the page scrolling speed is adjusted based on different time point differences; the position indicated by the page arrow indicates the task and time currently being processed by the task timeline; Based on the page scrolling speed of each row of the task time point data, a task timeline control instruction is generated, and the task timeline control instruction is transmitted to the task timeline, so that the task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data based on the page scrolling speed corresponding to the task time point data when the task time line is at the position indicated by the page arrow; wherein the task timeline selects target task time point data from several rows of task time point data for page display according to a preset pixel spacing; the task timeline arranges all rows of task time point data in order from early to late according to the time corresponding to the timeline display data to obtain the total display area of ​​the timeline; wherein each row of task time point data occupies the same page size.

2. The scrolling control method of the task timeline according to claim 1, characterized in that: The task time axis selects target task time point data from several rows of task time point data for page display according to a preset pixel spacing, including: The task timeline calculates the number of displayable tasks according to the preset pixel spacing, current time and screen display size, determines the corresponding target task time point data based on the number of displayable tasks in the total display area of ​​the timeline, and uses the position corresponding to the target task time point data as the target display area; The task time axis displays data of several task time points in the target display area, and performs time judgment on each target task time point data in the target display area; If the time corresponding to the target task time point data is the current time, the task timeline marks the state of the target task time point data corresponding to the current time as the task being executed; If the time corresponding to the target task time point data is greater than the current time, the task time axis marks the state of the target task time point data whose time is greater than the current time as the task not executed; If the time corresponding to the target task time point data is less than the current time, the task timeline marks the state of the target task time point data whose time is less than the current time as the task has been executed.

3. The scrolling control method of the task timeline according to claim 2, characterized in that: The step of determining the corresponding target task time point data based on the number of displayable tasks in the total display area of ​​the time axis, and using the position corresponding to the target task time point data as the target display area, comprises: The task time axis determines whether the first row of task time point data corresponds to the current time; If so, in the total display area of ​​the time axis, the task time axis selects the first row of task time point data as the first row and the first target task time point data as the last row to obtain the target display area; wherein the first target task time point data is the task time point data of the first preset number of rows below the current task time point data; the first preset number of rows is the number of displayable tasks minus two; If not, the task timeline scrolls the total timeline display area in the target display area.

4. The method for scrolling control of a task timeline according to claim 3, characterized in that: After the task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data, the method further includes: When the scrolling distance does not exceed the difference between the size of the total display area of ​​the timeline and the screen display size, the task timeline keeps scrolling upwards; When the scrolling distance exceeds the difference between the size of the total display area of ​​the timeline and the screen display size, the task timeline stops scrolling upwards; When it is detected that the user scrolls the scroll axis, the task time axis stops scrolling upward within a preset waiting time.

5. The scrolling control method of the task timeline according to claim 4, characterized in that: The task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data, including: The task timeline is based on the page scrolling speed corresponding to the task time point when it is at the position indicated by the page arrow, and through the animation function, controls the timeline display data and task block display data corresponding to each task time point in the timeline total display area to scroll upward synchronously in the target area.

6. A scrolling control device for a task timeline, characterized in that: include: Data acquisition module, data extraction module, data calculation module and data control module; The data acquisition module is used to acquire several rows of task time point data; wherein each of the task time point data includes: time axis display data and task block display data; wherein the time axis display data is specifically a time point; and the task block display data is specifically one or more task names; The data extraction module is used to obtain the pixel spacing and time point difference between every two adjacent rows of the task time point data according to the time axis display data corresponding to each row of the task time point data; The data calculation module is used to calculate the page scrolling speed of each row of the task time point data when it is at the position indicated by the page arrow according to the pixel spacing and time point difference between the current row of task time point data and the next row of task time point time, and adjust the page scrolling speed based on different time point differences; the page arrow indicates the task and time currently processed by the task timeline; The data control module is used to generate a task timeline control instruction based on the page scrolling speed of each row of the task time point data, and transmit the task timeline control instruction to the task timeline so that the task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data based on the page scrolling speed corresponding to the task time point data when the task time line is at the position indicated by the page arrow; wherein the task timeline selects target task time point data from several rows of task time point data for page display according to a preset pixel spacing; the task timeline arranges all rows of task time point data in order from early to late according to the time corresponding to the timeline display data to obtain the total display area of ​​the timeline; wherein the page size occupied by each row of task time point data is the same.

7. The task timeline scrolling control device according to claim 6, characterized in that: The task time axis selects target task time point data from several rows of task time point data for page display according to a preset pixel spacing, including: The task timeline calculates the number of displayable tasks according to the preset pixel spacing, current time and screen display size, determines the corresponding target task time point data based on the number of displayable tasks in the total display area of ​​the timeline, and uses the position corresponding to the target task time point data as the target display area; The task time axis displays data of several task time points in the target display area, and performs time judgment on each target task time point data in the target display area; If the time corresponding to the target task time point data is the current time, the task timeline marks the state of the target task time point data corresponding to the current time as the task being executed; If the time corresponding to the target task time point data is greater than the current time, the task time axis marks the state of the target task time point data whose time is greater than the current time as the task not executed; If the time corresponding to the target task time point data is less than the current time, the task timeline marks the state of the target task time point data whose time is less than the current time as the task has been executed.

8. The task timeline scrolling control device according to claim 7, characterized in that: The step of determining the corresponding target task time point data based on the number of displayable tasks in the total display area of ​​the time axis, and using the position corresponding to the target task time point data as the target display area, comprises: The task time axis determines whether the first row of task time point data corresponds to the current time; If so, in the total display area of ​​the time axis, the task time axis selects the first row of task time point data as the first row and the first target task time point data as the last row to obtain the target display area; wherein the first target task time point data is the task time point data of the first preset number of rows below the current task time point data; the first preset number of rows is the number of displayable tasks minus two; If not, the task timeline scrolls the total timeline display area in the target display area.

9. The task timeline scrolling control device according to claim 8, characterized in that: After the task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data, the method further includes: When the scrolling distance does not exceed the difference between the size of the total display area of ​​the timeline and the screen display size, the task timeline keeps scrolling upwards; When the scrolling distance exceeds the difference between the size of the total display area of ​​the timeline and the screen display size, the task timeline stops scrolling upwards; When it is detected that the user scrolls the scroll axis, the task time axis stops scrolling upward within a preset waiting time.

10. The task timeline scrolling control device according to claim 9, characterized in that: The task timeline controls the synchronous upward scrolling of the timeline display data and the task block display data, including: The task timeline is based on the page scrolling speed corresponding to the task time point when it is at the position indicated by the page arrow, and through the animation function, controls the timeline display data and task block display data corresponding to each task time point in the timeline total display area to scroll upward synchronously in the target area.