Patent Description:
When a user uses a terminal device including a touchscreen, interface scrolling display may be triggered by performing a sliding operation on the touchscreen or in another manner. In the prior art, there is a fixed association relationship between a sliding speed of a user and a scrolling speed of an interface. Interface scrolling sensitivity is considered by users as one manifestation of terminal performance. Different groups of users have different requirements on an interface scrolling speed. However, in the prior art, an interface scrolling speed cannot be adjusted based on a user requirement.

Document <CIT> relates to a computer-implemented method which is performed at a multifunction device with a display and a touch-sensitive surface. The method includes detecting multiple input gestures by a user, beginning with an initial input gesture. For each input gesture after the initial input gesture, the method scrolls information on the display at a respective scrolling speed. The respective scrolling speed is determined based on the respective input gesture movement speed in the input gesture and a movement multiplier. The method determines whether the respective input gesture meets one or more swipe gesture criteria, and determines whether the respective input gesture meets one or more successive gesture criteria. When the input gesture meets the one or more swipe gesture criteria and the one or more successive gesture criteria, the method updates the movement multiplier in accordance with one or more movement multiplier adjustment criteria. Document <CIT> discloses a page switching method and apparatus. The method includes: receiving a sliding operation and obtaining a sliding direction and a sliding speed of the sliding operation; determining a position relation between a target page and a current page according to the sliding direction; obtaining a number of sliding pages according to the sliding speed; obtaining an index of the current page, and obtaining an index of the target page according to the position relation, the number of sliding pages and the index of the current page; switching to the target page according to the index of the target page. By using the sliding speed to determine the number of sliding pages, the sliding speed can be adjusted according to the distance between the target page and the current page. This helps to easily and quickly navigate to the target page, thereby improving operation efficiency.

Embodiments of this disclosure provide a method for adjusting an interface scrolling speed, to resolve a prior-art technical problem in which an interface scrolling speed cannot be adjusted based on a user requirement. The embodiments of this disclosure further provide a corresponding terminal with a touchscreen.

In the following, parts of the description and drawings referring to examples or implementations which are not covered by the claims are not presented as embodiments of the invention, but as examples useful for understanding the invention. A first aspect of this disclosure provides a method for adjusting an interface scrolling speed, and the method includes:
obtaining a user operation, determining an interface scrolling speed parameter based on the user operation, and adjusting a scrolling speed of an interface based on the interface scrolling speed parameter. It can be learned from the first aspect that, according to the method for adjusting an interface scrolling speed provided in the first aspect of this disclosure, the user operation can be obtained, the interface scrolling speed parameter is determined based on the user operation, and the scrolling speed of the interface is further adjusted based on the interface scrolling speed parameter, so that the interface scrolling speed parameter and the interface scrolling speed can be adjusted based on the user operation. Further, different users can determine appropriate interface scrolling speeds through different user operations, so that the user can adjust an interface scrolling speed as required.

With reference to the first aspect, the user operation is a sliding operation performed by a user on a touchscreen, and the determining an interface scrolling speed parameter based on the user operation includes:
obtaining a reference user sliding speed, a reference interface scrolling speed, and a sliding speed of the sliding operation, where the reference user sliding speed and the reference interface scrolling speed are preset; and determining the interface scrolling speed parameter based on the sliding speed and the reference user sliding speed. It can be learned from the first possible implementation of the first aspect that, the interface scrolling speed parameter can be dynamically determined based on the sliding speed of the user on the touchscreen during sliding of the user on the touchscreen.

With reference to the first aspect, in a second possible but non-claimed implementation, the user operation is selection from interface scrolling speed options, and the determining an interface scrolling speed parameter based on the user operation includes:
obtaining an interface scrolling speed option selected by a user, determining a reference user sliding speed and a reference interface scrolling speed that correspond to the interface scrolling speed option selected by the user, and using a ratio of the reference interface scrolling speed to the reference user sliding speed as the interface scrolling speed parameter. It can be learned from the second possible implementation of the first aspect that, the user can actively select a required interface scrolling speed by using the interface scrolling speed option, so that different requirements of the user are met.

With reference to the second possible implementation of the first aspect, in a third possible but non-claimed implementation, the adjusting a scrolling speed of an interface based on the interface scrolling speed parameter includes:
obtaining a sliding speed of a sliding operation performed by the user on a touchscreen, multiplying the sliding speed by the interface scrolling speed parameter to obtain an adjusted interface scrolling speed, and adjusting the scrolling speed of the interface based on the adjusted interface scrolling speed. It can be learned from the third possible implementation of the first aspect that, an interface scrolling speed can be adjusted based on a dynamically adjusted interface scrolling speed parameter, in other words, the interface scrolling speed can be dynamically adjusted based on the sliding operation of the user.

With reference to the first aspect, in a fourth possible but non-claimed implementation, the user operation is a sliding operation performed on a touchscreen after selection from interface scrolling speed options, and the determining an interface scrolling speed parameter based on the user operation includes:
obtaining an interface scrolling speed option selected by a user, determining a reference user sliding speed and a reference interface scrolling speed that correspond to the interface scrolling speed option selected by the user, obtaining a sliding speed of the sliding operation, and determining the interface scrolling speed parameter based on the sliding speed and the reference user sliding speed. It can be learned from the fourth possible implementation of the first aspect that, the user can perform selection based on a requirement on an interface scrolling speed, and then the interface scrolling speed parameter can be dynamically adjusted based on the sliding speed of the user, so that the interface scrolling speed can be adaptively adjusted better.

With reference to the first implementation of the first aspect or the fourth implementation of the first aspect, in a fifth implementation, the determining the interface scrolling speed parameter based on the sliding speed and the reference user sliding speed includes:
determining a ratio of the sliding speed to a reference sliding speed as a correction coefficient, calculating a central value of the correction coefficient, and determining the central value of the correction coefficient as the interface scrolling speed parameter. It can be learned from the fifth possible implementation of the first aspect that, the interface scrolling speed parameter can be determined through a plurality of sliding operations, thereby improving accuracy of determining the interface scrolling speed parameter.

With reference to the fifth implementation of the first aspect, in a sixth implementation, the adjusting a scrolling speed of an interface based on the interface scrolling speed parameter includes:
multiplying the interface scrolling speed parameter by the reference interface scrolling speed to obtain an adjusted interface scrolling speed, and adjusting the scrolling speed of the interface based on the adjusted interface scrolling speed. It can be learned from the sixth possible implementation of the first aspect that, the adjusted interface scrolling speed can be determined based on the scrolling speed parameter, so that user requirements for different interface scrolling speeds can be met.

With reference to the second possible but non-claimed implementation of the first aspect or the fourth possible implementation of the first aspect, in a seventh possible implementation, the interface scrolling speed options include an option of identifying an interface scrolling speed by using text and/or an option of identifying an interface scrolling speed by using an interface scrolling effect. It can be learned from the seventh possible implementation of the first aspect that, the interface scrolling speed options can be displayed in different forms, so that the user can more intuitively select a required interface scrolling speed.

A second aspect of this disclosure provides a terminal, and the terminal includes:.

With reference to the second aspect, the user operation is a sliding operation performed by a user on a touchscreen, and the determining unit is configured to:.

With reference to the second aspect, in a second possible but non-claimed implementation, the user operation is selection from interface scrolling speed options, and the determining unit is specifically configured to:.

With reference to the second possible implementation of the second aspect, in a third possible but non-claimed implementation, the adjustment unit is specifically configured to:.

With reference to the second aspect, in a fourth possible but non-claimed implementation, the user operation is a sliding operation performed on a touchscreen after selection from interface scrolling speed options, and the determining unit is specifically configured to:.

With reference to the first implementation of the second aspect or the fourth implementation of the second aspect, in a fifth implementation, the determining unit is further configured to:
determine a ratio of the sliding speed to a reference sliding speed as a correction coefficient, calculate a central value of the correction coefficient, and determine the central value of the correction coefficient as the interface scrolling speed parameter.

With reference to the fifth implementation of the second aspect, in a sixth possible implementation, the adjustment unit is configured to:.

For beneficial effects of all parts of the second aspect, refer to descriptions in the first aspect.

A third aspect of this disclosure provides a terminal, and the terminal includes:
a processor and a memory, where the memory stores a computer instruction, and when the computer instruction in the memory is executed, the processor is configured to perform the following steps:.

The user operation is a sliding operation performed by a user on a touchscreen, and the determining an interface scrolling speed parameter based on the user operation includes:.

With reference to the third aspect, in a second possible but non-claimed implementation, the user operation is selection from interface scrolling speed options, and the determining an interface scrolling speed parameter based on the user operation includes:.

With reference to the second possible implementation of the third aspect, in a third possible but non-claimed implementation, the adjusting a scrolling speed of an interface based on the interface scrolling speed parameter includes:.

With reference to the third aspect, in a fourth possible but non-claimed implementation, the user operation is a sliding operation performed on a touchscreen after selection from interface scrolling speed options, and the determining an interface scrolling speed parameter based on the user operation includes:.

With reference to the first implementation of the third aspect or the fourth implementation of the third aspect, in a fifth implementation, the determining the interface scrolling speed parameter based on the sliding speed and the reference user sliding speed includes:.

With reference to the fifth implementation of the third aspect, in a sixth implementation, the adjusting a scrolling speed of an interface based on the interface scrolling speed parameter includes:.

With reference to the second possible implementation of the third aspect or the fourth possible implementation of the third aspect, in a seventh possible but non-claimed implementation, the interface scrolling speed options include an option of identifying an interface scrolling speed by using text and/or an option of identifying an interface scrolling speed by using an interface scrolling effect.

For beneficial effects of all parts of the third aspect, refer to descriptions in the first aspect.

A fourth aspect of this disclosure provides a computer readable storage medium including an instruction, and when the instruction is run on a terminal, the terminal is enabled to perform the method for adjusting an interface scrolling speed in the first aspect or any optional implementation of the first aspect.

A fifth aspect of this disclosure provides a computer program product including an instruction, and when the computer program product is run on a terminal, the terminal is enabled to perform the method for adjusting an interface scrolling speed in the first aspect or any optional implementation of the first aspect.

In the embodiments of this disclosure, the user operation can be obtained, the interface scrolling speed parameter is determined based on the user operation, and the scrolling speed of the interface is further adjusted based on the interface scrolling speed parameter, so that the user can adjust an interface scrolling speed as required.

When a user uses a terminal device including a touchscreen, interface scrolling display may be triggered by performing a sliding operation on the touchscreen or in another manner. In the prior art, there is a fixed association relationship between a sliding speed of the user and a scrolling speed of an interface. To be specific, in a scrollable interface, when the user slides the touchscreen at a sliding speed, the interface scrolls at an interface scrolling speed, and there is a fixed proportional relationship between the interface scrolling speed and the sliding speed of the user. However, different groups of users have different requirements on an interface scrolling speed. For example, the elderly may feel that the interface scrolling speed is very fast, in other words, interface scrolling sensitivity is very high, but the young may feel that the interface scrolling speed is very slow, in other words, the interface scrolling sensitivity is low. Therefore, in the prior art, there is a technical problem that the interface scrolling speed cannot be adjusted based on a user requirement.

In view of the above, examples of this disclosure provide a method for adjusting an interface scrolling speed and a corresponding device, so that an interface scrolling speed parameter can be dynamically adjusted based on a user operation, and a scrolling speed of an interface can be adjusted based on the interface scrolling speed parameter, thereby adjusting an interface scrolling speed based on a user requirement.

<FIG> is a schematic diagram of an application scenario according to an example of this disclosure. For example, an interface displayed in a terminal is a list interface. The list interface is, for example, a contacts list or a conversation list. A contacts list is shown in the figure. A user may trigger scrolling of the list interface through up-and-down sliding on a touchscreen. A scrolling speed of the interface may be adjusted by using the method provided in the examples of this disclosure. <FIG> is a schematic diagram of another application scenario according to an example of this disclosure. For example, an interface displayed in a terminal is an interface in which a plurality of pages are switched. A user may trigger scrolling of a switching interface through left-and-right sliding on a touchscreen to display different pages. A scrolling speed of the interface may be adjusted by using the method provided in the examples of this disclosure. The foregoing descriptions are merely example descriptions of the application scenarios in the examples of this disclosure. During actual application, for any interface with a scrolling effect, an interface scrolling speed may be adjusted by using the method provided in the examples of this disclosure. A manifestation form of the interface is not limited in the examples of this disclosure.

The method for adjusting an interface scrolling speed provided in the examples of this disclosure may be applied to a terminal. The terminal may be specifically a smartphone, a tablet computer, an ebook reader, a moving picture experts group audio layer-<NUM> (moving picture experts group audio layer III, MP3) player, a moving picture experts group audio layer-<NUM> (moving picture experts group audio layer IV, MP4) player, a laptop computer, a desktop computer, or the like.

<FIG> is a flowchart of an example of a method for adjusting an interface scrolling speed according to implementations of this disclosure. This example may include the following steps.

In this example of this disclosure, the user operation may be a sliding operation performed on a touchscreen, or may be selection from interface scrolling speed options, or may be a combination of the foregoing two operations. In other words, the user operation may be alternatively a sliding operation performed on a touchscreen after selection from interface scrolling speed options. The user operation may be obtained by detecting a trigger action of a user on the touchscreen.

Step <NUM>: Determine an interface scrolling speed parameter based on the user operation.

After the user operation is obtained, the interface scrolling speed parameter may be dynamically determined based on the user operation. The interface scrolling speed parameter may be used to determine an interface scrolling speed. For example, when the user operation is the sliding operation performed on the touchscreen, the interface scrolling speed parameter may be determined based on a sliding speed of the sliding operation. When the user operation is the selection from the interface scrolling speed options, the interface scrolling speed parameter may be determined based on an interface scrolling speed option selected by the user. When the user operation is the sliding operation performed on the touchscreen after the selection from the interface scrolling speed options, the interface scrolling speed parameter may be determined based on an interface scrolling speed option selected by the user and a sliding speed of the sliding operation.

Step <NUM>: Adjust a scrolling speed of an interface based on the interface scrolling speed parameter.

In this example of this disclosure, the user operation can be obtained, the interface scrolling speed parameter is determined based on the user operation, and the scrolling speed of the interface is further adjusted based on the interface scrolling speed parameter, so that the interface scrolling speed parameter and the interface scrolling speed can be adjusted based on the user operation. Further, different users can determine appropriate interface scrolling speeds through different user operations, so that the user can adjust an interface scrolling speed as required.

The following separately describes a process of adjusting an interface scrolling speed through different user operations.

<FIG> is a flowchart of another example of a method for adjusting an interface scrolling speed according to implementations of this disclosure. For a first user operation, to be specific, when a user operation is a sliding operation performed on a touchscreen, an interface scrolling speed may be adjusted based on a sliding speed of a sliding operation performed by a user. This example may include the following steps.

Step <NUM>: Obtain a sliding operation performed by a user on a touchscreen.

When the user performs a sliding operation on an interface displayed on the touchscreen to trigger scrolling display of the interface, a terminal may obtain the sliding operation through detection. A sliding direction of the sliding operation is consistent with a scrolling direction of the interface. For example, if the scrolling direction of the interface is an up-and-down direction, the sliding operation of the user performed on the touchscreen should also be in the up-and-down direction. If the scrolling direction of the interface is a left-and-right direction, the sliding operation performed by the user on the touchscreen should also be in the left-and-right direction. It may be understood that, in this example, only a sliding operation performed in a direction consistent with the scrolling direction of the interface may be obtained.

Step <NUM>: Obtain a reference user sliding speed, a reference interface scrolling speed, and a sliding speed of the sliding operation, where the reference user sliding speed and the reference interface scrolling speed are preset.

When the sliding operation performed by the user on the touchscreen is being obtained, the sliding speed of the sliding operation may be obtained through calculation based on a sliding distance and a sliding time of the sliding operation. The sliding distance is a distance by which the sliding operation performed by the user acts on the touchscreen. The sliding time is a time during which the sliding operation performed by the user acts on the touchscreen. In addition, the preset reference user sliding speed and the preset reference interface scrolling speed may be obtained. The reference user sliding speed may be used as a reference speed for determining whether the sliding speed of the user is relatively fast or relatively slow. To be specific, a sliding habit of the user may be determined by comparing the sliding speed of the sliding operation with the reference user sliding speed, to further determine a sliding speed of the interface. For example, when the sliding speed of the sliding operation of the user is greater than the reference user sliding speed, it indicates that the sliding speed of the user is relatively fast. When the sliding speed of the sliding operation of the user is less than the reference user sliding speed, it indicates that the sliding speed of the user is relatively slow. The reference user sliding speed may be preset in an operating system and/or in an application program with an interface scrolling scenario. The reference interface scrolling speed is a reference speed for adjusting an interface scrolling speed. The reference interface scrolling speed is preset in an operating system and/or an application program with an interface scrolling scenario, so that the sliding speed of the interface is increased or decreased based on the reference interface scrolling speed.

Step <NUM>: Determine an interface scrolling speed parameter based on the sliding speed and the reference user sliding speed.

In this example of this disclosure, the interface scrolling speed parameter may be determined by comparing the sliding speed with the reference user sliding speed. How to adjust an interface scrolling speed may be further determined based on the interface scrolling speed parameter.

In some implementations of this example of this disclosure, a specific implementation of determining the interface scrolling speed parameter based on the sliding speed and the reference user sliding speed includes:
determining a ratio of the sliding speed to a reference sliding speed as a correction coefficient, calculating a central value of the correction coefficient, and determining the central value of the correction coefficient as the interface scrolling speed parameter.

The correction coefficient is the ratio of the sliding speed to the reference sliding speed. When the sliding speed is greater than the reference sliding speed, the correction coefficient is greater than <NUM>. When the sliding speed is less than the reference sliding speed, the correction coefficient is less than <NUM>. Because the sliding speed of the user may change in real time, the correction coefficient may vary with the change of the sliding speed, so that a group of correction coefficients is obtained. A central value of this group of correction coefficients is calculated based on correction coefficients obtained in real time. The central value is an average value, a median or a mode. Using the central value of the correction coefficient as the interface scrolling speed parameter can reflect an overall status of the sliding speed of the user, and avoid a case in which a user requirement cannot be truly reflected by adjusting an interface scrolling speed when the sliding speed of the user is very fast or very slow.

Step <NUM>: Multiply the interface scrolling speed parameter by the reference interface scrolling speed to obtain an adjusted interface scrolling speed.

The interface scrolling speed parameter is multiplied by the reference interface scrolling speed to obtain the adjusted interface scrolling speed. When the central value of the correction coefficient is greater than <NUM>, it indicates that the user is a user that operates a terminal relatively fast, and the sliding speed of the interface may be increased, in other words, the reference interface scrolling speed may be increased. When the central value of the correction coefficient is less than <NUM>, it indicates that the user is a user that operates a terminal relatively slowly, and the sliding speed of the interface may be decreased, in other words, the reference interface scrolling speed may be decreased.

Step <NUM>: Adjust a scrolling speed of an interface based on the adjusted interface scrolling speed.

In this example of this disclosure, the scrolling speed of the interface may be dynamically adjusted based on the sliding speed of the sliding operation of the user. A type of the user is intelligently identified based on the sliding speed of the user. For example, when the sliding speed of the user is relatively fast overall, the scrolling speed of the interface is increased. When the sliding speed of the user is relatively slow overall, the scrolling speed of the interface is decreased. In this way, a requirement of the user on an interface scrolling speed can be better met.

<FIG> is a flowchart of another example of a method for adjusting an interface scrolling speed according to implementations of this disclosure. For a first user operation, to be specific, when a user operation is a sliding operation performed on a touchscreen, an implementation process in an actual application scenario in which an interface scrolling speed is adjusted based on a sliding speed of a sliding operation performed by a user may include the following steps.

Step <NUM>: Determine a type of the user based on a sliding speed of the sliding operation.

In this example of this disclosure, a ratio of the sliding speed to a reference sliding speed is be calculated and determined as a correction coefficient, a central value of the correction coefficient is calculated, and the central value of the correction coefficient is determined as an interface scrolling speed parameter. In addition, the type of the user may be determined based on the interface scrolling speed parameter. When the interface scrolling speed parameter is greater than <NUM>, it indicates that the user is a user that operates a terminal relatively fast, and a sliding speed of an interface may be increased. When the interface scrolling speed parameter is less than <NUM>, it indicates that the user is a user that operates a terminal relatively slowly, and a sliding speed of an interface may be decreased. A process of calculating the interface scrolling speed parameter may continue as the sliding operation of the user continues.

Step <NUM>: When the user is a user that operates a mobile phone relatively fast, an interface scrolling speed needs to be increased.

Step <NUM>: When the user is a user that operates a mobile phone relatively slowly, an interface scrolling speed needs to be decreased.

Step <NUM>: Record an interface scrolling speed parameter, go back to step <NUM>, and proceed to step <NUM>.

The interface scrolling speed parameter may be recorded in a control for controlling interface scrolling, to adjust the interface scrolling speed during the interface scrolling.

Step <NUM>: Adjust a scrolling speed of an interface based on the interface scrolling speed parameter. The interface scrolling speed parameter may be multiplied by a reference interface scrolling speed to obtain an adjusted interface scrolling speed, and the scrolling speed of the interface may be adjusted based on the adjusted interface scrolling speed. In this way, requirements of different users on a list scrolling speed are met.

<FIG> is a flowchart of another example of a method for adjusting an interface scrolling speed according to implementations of this disclosure. For a second user operation, to be specific, when a user operation is selection from interface scrolling speed options, an interface scrolling speed may be adjusted based on selection by a user. This example may include the following steps.

Step <NUM>: Detect an operation of selection from interface scrolling speed options by a user.

In this example of this disclosure, first, a selection interface including a plurality of interface scrolling speed options is provided for the user. The interface scrolling speed option may be an option of identifying an interface scrolling speed by using text, or may be an option of identifying an interface scrolling speed by using an interface scrolling effect, or may be an option of identifying an interface scrolling speed by using text and an interface scrolling effect jointly. <FIG> is a schematic diagram of a selection interface including a plurality of interface scrolling speed options according to an example of this disclosure. For example, different interface scrolling speeds are identified by using text options: fast, normal, and slow, for a user to select. The interface scrolling speed options are simple to implement, and the user may directly perform selection as required. <FIG> is a schematic diagram of another selection interface including a plurality of interface scrolling speed options according to an example of this disclosure. For example, the interface scrolling speed options may be formed by using different scrolling speed effects. The interface scrolling speed options enable a user to more directly see the scrolling speed effects and to perform selection as required. <FIG> is a schematic diagram of another selection interface including a plurality of interface scrolling speed options according to an example of this disclosure. For example, the interface scrolling speed options may be formed by using different scrolling speed effects and corresponding text jointly, so that a user not only can see an interface scrolling speed effect, but also can learn whether a scrolling speed corresponding to the effect is fast, normal, or slow, thereby more accurately completing selection.

After displaying the selection interface including the plurality of interface scrolling speed options, a terminal may detect a trigger operation of the user on any interface scrolling speed option. The trigger operation may be a click operation on any interface scrolling speed option.

Step <NUM>: Obtain an interface scrolling speed option selected by the user.

Step <NUM>: Determine a reference user sliding speed and a reference interface scrolling speed that correspond to the interface scrolling speed option selected by the user.

After the user performs a trigger operation on an interface scrolling speed option, the interface scrolling speed option selected by the user may be determined based on a trigger position and a position of each interface scrolling speed option. Each interface scrolling speed option corresponds to a reference user sliding speed and a reference interface scrolling speed in pair. In this example, the reference user sliding speed and the reference interface scrolling speed may be jointly used to determine an interface scrolling speed parameter. The reference user sliding speed and the reference interface scrolling speed in pair that correspond to each interface scrolling speed option may be preset in an operating system and/or an application program with an interface scrolling scenario. Step <NUM>: Use a ratio of the reference interface scrolling speed to the reference user sliding speed as an interface scrolling speed parameter.

The ratio of the reference interface scrolling speed to the reference user sliding speed may be used as a scrolling speed parameter. A different interface scrolling speed parameter may be determined based on the option selected by the user. A value of the scrolling speed parameter may be used to determine whether to increase or decrease the reference interface scrolling speed. For example, an interface scrolling speed parameter obtained when the user selects a fast interface scrolling speed is greater than an interface scrolling speed parameter obtained when the user selects a slow interface scrolling speed.

Step <NUM>: Obtain a sliding speed of a sliding operation performed by the user on a touchscreen.

After the interface scrolling speed parameter is determined, when the user performs a sliding operation on an interface that needs to be scrolled, the interface scrolling speed may be adjusted based on the interface scrolling speed parameter. When the user performs a sliding operation on an interface displayed on the touchscreen to trigger scrolling display of the interface, the terminal may obtain the sliding operation through detection. A sliding direction of the sliding operation is consistent with a scrolling direction of the interface. When the sliding operation performed by the user on the touchscreen is being obtained, the sliding speed of the sliding operation may be obtained through calculation based on a sliding distance and a sliding time of the sliding operation.

Step <NUM>: Multiply the sliding speed by the interface scrolling speed parameter to obtain an adjusted interface scrolling speed.

The ratio of the reference interface scrolling speed to the reference user sliding speed may be the same as a ratio of the adjusted interface scrolling speed to the sliding speed, and the ratio of the reference interface scrolling speed to the reference user sliding speed is the interface scrolling speed parameter. Therefore, the adjusted interface scrolling speed may be obtained by multiplying the sliding speed by the interface scrolling speed parameter.

In this example of this disclosure, the user may select the interface scrolling speed option based on a requirement on the scrolling speed of the interface, and the interface scrolling speed is then determined based on the interface scrolling speed option selected by the user. For example, when the user chooses to scroll the interface at a relatively fast speed, the scrolling speed of the interface is increased. When the user chooses to scroll the interface at a relatively slow speed, the scrolling speed of the interface is decreased. In this way, the requirement of the user on the interface scrolling speed can be better met.

<FIG> is a flowchart of another example of a method for adjusting an interface scrolling speed according to implementations of this disclosure. For a third user operation, to be specific, when a user operation is a sliding operation performed on a touchscreen after selection from interface scrolling speed options, a reference user sliding speed and a reference interface scrolling speed may be determined based on selection by a user, and then a final interface scrolling speed is determined based on a sliding speed of a sliding operation of the user. This example may include the following steps.

After the user performs a trigger operation on an interface scrolling speed option, the interface scrolling speed option selected by the user may be determined based on a trigger position and a position of each interface scrolling speed option. Each interface scrolling speed option corresponds to a reference user sliding speed and a reference interface scrolling speed in pair. For example, if the user selects a fast interface scrolling speed, the reference user sliding speed and the reference interface scrolling speed may be relatively fast. If the user selects a slow interface scrolling speed, the reference user sliding speed and the reference interface scrolling speed may be relatively slow. In addition, a proportion of the reference user sliding speed to the reference interface scrolling speed when the user selects the fast interface scrolling speed is greater than a proportion of the reference user sliding speed to the reference interface scrolling speed when the user selects the slow interface scrolling speed.

The reference user sliding speed and the reference interface scrolling speed in pair that correspond to each interface scrolling speed option may be preset in an operating system and/or an application program with an interface scrolling scenario.

After the user performs the selection, the scrolling speed may be further adjusted based on a sliding operation of the user. In this case, the reference user sliding speed may be used as a reference speed for determining whether a sliding speed of the user is relatively fast or relatively slow, and the reference interface scrolling speed is a reference speed for adjusting an interface scrolling speed. For example, if the sliding speed of the user is faster than a selected reference user sliding speed, a scrolling speed of an interface is further increased. If the sliding speed of the user is slower than a selected reference user sliding speed, a scrolling speed of an interface is appropriately decreased, so that an actual scrolling speed of the interface can better meet a user requirement based on the selection by the user.

After the reference user sliding speed and the reference interface scrolling speed are determined, when the user performs a sliding operation on an interface that needs to be scrolled, the sliding operation may be obtained through detection. A sliding direction of the sliding operation is consistent with a scrolling direction of the interface. When the sliding operation performed by the user on the touchscreen is being obtained, the sliding speed of the sliding operation may be obtained through calculation based on a sliding distance and a sliding time of the sliding operation.

The correction coefficient is the ratio of the sliding speed to the reference sliding speed. When the sliding speed is greater than the reference sliding speed, the correction coefficient is greater than <NUM>. When the sliding speed is less than the reference sliding speed, the correction coefficient is less than <NUM>. Because the sliding speed of the user may change in real time, the correction coefficient may vary with the change of the sliding speed, so that a group of correction coefficients is obtained. A central value of this group of correction coefficients is calculated based on correction coefficients obtained in real time. The central value is an average value, a median or a mode. Using the central value of the correction coefficient as the interface scrolling speed parameter can reflect an overall status of the sliding speed of the user, and avoid a case in which a user requirement cannot be truly reflected by adjusting an interface scrolling speed when the sliding speed of the user is very fast or very slow. The interface scrolling speed parameter may be recorded in a control for controlling interface scrolling, to adjust the interface scrolling speed during the interface scrolling.

The interface scrolling speed parameter is multiplied by the reference interface scrolling speed to obtain the adjusted interface scrolling speed. When the central value of the correction coefficient is greater than <NUM>, it indicates that a sliding speed of the interface may be further increased, in other words, the reference interface scrolling speed may be increased. When the central value of the correction coefficient is less than <NUM>, it indicates that a sliding speed of the interface needs to be decreased, in other words, the reference interface scrolling speed may be decreased.

In this example of this disclosure, the user may select an interface scrolling speed option based on a requirement on the scrolling speed of the interface. After the user performs the selection, the scrolling speed may be further adjusted based on a sliding operation of the user, to better meet the requirement of the user on the interface scrolling speed.

The examples of the method for adjusting an interface scrolling speed provided in the implementations of this disclosure are described by using the foregoing examples. The examples of the method for adjusting an interface scrolling speed provided in the examples of this disclosure may be applied to operating system software, or may be applied to application program software. To be specific, a same interface scrolling speed may be set for an operating system and each application program, or different interface scrolling speeds may be set for different application programs and different scenarios.

In addition, when an interface scrolling speed is adjusted by using the method in the examples of this disclosure, a user may be further notified that the interface scrolling speed is being dynamically adjusted currently. In addition, the user may alternatively choose not to use the method in the examples of this disclosure, but use only a fixed program scrolling speed.

<FIG> shows an example of a terminal <NUM> according to implementations of this disclosure not falling within the scope of the claims. The terminal may include:.

Optionally, when the user operation may be a sliding operation performed by a user on a touchscreen, the determining unit <NUM> may be specifically configured to:.

The determining the interface scrolling speed parameter based on the sliding speed and the reference user sliding speed may include: determining a ratio of the sliding speed to a reference sliding speed as a correction coefficient, calculating a central value of the correction coefficient, and determining the central value of the correction coefficient as the interface scrolling speed parameter. In other words, the determining unit is further configured to: determine the ratio of the sliding speed to the reference sliding speed as the correction coefficient, calculate the central value of the correction coefficient, and determine the central value of the correction coefficient as the interface scrolling speed parameter.

Optionally, when the user operation is selection from interface scrolling speed options, the determining unit <NUM> may be specifically configured to:.

When the user operation is selection from interface scrolling speed options, the adjustment unit <NUM> is configured to:.

Optionally, the user operation is a sliding operation performed on a touchscreen after selection from interface scrolling speed options, and the determining unit <NUM> may be specifically configured to:.

The user operation is a sliding operation performed on a touchscreen after selection from interface scrolling speed options, and the adjustment unit <NUM> is configured to:.

Optionally, the interface scrolling speed options may include an option of identifying an interface scrolling speed by using text and/or an option of identifying an interface scrolling speed by using an interface scrolling effect.

In this example, for related functions implemented by the obtaining unit <NUM>, the determining unit <NUM>, and the adjustment unit <NUM>, refer to descriptions in the implementations of the method for adjusting an interface scrolling speed for understanding.

In this example of this disclosure, the user operation can be obtained, the interface scrolling speed parameter is determined based on the user operation, and the scrolling speed of the interface is further adjusted based on the interface scrolling speed parameter, so that the user can adjust an interface scrolling speed as required.

<FIG> is a block diagram of a partial structure of the terminal <NUM> according to the examples of the present disclosure. Referring to <FIG>, the terminal includes components such as a radio frequency (Radio Frequency, RF) circuit <NUM>, a memory <NUM>, an input unit <NUM>, a display unit <NUM>, a sensor <NUM>, an audio circuit <NUM>, a Wi-Fi module <NUM>, a processor <NUM>, and a power supply <NUM>. It may be understood by persons skilled in the art that, the terminal structure shown in <FIG> does not constitute any limitation on the terminal, and the terminal may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

The components of the terminal are specifically described below with reference to <FIG>.

The RF circuit <NUM> may be configured to transmit or receive data.

The memory <NUM> may be configured to store a software program and a module. The processor <NUM> runs the software program and the module stored in the memory <NUM>, to perform various function applications of the terminal and data processing. The memory <NUM> may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound play function and an image play function), and the like. The data storage area may store data (such as audio data or a phone book) created based on use of the terminal, and the like. In addition, the memory <NUM> may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or another volatile solid-state storage device.

The input unit <NUM> may be configured to: receive an operation instruction of a user, and generate a key signal input related to a user setting and function control of the terminal <NUM>. Specifically, the input unit <NUM> may include a touch panel <NUM> and another input device <NUM>. The touch panel <NUM>, also be referred to as a touchscreen, may collect a touch or non-touch operation or a touch operation of the user on or near the touch panel <NUM> (such as an operation of the user on or near the touch panel <NUM> by using any appropriate object or accessory such as a finger or a stylus), and drive a corresponding connection terminal based on a preset program. Optionally, the touch panel <NUM> may include two parts: a touch detection terminal and a touch controller. The touch detection terminal detects a touch position of the user, detects a signal generated by the touch operation, and transfers the signal to the touch controller. The touch controller receives touch information from the touch detection terminal, converts the touch information into touch point coordinates, and then sends the touch point coordinates to the processor <NUM>. In addition, the touch controller can receive and execute a command sent by the processor <NUM>. In addition, the touch panel <NUM> may be implemented by using a plurality of types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. Optionally, the input unit <NUM> may further include the another input device <NUM>. The another input device <NUM> may include but is not limited to one or more of a physical keyboard, a function button (such as a volume control button or a power button), a trackball, a mouse, and a joystick.

The display unit <NUM> may be configured to display an interface. The display unit <NUM> may include a display panel <NUM>. Optionally, the display panel <NUM> may be configured in a form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Further, the touch panel <NUM> may cover the display panel <NUM>. After detecting a touch operation on or near the touch panel <NUM>, the touch panel <NUM> transfers the touch operation to the processor <NUM> to determine a type of a touch event. Subsequently, the processor <NUM> provides a corresponding visual output on the display panel <NUM> based on the type of the touch event. Although in <FIG>, the touch panel <NUM> and the display panel <NUM> are used as two independent components to implement input and input functions of the terminal, in some examples, the touch panel <NUM> and the display panel <NUM> may be integrated to implement the input and output functions of the terminal.

The terminal <NUM> may further include at least one sensor <NUM>.

The audio circuit <NUM>, a speaker <NUM>, and a microphone <NUM> may provide an audio interface between the user and the terminal. The audio circuit <NUM> may convert received audio data into an electrical signal and transmit the electrical signal to the speaker <NUM>. The speaker <NUM> converts the electrical signal into a sound signal for output. In addition, the microphone <NUM> converts a collected sound signal into an electrical signal. The audio circuit <NUM> receives the electrical signal, converts the electrical signal into audio data, and then outputs the audio data to the processor <NUM>. The processor <NUM> processes the audio data and then sends the processed audio data to, for example, another terminal through the camera <NUM>, or outputs the processed audio data to the memory <NUM> for further processing.

The Wi-Fi module <NUM> may be configured to perform communication.

The processor <NUM> is a control center of the terminal, and connects all parts of the entire terminal by using various interfaces and lines. By running or executing a software program and/or a module stored in the memory <NUM> and invoking data stored in the memory <NUM>, the processor <NUM> performs various functions of the terminal and data processing, to perform overall monitoring on the terminal. Optionally, the processor <NUM> may include one or more processing units. Preferably, the processor <NUM> may integrate an application processor and a modem processor. The application processor mainly processes an operating system, a user interface, an application program, and the like. The modem processor mainly processes wireless communication. It may be understood that, the modem processor may not be integrated into the processor <NUM>. Optionally, the processor <NUM> may further include a function module such as a display control module.

The terminal <NUM> further includes a power supply <NUM> (such as a battery) for supplying power to each component. Preferably, the power supply may be logically connected to the processor <NUM> by using a power supply management system, thereby implementing functions such as charging, discharging, and power consumption management by using the power supply management system. Although not shown, the terminal <NUM> may further include a camera, a Bluetooth module, and the like.

In this example of the present disclosure, the processor <NUM> included in the terminal further has the following functions not falling within the scope of the claims:.

Optionally, the user operation is a sliding operation performed by the user on the touchscreen, and the determining an interface scrolling speed parameter based on the user operation may include:.

Optionally, the user operation is selection from interface scrolling speed options, and the determining an interface scrolling speed parameter based on the user operation includes:.

Optionally, the adjusting a scrolling speed of an interface based on the interface scrolling speed parameter includes:.

Optionally, the user operation is a sliding operation performed on the touchscreen after selection from interface scrolling speed options, and the determining an interface scrolling speed parameter based on the user operation includes:.

The determining the interface scrolling speed parameter based on the sliding speed and the reference user sliding speed includes:.

The adjusting a scrolling speed of an interface based on the interface scrolling speed parameter includes:.

Optionally, the interface scrolling speed options displayed by the display unit may include an option of identifying an interface scrolling speed by using text and/or an option of identifying an interface scrolling speed by using an interface scrolling effect.

With reference to <FIG>, the obtaining unit <NUM> in the terminal <NUM> may be implemented by the input unit <NUM> and/or the processor <NUM>; the determining unit <NUM> may be implemented by the processor <NUM>, or may be implemented by the input unit <NUM> and the processor <NUM>; and the adjustment unit <NUM> may be implemented by the processor <NUM>, or may be implemented by the processor <NUM> and the display unit <NUM>, or may be implemented by the input unit <NUM>, the display unit <NUM>, and the processor <NUM>.

In this example, for related descriptions of the terminal <NUM>, refer to descriptions in the implementations of the method for adjusting an interface scrolling speed for understanding.

All or some of the foregoing examples may be implemented by software, hardware, firmware, or any combination thereof. When software is used to implement the examples, all or some of the examples may be implemented in a form of a computer program product.

The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the examples of this disclosure are all or partially generated. The computer may be a general-purpose computer, a dedicated computer, a computer network, or another programmable apparatus. The computer instructions may be stored in a computer readable storage medium or may be transmitted from a computer readable storage medium to another computer readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired manner (for example, by using a coaxial cable, an optical fiber, or a digital subscriber line (DSL)) or in a wireless (for example, infrared, radio, and microwave) manner. The computer readable storage medium may be any usable medium accessible by the computer, or a data storage device, such as a server or a data center, integrating one or more usable media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, a DVD), a semiconductor medium (for example, a solid state disk (solid state disk, SSD)), or the like.

An example of this disclosure further provides a computer readable storage medium including an instruction. When the instruction is run on a terminal, the terminal may be enabled to perform the method for adjusting an interface scrolling speed provided in the examples of this disclosure.

An example of this disclosure further provides a computer program product including an instruction. When the computer program product is run on a terminal, the terminal may be enabled to perform the method for adjusting an interface scrolling speed provided in the examples of this disclosure.

It may be clearly understood by persons skilled in the art that, for the purpose of convenient and brief description, for a detailed working process of the foregoing system, apparatus, and unit, refer to a corresponding process in the foregoing method examples.

In the several examples provided in this disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus implementation is merely an example. For example, the unit division is merely logical function division and may be other division during actual implementation. The indirect couplings or communication connections between the apparatuses or units may be implemented in electrical, mechanical, or other forms.

Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of the implementations.

In addition, functional units in the examples of this disclosure may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit.

Claim 1:
A method for adjusting an interface scrolling speed, wherein the method comprises:
obtaining a user operation;
determining an interface scrolling speed parameter based on the user operation; and
adjusting a scrolling speed of an interface based on the interface scrolling speed parameter,
wherein the user operation is a sliding operation performed by a user on a touchscreen (<NUM>), and the determining an interface scrolling speed parameter based on the user operation comprises:
obtaining a reference user sliding speed, a reference interface scrolling speed, and a sliding speed of the sliding operation, wherein the reference user sliding speed and the reference interface scrolling speed are preset, wherein the reference interface scrolling speed is a reference speed for adjusting an interface scrolling speed, wherein the reference interface scrolling speed is preset in an operating system and/or an application program with an interface scrolling scenario so that a sliding speed of an interface is increased or decreased based on the reference interface scrolling speed; and
determining the interface scrolling speed parameter based on the sliding speed and the reference user sliding speed,
wherein the determining the interface scrolling speed parameter based on the sliding speed and the reference user sliding speed comprises:
determining a ratio of the sliding speed to the reference user sliding speed as a correction coefficient,
wherein a group of the correction coefficients is obtained in real time;
calculating a central value as an average value, a median or a mode of the group of the correction coefficients; and
determining the central value of the group of the correction coefficients as the interface scrolling speed parameter,
wherein the adjusting a scrolling speed of an interface based on the interface scrolling speed parameter comprises:
multiplying the interface scrolling speed parameter by the reference interface scrolling speed to obtain an adjusted interface scrolling speed; and
adjusting the scrolling speed of the interface based on the adjusted interface scrolling speed.