Method and device for implementing rolling of scroll bars
A scrolling bar and scrolling direction technology, applied in the computer field, can solve the problems of fixed scrolling speed and rigid scrolling effect, so as to improve the visual effect and user experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0072] See figure 1 , which shows a flow chart of the method for implementing scroll bar scrolling provided by Embodiment 1 of the present invention. The method for implementing scroll bar scrolling may include:
[0073] Step 101, receiving a scrolling message, the scrolling message includes a target scrolling distance and a scrolling direction;
[0074] Step 102, generating scrolling data of a predetermined type according to the scrolling message, and the predetermined type includes at least two types of variable acceleration, uniform acceleration, constant speed, variable deceleration, uniform deceleration, and attenuation;
[0075] Step 103, sequentially adding the generated rolling data of the predetermined type into the rolling data queue;
[0076] Step 104, scrolling the scroll bar corresponding to the scroll message according to the scroll data in the scroll data queue in turn.
[0077] To sum up, the method for implementing scroll bar scrolling provided by Embodimen...
Embodiment 2
[0079] In order to further describe the method for realizing scroll bar scrolling provided by Embodiment 1, taking the predetermined types of scrolling data generated as examples of scrolling data at a constant speed, scrolling data at a constant deceleration, and attenuating scrolling data, please refer to figure 2 , which shows the flow chart of the method for realizing scroll bar scrolling provided by Embodiment 2 of the present invention, wherein the window displaying multimedia content may be an interactive window of instant messaging software, or other multimedia display with scroll bar window. In order to realize the visual scroll bar scrolling effect, the method adopted in Embodiment 2 of the present invention is: divide the total scrolling distance into multiple single scrolling distances, and generate a piece of scrolling data corresponding to each single scrolling distance; Set a fixed scrolling cycle, the scrolling device reads a piece of scrolling data at the beg...
Embodiment 3
[0107] see image 3 , an embodiment of the present invention provides a device structure diagram of a device for realizing scroll bar scrolling, and the device may include:
[0108] A message receiving module 301, configured to receive a scrolling message, which includes a target scrolling distance and a scrolling direction;
[0109] The rolling data generating module 302 is configured to generate scrolling data of a predetermined type according to the scrolling message received by the message receiving module 301, and the predetermined type includes at least two types of variable acceleration, uniform acceleration, constant speed, variable deceleration, uniform deceleration and attenuation ;
[0110] A queue adding module 303, configured to add the generated scrolling data of a predetermined type into the scrolling data queue in sequence;
[0111] The scrolling module 304 is configured to scroll the scroll bar corresponding to the scroll message sequentially according to th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 