Sliding control method and device, readable medium, electronic equipment and program product

By dynamically adjusting the sliding speed threshold in the information flow page, the problem of fixed sliding speed threshold in the prior art resulting in limited user interaction behavior is solved, and the intelligent response of the information flow page to user sliding operations and the improvement of the user experience of the information flow page is achieved.

CN120066364APending Publication Date: 2025-05-30BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510186730.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-19
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

In the prior art, the sliding operation needs to reach a preset sliding speed threshold to trigger content switching, resulting in limited user interaction behavior and affecting user experience.

Method used

By responding to the sliding operation in the information flow page, the sliding speed is determined, and the sliding speed threshold is dynamically adjusted according to the currently displayed content and the content type to be displayed, so as to control the sliding of the information flow page.

Benefits of technology

It realizes the intelligent response of the information flow page to the user's sliding operation, improves the user's browsing experience, enhances the flexibility and adaptability of the information flow page, and can better meet the browsing needs of different users for different types of content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066364A_ABST
    Figure CN120066364A_ABST
Patent Text Reader

Abstract

The invention discloses a sliding control method and device, a readable medium, electronic equipment and a program product, and the method comprises the steps: responding to a sliding operation in an information flow page, and determining a sliding speed corresponding to the sliding operation; determining a sliding speed threshold value corresponding to the sliding operation according to the content types of the first content and the second content in the information flow page; controlling the information flow page to slide along with the sliding operation according to the sliding speed and a sliding speed threshold value; when the first content is the preset type content, a sliding speed threshold value corresponding to the sliding operation is greater than a preset threshold value, and when the second content is the preset type content, the sliding speed threshold value corresponding to the sliding operation is smaller than the preset threshold value. Therefore, when the first content is the preset type of content, the sliding speed threshold value can be increased, so that the first content is prevented from being quickly scratched due to misoperation; when the second content is the preset type content, the sliding-in speed threshold value can be reduced, so that the second content can be slid in more easily and quickly, and the browsing experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technologies, and in particular, to a sliding control method, apparatus, readable medium, electronic device, and program product. Background Art

[0002] In an application, the applicability of interaction parameters between a user and the application has a great impact on the user's interaction behavior. For example, in an information flow application, the user can browse different multimedia contents by sliding an information flow page. However, in related technologies, a sliding operation usually needs to reach a preset sliding speed threshold to trigger content switching. The setting of such a fixed sliding speed threshold limits the user's interaction behavior and thus affects the user experience. Summary of the Invention

[0003] This Summary of the Invention section is provided to introduce concepts in a brief form, which will be described in detail in the following Detailed Implementation section. This Summary of the Invention section is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to be used to limit the scope of the claimed technical solution.

[0004] In a first aspect, the present disclosure provides a sliding control method, and the sliding control method includes: responding to a sliding operation in an information flow page, and determining a sliding speed corresponding to the sliding operation; determining a sliding speed threshold corresponding to the sliding operation according to content types of first content and second content in the information flow page, where the first content is the content displayed on the information flow page when the sliding operation is triggered, the second content is the content to be displayed on the information flow page after the sliding operation, when the first content is preset type content, the sliding speed threshold corresponding to the sliding operation is greater than a preset threshold, when the second content is the preset type content, the sliding speed threshold corresponding to the sliding operation is less than the preset threshold, and the first content and the second content are not both the preset type content at the same time; controlling the information flow page to slide following the sliding operation according to the sliding speed and the sliding speed threshold.

[0005] In a second aspect, the present disclosure provides a sliding control apparatus, and the sliding control apparatus includes: a first determination module, configured to respond to a sliding operation in an information flow page, and determine a sliding speed corresponding to the sliding operation; A second determination module, configured to determine a sliding speed threshold corresponding to the sliding operation according to the content types of the first content and the second content in the information flow page, where the first content is the content displayed on the information flow page when the sliding operation is triggered, the second content is the content to be displayed on the information flow page after the sliding operation, when the first content is a preset type of content, the sliding speed threshold corresponding to the sliding operation is greater than a preset threshold, when the second content is the preset type of content, the sliding speed threshold corresponding to the sliding operation is less than the preset threshold, and the first content and the second content are not both the preset type of content; A control module, configured to control the information flow page to slide following the sliding operation according to the sliding speed and the sliding speed threshold.

[0006] In a third aspect, the present disclosure provides a computer-readable medium, on which a computer program is stored, and when the computer program is executed by a processing device, the steps of the method described in the first aspect are implemented.

[0007] In a fourth aspect, the present disclosure provides an electronic device, including: A storage device, on which a computer program is stored; A processing device, configured to execute the computer program in the storage device to implement the steps of the method described in the first aspect.

[0008] In a fifth aspect, the present disclosure provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0009] Through the above technical solution, when a sliding operation is performed on the information flow page, the sliding speed corresponding to the sliding operation can be determined, and the sliding speed threshold corresponding to the sliding operation can be determined according to the content type of the currently displayed content and the content type of the content to be displayed after the sliding operation is performed. Furthermore, the information flow page can be controlled to slide following the sliding operation according to the sliding speed and the sliding speed threshold. Thus, according to the currently displayed content and the content to be displayed in the information flow page, the sliding speed threshold corresponding to the sliding operation can be dynamically adjusted, so that the information flow page can respond to the user's sliding operation more intelligently, not only improving the user's browsing experience, but also enhancing the flexibility and adaptability of the information flow page, enabling it to better meet the browsing needs of different users for different types of content. In addition, since the sliding speed threshold corresponding to the sliding operation is greater than the preset threshold when the first content is the preset type of content, and the sliding speed threshold corresponding to the sliding operation is less than the preset threshold when the second content is the preset type of content, through the above method, when the first content is the preset type of content, the threshold for swiping away can be increased, thereby preventing the user from quickly swiping past the first content due to misoperation, and further improving the user's browsing experience; when the second content is the preset type of content, the threshold for swiping in can be reduced, so that the user can more easily and quickly swipe into the second content, further improving the user's browsing experience.

[0010] Other features and advantages of the present disclosure will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In combination with the accompanying drawings and with reference to the following specific implementation, the above and other features, advantages and aspects of the various embodiments of the present disclosure will become more apparent. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic, and the original components and elements are not necessarily drawn to scale. In the drawings: Figure 1 is a flowchart of a sliding control method shown according to an exemplary embodiment of the present disclosure; Figure 2 is a schematic diagram of a scroll view height, a content offset, and a page transition offset shown according to an exemplary embodiment of the present disclosure; Figure 3 is a flowchart of another sliding control method shown according to an exemplary embodiment of the present disclosure; Figure 4 is a flowchart of another sliding control method shown according to an exemplary embodiment of the present disclosure; Figure 5 is a structural block diagram of a sliding control device shown according to an exemplary embodiment of the present disclosure; Figure 6It is a schematic structural diagram of an electronic device shown according to an exemplary embodiment of the present disclosure. Detailed implementation manners

[0012] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not used to limit the protection scope of the present disclosure.

[0013] It should be understood that the various steps recited in the method embodiments of the present disclosure can be executed in a different order and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this regard.

[0014] The term "including" and its variants used herein are open-ended, that is, "including but not limited to". The term "based on" is "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0015] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of the functions executed by these devices, modules or units or their interdependent relationships.

[0016] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise clearly specified in the context, it should be understood as "one or more".

[0017] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.

[0018] It can be understood that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, usage scopes, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0019] For example, when responding to an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested by the user will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, an application program, a server, or a storage medium that performs the operations of the present disclosure's technical solution based on the prompt message.

[0020] As an optional but non-limiting implementation manner, the manner of sending a prompt message to the user in response to receiving an active request from the user can be, for example, in the form of a pop-up window. The prompt message can be presented in text in the pop-up window. In addition, the pop-up window can also carry selection controls for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0021] It can be understood that the above notification and user authorization process is only illustrative and does not limit the implementation manner of the present disclosure. Other manners that comply with relevant laws and regulations can also be applied to the implementation manner of the present disclosure.

[0022] At the same time, it can be understood that the data involved in the present technical solution (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of corresponding laws, regulations, and related regulations.

[0023] As described in the background art, in the related art, a sliding operation usually needs to reach a preset sliding speed threshold to trigger content switching. The setting of this fixed sliding speed threshold limits the user's interaction behavior and thus affects the user experience.

[0024] Exemplarily, in a short video application, the sliding speed threshold can be set to 0.3. Thus, when switching and browsing different video contents by sliding the video playback page, it is necessary to make the sliding speed greater than or equal to 0.3 to perform video content switching. However, since the video contents in the short video application include various content types, under different content types, the user's requirements for the sliding speed may also be different. For example, when the user wants to carefully view the details of a certain video, the user may hope to be able to switch to the next video at a slower sliding speed to better control the browsing rhythm; while when the user wants to quickly skip the content that is not of interest, the user may hope to be able to switch to the next video at a faster sliding speed. And the setting of this fixed sliding speed threshold cannot be flexibly adjusted according to the displayed content, thus limiting the user's interaction experience in different situations and further affecting the user's browsing experience.

[0025] In view of this, the present disclosure provides a sliding control method, device, readable medium, electronic device, and program product to solve the above technical problems.

[0026] The following further explains the embodiments of the present disclosure with reference to the accompanying drawings.

[0027] Figure 1 It is a flowchart of a sliding control method shown according to an exemplary embodiment of the present disclosure. Referring to Figure 1 this, the method may include the following steps: S101: In response to a sliding operation in the information flow page, determine the sliding speed corresponding to the sliding operation.

[0028] In this embodiment, the information flow page may be a video playback page in a short video application, or an information sharing page in a social application. Of course, it may also be others. The embodiments of the present disclosure do not impose any restrictions on this.

[0029] In this embodiment, the sliding speed corresponding to the sliding operation can be determined by monitoring the start position, end position, and corresponding timestamps of the touch event. Exemplarily, the start coordinates and start timestamp of the sliding can be recorded by listening to the touch start (touchstart) event, and the end coordinates and end timestamp of the sliding can be recorded by listening to the touch end (touchend) event; then, the Pythagorean theorem can be used to calculate the total distance of the sliding based on the start coordinates and end coordinates, and the total time of the sliding can be calculated by the start timestamp and end timestamp; finally, the total distance of the sliding is divided by the total time of the sliding to obtain the sliding speed.

[0030] S102: According to the content types of the first content and the second content in the information flow page, determine the sliding speed threshold corresponding to the sliding operation, where the first content is the content displayed on the information flow page when the sliding operation is triggered, the second content is the content to be displayed on the information flow page after the sliding operation, when the first content is a preset type of content, the sliding speed threshold corresponding to the sliding operation is greater than the preset threshold, when the second content is a preset type of content, the sliding speed threshold corresponding to the sliding operation is less than the preset threshold, and the first content and the second content are not both preset type of content at the same time.

[0031] In this embodiment, the content in the information flow page may be video content, text content, audio content, etc., which is specifically determined according to the actual situation. The embodiments of the present disclosure do not impose any restrictions on this.

[0032] In this embodiment, the preset type of content and the preset threshold can be determined according to the actual situation, and the embodiments of the present disclosure do not impose any restrictions thereon. By way of example, in the e-commerce field, the preset type of content can be advertising content and / or live broadcast content, and the preset threshold can be 0.3. Thus, when the content displayed on the information flow page is advertising content / or live broadcast content, the sliding speed threshold can be set to 0.4, and when the content to be displayed on the information flow page is advertising content / or live broadcast content, the sliding speed threshold can be set to 0.2. Thus, by changing the sliding speed threshold corresponding to the sliding operation, the probability of a user entering the conversion page of the advertising content or entering the live broadcast room can be increased, thereby improving the conversion data of the advertising content or the live broadcast room.

[0033] In this embodiment, the content type can be determined according to the identifier associated with the content for characterizing the content type, or can be determined by analyzing the features of the content through a machine learning model. Of course, it can also be determined by other means, and the embodiments of the present disclosure do not impose any restrictions thereon.

[0034] In this embodiment, the content types of the first content and the second content can be determined when a sliding operation is detected, or can be determined when the information flow application receives the first content and the second content. The embodiments of the present disclosure do not impose any restrictions thereon.

[0035] In a possible manner, the content types of the first content and the second content on the information flow page can be determined in the following way: Determine a first identifier associated with the first content for characterizing the content type and a second identifier associated with the second content for characterizing the content type; when the first identifier is a preset identifier, determine that the first content is preset type content; when the second identifier is a preset identifier, determine that the second content is preset type content.

[0036] Exemplarily, continuing to refer to the above example, when the preset type of content is advertisement content and live broadcast content, and the information flow application is a short video application, after the short video application is launched, a first request for requesting a recommended page data interface can be generated and sent to the server corresponding to the short video application. After receiving the first request, the server can obtain multiple recommended video contents based on the historical browsing data in the short video application, and return the multiple recommended video contents to the short video application through the recommended page data interface. After the short video application receives the multiple recommended video contents, for each recommended video content, an identifier associated with the recommended video content can be obtained, and then the content type of the recommended video content can be determined based on the identifier. For example, if the identifier associated with a recommended video content is is_ads = 1, the content type of the recommended video content can be determined as advertisement content; if the identifier associated with the recommended video content is aweme_type = 101, the content type of the recommended video content can be determined as live broadcast content; if the identifier associated with the recommended video content is neither is_ads = 1 nor aweme_type = 101, the content type of the recommended video content can be determined as non-preset type content, for example, regular short video content. After obtaining the content type of each recommended video content, the playing order of the multiple recommended video contents can be sorted, and the content types can be correspondingly sorted according to the playing order of the multiple recommended video contents, so that the content types of the first content and the second content can be determined according to the playing order and the content type order.

[0037] In this embodiment, the sliding speed threshold corresponding to the sliding operation can be determined as follows: when the sliding operation is detected, the corresponding sliding speed threshold can be obtained from the server according to the content types of the first content and the second content. It can also be that when the application for displaying the information flow page is launched, the sliding speed thresholds corresponding to different content types are obtained, so as to obtain the corresponding relationship between the content type and the sliding speed threshold. Furthermore, when the sliding operation is detected, the corresponding relationship and the content types of the first content and the second content can be used. That is to say, in a possible way, the information flow page is a page in the application, and the sliding control method may further include: In response to the launch of the application, obtain the sliding speed thresholds corresponding to different content types, and obtain the corresponding relationship between the content type and the sliding speed threshold, where the sliding speed threshold corresponding to the preset type of content in the corresponding relationship is greater than or less than the preset threshold; Correspondingly, determining the sliding speed threshold corresponding to the sliding operation according to the content types of the first content and the second content in the information flow page may include: Determine the sliding speed threshold corresponding to the sliding operation according to the corresponding relationship and the content types of the first content and the second content in the information flow page.

[0038] For example, continuing to refer to the above example, when the information flow application is a short video application, after the short video application is launched, a second request can be generated to obtain the sliding speed thresholds corresponding to the live content, advertisement content, and regular short video content, and the second request can be sent to the server corresponding to the short video application. After receiving the second request, the server can return to the short video application the sliding speed thresholds corresponding to the live content, advertisement content, and regular short video content, so that the corresponding relationship shown in Table 1 can be obtained: Table 1 Corresponding relationship between different content types and sliding speed thresholds

[0039] After obtaining the corresponding relationship between different content types and sliding speed thresholds, the sliding speed threshold corresponding to the sliding operation can be determined according to the corresponding relationship and the content types of the first content and the second content in the information flow page.

[0040] For example, when the first content is live content, 0.4 can be used as the sliding speed threshold; when the second content is live content, 0.2 can be used as the sliding speed threshold; when both the first content and the second content are regular short video content, 0.3 can be used as the sliding speed threshold.

[0041] After determining the sliding speed threshold corresponding to the sliding operation, the API interface in the terminal device can be called to change the built-in sliding speed threshold in the terminal device through the API interface, so that the information flow page can be controlled to slide following the sliding operation according to the sliding speed and the sliding speed threshold.

[0042] S103: Control the information flow page to slide following the sliding operation according to the sliding speed and the sliding speed threshold.

[0043] For example, the sliding speed and the sliding speed threshold can be compared, and when the sliding speed is greater than or equal to the sliding speed threshold, the information flow page can be controlled to slide following the sliding operation, and after the sliding ends, the first content in the information flow page can be switched to the second content; and when the sliding speed is less than the sliding speed threshold, the information flow page can be controlled to slide following the sliding operation, and after the sliding ends, the first content in the information flow page remains unchanged.

[0044] Through the above technical solution, when performing a sliding operation on the information flow page, the sliding speed corresponding to the sliding operation can be determined, and the sliding speed threshold corresponding to the sliding operation can be determined according to the content type of the currently displayed content and the content type of the content to be displayed after the sliding operation. Furthermore, the information flow page can be controlled to slide following the sliding operation according to the sliding speed and the sliding speed threshold. Thus, the sliding speed threshold corresponding to the sliding operation can be dynamically adjusted according to the currently displayed content and the content to be displayed in the information flow page, so that the information flow page can respond to the user's sliding operation more intelligently, not only improving the user's browsing experience, but also enhancing the flexibility and adaptability of the information flow page, enabling it to better meet the browsing needs of different users for different types of content. Additionally, since the sliding speed threshold corresponding to the sliding operation is greater than the preset threshold when the first content is the preset type of content, and the sliding speed threshold corresponding to the sliding operation is less than the preset threshold when the second content is the preset type of content, through the above method, when the first content is the preset type of content, the speed threshold for swiping away can be increased, thereby preventing the user from quickly swiping past the first content due to accidental operation and further improving the user's browsing experience; when the second content is the preset type of content, the speed threshold for swiping in can be decreased, enabling the user to more easily and quickly swipe into the second content and further enhancing the user's browsing experience.

[0045] To facilitate understanding of the content display method provided by the present disclosure, the possible implementation manners in the present disclosure are described below.

[0046] In a possible manner, the sliding speed threshold includes a sliding-in speed threshold and a sliding-out speed threshold, and the sliding-in speed threshold corresponding to the preset type of content is less than the preset threshold, and the sliding-out speed threshold corresponding to the preset type of content is greater than the preset threshold. Determining the sliding speed threshold corresponding to the sliding operation according to the corresponding relationship and the content types of the first content and the second content in the information flow page may include: When the first content is the preset type of content, obtaining the sliding-out speed threshold corresponding to the preset type of content from the corresponding relationship as the sliding speed threshold corresponding to the sliding operation; when the second content is the preset type of content, obtaining the sliding-in speed threshold corresponding to the preset type of content from the corresponding relationship as the sliding speed threshold corresponding to the sliding operation.

[0047] Exemplarily, continuing to refer to the above example, 0.2 can be the sliding-in speed threshold for the live content and the advertisement content, and 0.4 can be the sliding-out speed threshold for the live content and the advertisement content. Thus, when the first content is the live content or the advertisement content, 0.4 can be used as the sliding speed threshold corresponding to the sliding operation. When the second content is the live content or the advertisement content, 0.2 can be used as the sliding speed threshold corresponding to the sliding operation. In this way, when the first content is the live content or the advertisement content, the speed threshold for swiping away the live content or the advertisement content can be increased, thereby avoiding the user quickly swiping past the live content or the advertisement content due to misoperation and enhancing the user's browsing experience. On the other hand, it can also increase the probability of the user entering the conversion page of the advertisement content or entering the live broadcast room, thereby enhancing the conversion data of the advertisement content or the live broadcast room. Additionally, when the second content is the live content or the advertisement content, the speed threshold for swiping into the live content or the advertisement content can be decreased, thereby enabling the user to more easily and quickly swipe into the live content or the advertisement content and enhancing the user's browsing experience. On the other hand, it can further increase the probability of the user entering the conversion page of the advertisement content or entering the live broadcast room and further enhance the conversion data of the advertisement content or the live broadcast room.

[0048] It should be understood that in the information flow page, when the sliding speed reaches or exceeds the sliding speed threshold, the display content in the information flow page can be switched. When the sliding speed does not reach the sliding speed threshold, the display content in the information flow page may not be switched, or it can be determined whether to perform content switching according to the content offset in the sliding direction of the information flow page following the sliding operation and the height of the scroll view corresponding to the information flow page. Thus, in possible ways, the sliding control method may further include: Determining the height of the scroll view corresponding to the information flow page and the content offset in the sliding direction of the information flow page following the sliding operation; Correspondingly, controlling the information flow page to slide following the sliding operation according to the sliding speed and the sliding speed threshold may include: Determining the page switching offset in the sliding direction corresponding to the sliding operation of the information flow page according to the sliding speed, the sliding speed threshold, the content offset, and the height of the scroll view; and controlling the information flow page to slide following the sliding operation according to the page switching offset.

[0049] It should be understood that the height of the scroll view generally refers to the visible area height of the scroll container, that is, the page height that the user can see on the terminal device. Exemplarily, if the display screen height of the terminal device is 20 pixels, then the height of the scroll view is generally also 20 pixels. At the same time, in order to enable the complete display content to be seen in the visible area height, the visible area height is generally the same as the height of the display page. Exemplarily, such as Figure 2As shown, a, b, and c represent three display pages, each with a height of 20 pixels. Then the height of the scroll view is also 20 pixels. Thus, the user can see the complete content of each display page on the terminal device.

[0050] The content offset refers to the offset distance of the content of the scroll container in the scrolling direction, that is, the sliding distance of the user on the terminal device. For example, during a sliding operation, if the user slides 5 pixels on the terminal device, moving the display page b from the position shown in Figure 2 (a) to the position shown in Figure 2 (b), then the content offset is 5 pixels.

[0051] The page switching offset generally refers to the displacement when switching from the current display page to the next display page. At the same time, to ensure that a complete page is displayed after each switch, the page switching offset is generally equal to the height of the scroll view. For example, as shown in Figure 2 , during a sliding operation, if the user switches from display page b to display page c, moving the display page b from the position shown in Figure 2 (a) to the position shown in Figure 2 (c), the page switching offset is 20 pixels.

[0052] In a possible way, according to the sliding speed, the sliding speed threshold, the content offset, and the height of the scroll view, determining the page switching offset of the information flow page along the sliding direction corresponding to the sliding operation may include: Determining the absolute value of the sliding speed and the absolute value of the sliding speed threshold; when the absolute value of the sliding speed is greater than or equal to the absolute value of the sliding speed threshold, determining the page switching offset of the information flow page along the sliding direction corresponding to the sliding operation as the height of the scroll view; when the absolute value of the sliding speed is less than the absolute value of the sliding speed threshold, determining the page switching offset of the information flow page along the sliding direction corresponding to the sliding operation according to the content offset and the height of the scroll view.

[0053] It should be understood that in an information flow application, the sliding direction generally includes a first direction and a second direction, and the first direction and the second direction are opposite. Correspondingly, the sliding speed and the sliding speed threshold corresponding to the first direction are also opposite to the sliding speed and the sliding speed threshold corresponding to the second direction. For example, if the first direction is upward sliding and the second direction is downward sliding, then the sliding speed and the sliding speed threshold corresponding to the first direction can be positive values, and the sliding speed and the sliding speed threshold corresponding to the second direction can be negative values. Therefore, the faster the user slides upward, the greater the corresponding sliding speed; the faster the user slides downward, the smaller the corresponding sliding speed. Thus, by determining the absolute value of the sliding speed and the absolute value of the sliding speed threshold, it is possible to accurately determine whether the sliding speed corresponding to the sliding operation reaches or exceeds the sliding speed threshold.

[0054] In addition, according to the foregoing description, when the sliding speed reaches or exceeds the sliding speed threshold, generally, the display content in the information flow page can be switched, and the page switching offset is generally the height of the scroll view. Thus, when the absolute value of the sliding speed is greater than or equal to the absolute value of the sliding speed threshold, the height of the scroll view can be used as the page switching offset of the information flow page along the sliding direction corresponding to the sliding operation. When the absolute value of the sliding speed is less than the absolute value of the sliding speed threshold, it indicates that the sliding speed does not reach the sliding speed threshold. Thus, it is necessary to determine the page switching offset of the information flow page along the sliding direction corresponding to the sliding operation according to the content offset and the height of the scroll view.

[0055] In a possible way, determining that the page switching offset of the information flow page along the sliding direction corresponding to the sliding operation is the height of the scroll view may include: When the sliding direction corresponding to the sliding operation is the first direction and the sliding speed is greater than or equal to the sliding speed threshold, determine the first ratio of the content offset to the height of the scroll view, round up the first ratio to obtain a first control value, and determine the product of the first control value and the height of the scroll view as the page switching offset of the information flow page along the sliding direction corresponding to the sliding operation; when the sliding direction corresponding to the sliding operation is the second direction and the sliding speed is less than or equal to the sliding speed threshold, determine the second ratio of the content offset to the height of the scroll view, round down the second ratio to obtain a second control value, and determine the product of the second control value and the height of the scroll view as the page switching offset of the information flow page along the sliding direction corresponding to the sliding operation, where the first direction and the second direction are opposite.

[0056] That is to say, when the sliding direction corresponding to the sliding operation is the first direction and the sliding speed is greater than or equal to the sliding speed threshold, the page switching offset can be determined by the following formula:

[0057] Among them, represents the page switching offset, represents the upward rounding function, represents the content offset, represents the height of the scroll view.

[0058] When the sliding direction corresponding to the sliding operation is the second direction and the sliding speed is less than or equal to the sliding speed threshold, the page switching offset can be determined by the following formula:

[0059] Among them, represents the downward rounding function.

[0060] It should be understood that since the first direction and the second direction are opposite, the direction of the page switching offset corresponding to the first direction is also opposite to the direction of the page switching offset corresponding to the second direction. For example, if the first direction is upward sliding and the second direction is downward sliding, then the page switching offset corresponding to the first direction is positive, and the page switching offset corresponding to the second direction can be negative. Thus, when the sliding direction corresponding to the sliding operation is upward sliding, the information flow page can be slid upward by a scroll view height according to the page switching offset, and when the sliding direction corresponding to the sliding operation is downward sliding, the information flow page can be slid downward by a scroll view height according to the page switching offset.

[0061] In addition, it should be understood that the content offset is generally less than or equal to the height of the scroll view. Thus, when the sliding direction corresponding to the sliding operation is upward sliding, by determining the first ratio of the content offset to the height of the scroll view and rounding up the first ratio, the first control value can be made 1, and the product of the first control value and the height of the scroll view can be made the height of the scroll view, so that the information flow page can be slid upward by a scroll view height according to the height of the scroll view, thereby switching to the next content. When the sliding direction corresponding to the sliding operation is downward sliding, by determining the first ratio of the content offset to the height of the scroll view and rounding down the first ratio, the second control value can be made -1, and the product of the second control value and the height of the scroll view can be made the negative height of the scroll view, so that the information flow page can be slid downward by a scroll view height according to the negative height of the scroll view, thereby switching to the next content.

[0062] In a possible way, determining the page switching offset of the information flow page along the sliding direction corresponding to the sliding operation according to the content offset and the height of the scroll view may include: When the sliding direction corresponding to the sliding operation is the first direction and the sliding speed is less than the sliding speed threshold, or when the sliding direction corresponding to the sliding operation is the second direction and the sliding speed is greater than the sliding speed threshold, determine the third proportion of the content offset relative to the height of the scroll view, round the third proportion to obtain a third control value, and determine the product of the third control value and the height of the scroll view as the page switching offset of the information flow page along the sliding direction corresponding to the sliding operation.

[0063] That is to say, when the sliding direction corresponding to the sliding operation is the first direction and the sliding speed is less than the sliding speed threshold, or when the sliding direction corresponding to the sliding operation is the second direction and the sliding speed is greater than the sliding speed threshold, the page switching offset can be determined by the following formula:

[0064] Wherein, represents the rounding function.

[0065] By the above method, when the third proportion of the content offset relative to the height of the scroll view exceeds or is equal to , it is determined that the user has a need to switch the displayed content. Thus, the height of the scroll view can be automatically used as the page switching offset, thereby switching the displayed content in the information flow page. This can avoid the need for the user to re-slide the page to switch the displayed content, thereby improving the efficiency of switching the displayed content and the user experience. When the third proportion of the content offset relative to the height of the scroll view is less than , it is determined that the user has no need to switch the displayed content. At this time, 0 can be used as the page switching offset, so as not to switch the displayed content in the information flow page. This reduces the switching of the displayed content triggered by the user's misoperation, thereby further enhancing the user's browsing experience.

[0066] After obtaining the page switching offset, the information flow page can be controlled to slide along with the sliding operation according to the page switching offset. In a possible way, controlling the information flow page to slide along with the sliding operation according to the page switching offset may include: When the page switching offset is equal to the height of the scroll view, control the information flow page to slide along with the sliding operation, and after the sliding operation ends, switch the first content in the information flow page to the second content; when the page switching offset is less than the height of the scroll view, control the information flow page to slide along with the sliding operation, and after the sliding operation ends, keep the first content in the information flow page unchanged.

[0067] To facilitate understanding of the sliding control method provided by the embodiments of the present disclosure, the sliding control method provided by the embodiments of the present disclosure will be further described below in combination with the above steps: Exemplarily, the information flow page in this embodiment is a video playback page in a short video application, and the preset type of content is live content and advertisement content. Thus, a short video application can be installed in the terminal device, and when the user starts the short video application, a first request for requesting a recommendation page data interface and a second request for obtaining the sliding speed thresholds corresponding to the live content, advertisement content, and regular short video content are generated, and the first request and the second request are sent to the server corresponding to the short video application.

[0068] After receiving the first request, the server can obtain multiple recommended video contents based on the historical browsing data in the short video application in the terminal device, and return the multiple recommended video contents to the short video application through the recommendation page data interface. After receiving the second request, the server can return to the short video application the sliding speed thresholds corresponding to the live content, advertisement content, and regular short video content.

[0069] After receiving the multiple recommended video contents and the sliding speed thresholds corresponding to the live content, advertisement content, and regular short video content, the short video application can generate a correspondence between different content types and sliding speed thresholds, and can determine the content type of each recommended video content, and display a recommended video content on the video playback page. After that, if a sliding operation on the video playback page is detected, on the one hand, the sliding speed corresponding to the sliding operation can be determined by monitoring the starting position, ending position, and corresponding timestamp of the touch event, and on the other hand, the content type of the recommended video content currently displayed on the video playback page can be determined. After obtaining the sliding speed and the content type of the recommended video content currently displayed, the sliding of the video playback page can be controlled through the following process: If the content type of the recommended video content currently displayed is live content or advertisement content, the sliding-out speed threshold can be used as the sliding speed threshold corresponding to the sliding operation according to the correspondence, and the API interface in the terminal device can be called to change the built-in sliding threshold in the terminal device to the sliding-out speed threshold of the recommended video content currently displayed. Then, the magnitude between the sliding speed and the sliding speed threshold and the sliding direction of the sliding operation can be determined. If the sliding direction is upward sliding and the sliding speed is greater than or equal to the sliding speed threshold, the page switching offset can be determined through the formula and the video playback page can be controlled to perform corresponding sliding according to the page switching offset. If the sliding direction is downward sliding and the sliding speed is less than or equal to the sliding speed threshold, the formula Determine the page switching offset, and control the video playback page to perform corresponding sliding according to the page switching offset. If the sliding direction is upward sliding and the sliding speed is less than the sliding speed threshold, or, if the sliding direction is downward sliding and the sliding speed is greater than the sliding speed threshold, then the page switching offset can be determined through the formula Determine the page switching offset, and control the video playback page to perform corresponding sliding according to the page switching offset.

[0070] If the content type of the recommended video content currently displayed is regular video content, that is, content other than live content and advertisement content, and the content type of the recommended video content to be displayed is live content or advertisement content, then the sliding speed threshold corresponding to the sliding operation can be used as the sliding speed threshold corresponding to the sliding operation according to the corresponding relationship, and the API interface in the terminal device can be called to change the built-in sliding threshold in the terminal device to the sliding speed threshold of the recommended video content to be displayed. Then, the magnitude between the sliding speed and the sliding speed threshold and the sliding direction of the sliding operation can be determined, and further, the page switching offset can be determined in the above manner, and the video playback page can be controlled to perform corresponding sliding according to the page switching offset.

[0071] If the content types of the recommended video content currently displayed and the recommended video content to be displayed are both regular video content, the built-in sliding threshold in the terminal device is not changed, that is, the preset threshold is used as the sliding speed threshold. Then, the magnitude between the sliding speed and the sliding speed threshold and the sliding direction of the sliding operation can be determined, and further, the page switching offset can be determined in the above manner, and the video playback page can be controlled to perform corresponding sliding according to the page switching offset, as Figure 3 and Figure 4 shown.

[0072] Based on the same concept, an embodiment of the present disclosure also provides a sliding control device, as Figure 5 shown, the sliding control device 500 may include: A first determination module 501, configured to determine the sliding speed corresponding to the sliding operation in response to a sliding operation in the information flow page; A second determination module 502, configured to determine the sliding speed threshold corresponding to the sliding operation according to the content types of the first content and the second content in the information flow page, where the first content is the content displayed in the information flow page when the sliding operation is triggered, the second content is the content to be displayed in the information flow page after the sliding operation, when the first content is preset type content, the sliding speed threshold corresponding to the sliding operation is greater than the preset threshold, when the second content is preset type content, the sliding speed threshold corresponding to the sliding operation is less than the preset threshold, and the first content and the second content are not both preset type content at the same time; The control module 503 is configured to control the information flow page to slide following the sliding operation according to the sliding speed and the sliding speed threshold.

[0073] Through the above-mentioned sliding control device 500, when performing a sliding operation on the information flow page, the sliding speed corresponding to the sliding operation can be determined, and the sliding speed threshold corresponding to the sliding operation can be determined according to the content type of the currently displayed content in the information flow page and the content type of the content to be displayed after performing the sliding operation. Furthermore, the information flow page can be controlled to slide following the sliding operation according to the sliding speed and the sliding speed threshold. Thus, the sliding speed threshold corresponding to the sliding operation can be dynamically adjusted according to the currently displayed content and the content to be displayed in the information flow page, so that the information flow page can more intelligently respond to the user's sliding operation, not only improving the user's browsing experience, but also enhancing the flexibility and adaptability of the information flow page, enabling it to better meet the browsing needs of different users for different types of content. In addition, since the sliding speed threshold corresponding to the sliding operation is greater than the preset threshold when the first content is the preset type of content, and the sliding speed threshold corresponding to the sliding operation is less than the preset threshold when the second content is the preset type of content, through the above method, when the first content is the preset type of content, the speed threshold for swiping away can be increased, thus preventing the user from quickly swiping past the first content due to misoperation, and further improving the user's browsing experience; when the second content is the preset type of content, the speed threshold for swiping in can be decreased, so that the user can more easily and quickly swipe into the second content, further improving the user's browsing experience.

[0074] In a possible way, the information flow page is a page in an application program. Correspondingly, the sliding control device 500 may further include: An acquisition module, configured to, in response to the startup of the application program, acquire the sliding speed thresholds corresponding to different content types, and obtain the correspondence between the content type and the sliding speed threshold, where the sliding speed threshold corresponding to the preset type of content in the correspondence is greater than or less than the preset threshold; Correspondingly, the second determination module 502 may be configured to determine the sliding speed threshold corresponding to the sliding operation according to the correspondence and the content types of the first content and the second content in the information flow page.

[0075] In a possible way, the sliding speed threshold includes a swiping-in speed threshold and a swiping-out speed threshold, and the swiping-in speed threshold corresponding to the preset type of content is less than the preset threshold, and the swiping-out speed threshold corresponding to the preset type of content is greater than the preset threshold. Correspondingly, the second determination module 502 may include: A first determination sub-module, configured to, when the first content is the preset type of content, obtain the swiping-out speed threshold corresponding to the preset type of content from the correspondence as the sliding speed threshold corresponding to the sliding operation; A second determination sub-module, configured to, when the second content is preset type content, obtain a sliding speed threshold corresponding to the preset type content from the corresponding relationship as the sliding speed threshold corresponding to the sliding operation.

[0076] In a possible manner, the sliding control device 500 may further include: A third determination module, configured to determine the height of the scroll view corresponding to the information flow page and the content offset of the information flow page in the sliding direction following the sliding operation; Correspondingly, the control module 503 may include: A third determination sub-module, configured to determine a page switching offset of the information flow page in the sliding direction corresponding to the sliding operation according to the sliding speed, the sliding speed threshold, the content offset, and the height of the scroll view; A control sub-module, configured to control the information flow page to slide following the sliding operation according to the page switching offset.

[0077] In a possible manner, the third determination sub-module may include: A first determination unit, configured to determine the absolute value of the sliding speed and the absolute value of the sliding speed threshold; A second determination unit, configured to, when the absolute value of the sliding speed is greater than or equal to the absolute value of the sliding speed threshold, determine that the page switching offset of the information flow page in the sliding direction corresponding to the sliding operation is the height of the scroll view; A third determination unit, configured to, when the absolute value of the sliding speed is less than the absolute value of the sliding speed threshold, determine the page switching offset of the information flow page in the sliding direction corresponding to the sliding operation according to the content offset and the height of the scroll view.

[0078] In a possible manner, the second determination unit may include: A first determination sub-unit, configured to, when the sliding direction corresponding to the sliding operation is the first direction and the sliding speed is greater than or equal to the sliding speed threshold, determine a first ratio of the content offset to the height of the scroll view, round up the first ratio to obtain a first control value, and determine the product of the first control value and the height of the scroll view as the page switching offset of the information flow page in the sliding direction corresponding to the sliding operation; A second determination sub-unit, configured to, when the sliding direction corresponding to the sliding operation is the second direction and the sliding speed is less than or equal to the sliding speed threshold, determine a second ratio of the content offset to the height of the scroll view, round down the second ratio to obtain a second control value, and determine the product of the second control value and the height of the scroll view as the page switching offset of the information flow page in the sliding direction corresponding to the sliding operation, where the first direction is opposite to the second direction.

[0079] In a possible manner, the third determination unit may be used to determine a third ratio of the content offset to the height of the scroll view when the scroll direction corresponding to the scroll operation is the first direction and the scroll speed is less than the scroll speed threshold, or when the scroll direction corresponding to the scroll operation is the second direction and the scroll speed is greater than the scroll speed threshold, and round the third ratio to obtain a third control value, and determine the product of the third control value and the height of the scroll view as the page switching offset of the information stream page along the scroll direction corresponding to the scroll operation.

[0080] In a possible manner, the content types of the first content and the second content in the information stream page may be determined in the following manner: Determine a first identifier associated with the first content for characterizing the content type and a second identifier associated with the second content for characterizing the content type; When the first identifier is a preset identifier, determine that the first content is preset type content; When the second identifier is a preset identifier, determine that the second content is preset type content.

[0081] Based on the same concept, an embodiment of the present disclosure further provides a computer-readable medium, on which a computer program is stored, and when the program is executed by a processing device, the steps of any of the above sliding control methods are implemented.

[0082] Based on the same concept, an embodiment of the present disclosure further provides an electronic device, which may include: A storage device, on which a computer program is stored; A processing device, configured to execute the computer program in the storage device to implement the steps of any of the above sliding control methods.

[0083] Based on the same concept, an embodiment of the present disclosure further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of any of the above sliding control methods are implemented.

[0084] Next, refer to Figure 6 , which shows a schematic structural diagram of an electronic device 600 suitable for implementing an embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present disclosure.

[0085] As Figure 6As shown, the electronic device 600 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0086] Generally, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 6 the electronic device 600 with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices may be implemented or had.

[0087] Specifically, according to an embodiment of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program codes for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above functions defined in the method of the embodiment of the present disclosure are executed.

[0088] It should be noted that the above-mentioned computer-readable medium in the present disclosure can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and this computer-readable signal medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0089] In some embodiments, communication can be carried out using any currently known or future-developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with digital data communication in any form or medium (for example, a communication network). Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (for example, the Internet), and end-to-end networks (for example, ad hoc end-to-end networks), as well as any currently known or future-developed networks.

[0090] The above-mentioned computer-readable medium can be included in the above-mentioned electronic device; or it can exist separately without being assembled into the electronic device.

[0091] The above computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: determine a sliding speed corresponding to a sliding operation in response to the sliding operation in the information flow page; determine a sliding speed threshold corresponding to the sliding operation according to the content types of the first content and the second content in the information flow page, where the first content is the content displayed in the information flow page when the sliding operation is triggered, the second content is the content to be displayed in the information flow page after the sliding operation, and when the first content is of a preset type, the sliding speed threshold corresponding to the sliding operation is greater than a preset threshold, and when the second content is of a preset type, the sliding speed threshold corresponding to the sliding operation is less than the preset threshold; control the information flow page to slide following the sliding operation according to the sliding speed and the sliding speed threshold.

[0092] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof. The programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0093] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0094] The modules involved in the embodiments of the present disclosure can be implemented in software or in hardware. In some cases, the name of a module does not constitute a limitation on the module itself.

[0095] The functions described above herein can be performed, at least in part, by one or more hardware logic components. By way of example, and without limitation, the types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGA), Application Specific Integrated Circuits (ASIC), Application Specific Standard Products (ASSP), System on a Chip (SOC), Complex Programmable Logic Devices (CPLD), and the like.

[0096] In the context of the present disclosure, a machine-readable medium may be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0097] The above description is only a preferred embodiment of the present disclosure and an illustration of the technical principles applied. Those skilled in the art should understand that the scope of the disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, a technical solution formed by mutually replacing the above features with technical features having similar functions (but not limited to) disclosed in the present disclosure.

[0098] In addition, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments may also be implemented combinatorially in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.

[0099] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. On the contrary, the specific features and acts described above are merely example forms for implementing the claims. Regarding the apparatus in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be elaborated herein.

Claims

1. A sliding control method, characterized in that: The sliding control method comprises: In response to a sliding operation on an information flow page, determining a sliding speed corresponding to the sliding operation; Determine a sliding speed threshold corresponding to the sliding operation according to the content types of the first content and the second content in the information flow page, wherein the first content is the content displayed on the information flow page when the sliding operation is triggered, and the second content is the content to be displayed on the information flow page after the sliding operation, when the first content is a preset type of content, the sliding speed threshold corresponding to the sliding operation is greater than the preset threshold, when the second content is the preset type of content, the sliding speed threshold corresponding to the sliding operation is less than the preset threshold, and the first content and the second content are not the preset type of content at the same time; According to the sliding speed and the sliding speed threshold, the information flow page is controlled to slide following the sliding operation.

2. The sliding control method according to claim 1, characterized in that: The information flow page is a page in an application, and the sliding control method further includes: In response to the application being started, obtaining sliding speed thresholds corresponding to different content types, and obtaining a correspondence between content types and sliding speed thresholds, wherein the sliding speed threshold corresponding to the preset type of content in the correspondence is greater than or less than the preset threshold; The determining, according to the content types of the first content and the second content in the information flow page, a sliding speed threshold corresponding to the sliding operation includes: A sliding speed threshold corresponding to the sliding operation is determined according to the corresponding relationship and the content types of the first content and the second content in the information flow page.

3. The sliding control method according to claim 2, characterized in that: The sliding speed threshold includes a sliding-in speed threshold and a sliding-out speed threshold, and the sliding-in speed threshold corresponding to the preset type of content is less than the preset threshold, and the sliding-out speed threshold corresponding to the preset type of content is greater than the preset threshold, and determining the sliding speed threshold corresponding to the sliding operation according to the corresponding relationship and the content types of the first content and the second content in the information flow page includes: When the first content is the preset type of content, obtaining a sliding speed threshold corresponding to the preset type of content from the corresponding relationship as a sliding speed threshold corresponding to the sliding operation; When the second content is the preset type of content, the sliding speed threshold corresponding to the preset type of content is obtained from the corresponding relationship as the sliding speed threshold corresponding to the sliding operation.

4. The sliding control method according to any one of claims 1 to 3, characterized in that: The sliding control method further includes: Determine the height of the scroll view corresponding to the information stream page and the content offset of the information stream page in the sliding direction following the sliding operation; The step of controlling the information flow page to slide following the sliding operation according to the sliding speed and the sliding speed threshold comprises: Determine, according to the sliding speed, the sliding speed threshold, the content offset, and the scroll view height, a page switching offset of the information flow page along a sliding direction corresponding to the sliding operation; According to the page switching offset, the information stream page is controlled to slide following the sliding operation.

5. The sliding control method according to claim 4, characterized in that: The determining, according to the sliding speed, the sliding speed threshold, the content offset, and the scroll view height, a page switching offset of the information flow page along a sliding direction corresponding to the sliding operation includes: determining an absolute value of the sliding speed and an absolute value of the sliding speed threshold; When the absolute value of the sliding speed is greater than or equal to the absolute value of the sliding speed threshold, determining the page switching offset of the information flow page along the sliding direction corresponding to the sliding operation as the scroll view height; When the absolute value of the sliding speed is less than the absolute value of the sliding speed threshold, the page switching offset of the information flow page along the sliding direction corresponding to the sliding operation is determined according to the content offset and the scroll view height.

6. The sliding control method according to claim 5, characterized in that: The determining that the page switching offset of the information flow page along the sliding direction corresponding to the sliding operation is the scroll view height includes: When the sliding direction corresponding to the sliding operation is a first direction, and the sliding speed is greater than or equal to the sliding speed threshold, determining a first ratio of the content offset to the height of the scrolling view, rounding up the first ratio to obtain a first control value, and determining the product of the first control value and the height of the scrolling view as the page switching offset of the information flow page along the sliding direction corresponding to the sliding operation; When the sliding direction corresponding to the sliding operation is the second direction and the sliding speed is less than or equal to the sliding speed threshold, determine the second ratio of the content offset to the scrolling view height, round down the second ratio to obtain a second control value, and multiply the second control value by the scrolling view height as the page switching offset of the information flow page along the sliding direction corresponding to the sliding operation, wherein the first direction is opposite to the second direction.

7. The sliding control method according to claim 5, characterized in that: The determining, according to the content offset and the scroll view height, a page switching offset of the information flow page along a sliding direction corresponding to the sliding operation includes: When the sliding direction corresponding to the sliding operation is the first direction and the sliding speed is less than the sliding speed threshold, or, when the sliding direction corresponding to the sliding operation is the second direction and the sliding speed is greater than the sliding speed threshold, determine the third ratio of the content offset to the scrolling view height, round the third ratio to obtain a third control value, and determine the product of the third control value and the scrolling view height as the page switching offset of the information flow page along the sliding direction corresponding to the sliding operation.

8. The sliding control method according to any one of claims 1 to 3, characterized in that: The content types of the first content and the second content in the information flow page are determined in the following manner: Determine a first identifier associated with the first content and used to characterize a content type, and a second identifier associated with the second content and used to characterize a content type; When the first identifier is a preset identifier, determining that the first content is a preset type of content; When the second identifier is the preset identifier, it is determined that the second content is a preset type of content.

9. A sliding control device, characterized in that: The sliding control device comprises: A first determination module, configured to determine a sliding speed corresponding to a sliding operation in an information flow page in response to the sliding operation; A second determination module is used to determine a sliding speed threshold corresponding to the sliding operation according to the content types of the first content and the second content in the information flow page, wherein the first content is the content displayed on the information flow page when the sliding operation is triggered, and the second content is the content to be displayed on the information flow page after the sliding operation. When the first content is a preset type of content, the sliding speed threshold corresponding to the sliding operation is greater than the preset threshold, and when the second content is the preset type of content, the sliding speed threshold corresponding to the sliding operation is less than the preset threshold, and the first content and the second content are not the preset type of content at the same time; The control module is used to control the information flow page to slide following the sliding operation according to the sliding speed and the sliding speed threshold.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processing device, the steps of the method according to any one of claims 1 to 8 are implemented.

11. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 8.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.