Page sliding control method, device and storage medium
By monitoring screen touch events and adjusting the position of the sliding control to make it closer to the user's touch position, the problem of the fixed position of the slider being difficult to touch is solved and the user's page sliding experience is improved.
Patent Information
- Application Number
- CN202410414534.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-08
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-04-08
AI Technical Summary
When a page with a slider is displayed on the screen of an electronic device, the fixed position of the slider makes it difficult for the user to touch it easily, which is particularly inconvenient on large-screen devices.
By monitoring screen touch events, the sliding operation direction is determined, and the sliding control is adjusted to be closer to the user's touch position along the non-sliding direction or along the sliding direction and the non-sliding direction simultaneously, so that the user touches the sliding control.
It improves the user's page sliding experience and enables users to touch the sliding control more easily, especially in scenarios where one-handed operation or hands are not used to it, significantly improving the convenience of user operation.
Smart Images

Figure CN118012326B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a page sliding control method, device and storage medium. Background Art
[0002] When a page with a slider is displayed on the screen of an electronic device, the position of the slider in the page is usually fixed. This makes it difficult for users to easily touch the slider, causing inconvenience to users. This problem is particularly serious on large-screen devices. Summary of the invention
[0003] The embodiments of the present disclosure provide page sliding control methods, and corresponding electronic devices, computing devices, and non-transitory machine-readable storage media for executing these methods.
[0004] According to a first aspect of the present disclosure, a page sliding control method is provided, the method comprising: monitoring a screen touch event; determining that the screen touch event is a sliding operation; acquiring a first position, the first position being a position in a first direction where a screen touch position of the screen touch event is located, the first direction being a sliding direction of the sliding operation; translating a sliding control from a second position to the first position along a second direction for display, the position of the sliding control in the first direction being fixed; or moving the sliding control from the second position to the first position for display along both the first direction and the second direction, the position of the sliding control in the first direction after adjustment being closer to the screen touch position, wherein the second direction is perpendicular to the first direction, the sliding control is used to control the display interface to slide along the first direction, and the second position is the previous display position of the sliding control.
[0005] Optionally, before the step of acquiring the first position, the method further includes: determining that the screen touch event ends.
[0006] Optionally, the sliding control is a slider located on a sliding bar, and the method further includes: while adjusting the sliding control to be displayed at the first position, adjusting the display position of the sliding bar in the page in an associated manner.
[0007] Optionally, the method further includes: detecting whether the real-time mode is turned on; determining that the real-time mode is turned on, and in response to the screen touch event monitored in real time, executing the step of adjusting the sliding control to display at the first position.
[0008] Optionally, the method further includes: determining that the real-time mode is not turned on, and analyzing screen touch events monitored within a predetermined time range to obtain a first position.
[0009] According to a second aspect of the present disclosure, an electronic device is provided, comprising: a touch screen; a processor; and a memory on which executable code is stored, and when the executable code is executed by the processor, the processor executes the method described in the first aspect above.
[0010] According to a third aspect of the present disclosure, a computing device is provided, comprising: a processor; and a memory on which executable codes are stored, and when the executable codes are executed by the processor, the processor executes the method described in the first aspect above.
[0011] According to a fourth aspect of the present disclosure, a non-transitory machine-readable storage medium is provided, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor executes the method described in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components in the exemplary embodiments of the present disclosure.
[0013] Figure 1 A schematic flow chart of a page sliding control method according to an embodiment of the present disclosure is shown.
[0014] Figure 2 A schematic diagram showing two ways of adjusting the display position of a vertical sliding control.
[0015] Figure 3 A schematic diagram showing two ways of adjusting the display position of a horizontal sliding control.
[0016] Figure 4 A schematic diagram of the application settings interface is shown.
[0017] Figure 5 A schematic diagram of the interface of a vertical list page is shown.
[0018] Figure 6 A schematic diagram showing the principle of adjusting the position of a slider in a vertical list page is shown.
[0019] Figure 7 A schematic diagram showing sliding a list by sliding a slider up and down in a vertical list page is shown.
[0020] Figure 8 A schematic diagram of the structure of a computing device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0021] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0022] Those skilled in the art should understand that the terms "first", "second", etc. in the specification, claims and drawings of the present disclosure are used to distinguish similar objects, rather than to describe a specific order or sequence, and have no additional limiting effect.
[0023] The present disclosure is applicable to a page display scenario where a page slide needs to be controlled by a slide control.
[0024] Slide control is a common control in the page. Slide control can refer to a slider.
[0025] The sliding control is used to control the display interface to slide along a preset sliding direction. The user can control the sliding control to slide along the sliding direction by touch, thereby realizing the sliding of the page.
[0026] The page may be any page that can be displayed on a screen of an electronic device (such as a smartphone or other large-screen device).
[0027] The page may specifically be, but is not limited to, a vertical list page and a horizontal list page.
[0028] A vertical list page includes multiple list items arranged in a vertical direction. List items can also be called lists. Each list item corresponds to an information entry. The sliding direction of a vertical list page is vertical. Users can slide the list items in a vertical list page in the vertical direction by touching the sliding control and sliding the sliding control in the vertical direction.
[0029] Similar to a vertical list page, a horizontal list page can include multiple list items arranged in a horizontal direction. The sliding direction of a horizontal list page is generally horizontal. By touching the sliding control and sliding the sliding control in the horizontal direction, the list items in the horizontal list page can be slid in the horizontal direction.
[0030] The display position of the sliding control in the page is usually fixed, such as being located on the side of the page, which makes it difficult for users to easily touch the sliding control, causing inconvenience to users. Taking the mobile phone page as an example, different people have very different habits of using mobile phones. Some people are used to operating with their left hand, while others are used to operating with their right hand. In many cases, such as on the subway during rush hour in the morning and evening, users need to operate their mobile phones with one hand. When operating the mobile phone with one hand, the user's screen touch range is limited, and the hand that operates the mobile phone may not be the hand that the user is used to using. In these scenarios, since the sliding control is usually located on the side of the page, if the sliding control is located far away from the user's hand that operates the mobile phone, it will make it difficult for users to easily touch the sliding control.
[0031] In view of this, the present disclosure aims to provide a simple and easy-to-implement page sliding control solution so that users can easily touch the sliding control, thereby improving the user's page sliding experience.
[0032] Figure 1 A schematic flow chart of a page sliding control method according to an embodiment of the present disclosure is shown. Figure 1 The method shown can be implemented in software via a computer program, and can also be executed via a specifically configured computing device.
[0033] See also Figure 1 , in step S110, monitor screen touch events.
[0034] A screen touch event refers to an event in which a user touches the screen with a finger or stylus. A screen touch event can refer to the event from the first time a user touches the screen to the time the user stops touching the screen. For example, a screen touch event can start from the first time a user touches the screen, go through any movement of the finger on the screen surface, and end when the finger leaves the screen.
[0035] The present disclosure can monitor the current screen touch events occurring in real time during the page display process.
[0036] In step S120, it is determined that the screen touch event is a sliding operation.
[0037] For the monitored screen touch event, it can be determined whether the operation type of the screen touch event is a sliding operation. If the screen touch event is determined to be a sliding operation, the subsequent process is executed.
[0038] The screen touch event is a sliding operation, which means that the screen touch event is a sliding event, and the sliding direction of the sliding event is a first direction. The first direction is also the sliding direction of the page. The sliding control is used to control the display interface to slide along the first direction.
[0039] Taking a vertical list page as an example, step S120 may refer to determining that the screen touch event is a sliding operation with a sliding direction in a vertical direction. Taking a horizontal list page as an example, step S120 may refer to determining that the screen touch event is a sliding operation with a sliding direction in a vertical direction.
[0040] In other words, the execution of step S130 and step S140 may be triggered only when it is determined that the screen touch event is a sliding operation in which the sliding direction is consistent with the sliding direction of the page.
[0041] In step S130, a first position is acquired, where the first position is a position in a first direction where the screen touch position of the screen touch event is located.
[0042] Since the screen touch event is a sliding operation in which the sliding direction is consistent with the sliding direction of the page, the screen touch position of the screen touch event may refer to any sliding position in the sliding operation, such as but not limited to the starting sliding position, the ending sliding position, or a sliding position between the starting sliding position and the ending sliding position.
[0043] Exemplarily, before step S130, the present disclosure may also determine that the screen touch event ends. That is, step S130 is performed only when it is determined that the screen touch event ends.
[0044] The first position is a position in a first direction where the screen touch position of the screen touch event is located. The first position may be the screen touch position or a position different from the screen touch position.
[0045] After obtaining the first position, the sliding control can be adjusted from the second position to the first position along the non-sliding direction. The non-sliding direction refers to a direction different from the sliding direction (i.e., the first direction). The non-sliding direction can be perpendicular to the first direction, i.e., the non-sliding direction can be the second direction described below. The non-sliding direction can also be other directions.
[0046] The second position is the previous display position of the sliding control, that is, the display position before adjustment.
[0047] The first position is located in the first direction of the screen touch position of the screen touch event. The positions in the first direction where the screen touch position is located can all be considered as positions that are convenient for user touch. Therefore, by adjusting the sliding control to the first position along the non-sliding direction, the user can touch more conveniently.
[0048] Exemplarily, step S140 may be executed after step S130, wherein the sliding control is translated along the second direction from the second position to the first position for display, with the position of the sliding control in the first direction being fixed; or the sliding control is simultaneously moved along the first direction and the second direction from the second position to the first position for display, with the position of the sliding control in the first direction being adjusted to be closer to the screen touch position.
[0049] In actual applications, one of the two adjustment methods can be selected to adjust the display position of the sliding control. For example, the display position of the sliding control can be adjusted by selecting an adjustment method that matches the page sliding logic from the two adjustment methods in combination with the specific page sliding logic.
[0050] Adjusting the display position of the sliding control in the page may refer to adjusting the display position of the sliding control in the page without sliding the page. In other words, the purpose of step S140 is to facilitate the user to touch the adjusted sliding control, and executing step S140 may not trigger page sliding.
[0051] In some application scenarios, the page sliding logic can be configured so that the user can control the sliding of the page by making a sliding gesture along the sliding direction at any position on the entire sliding bar of the sliding control. Taking the sliding control as a vertical slider as an example, the user can also trigger the sliding of the page by sliding up and down at a position directly below or directly above the vertical slider. In these application scenarios, the user can control the sliding of the page without touching the sliding control. For these application scenarios, when adjusting the display position of the sliding control, the sliding control can be translated from the second position to the first position along the second direction, and the second direction is perpendicular to the first direction. In the process of translating the sliding control along the second direction to the first position for display, the position of the sliding control in the first direction remains fixed. That is, the display position of the sliding control is only adjusted along the direction perpendicular to the sliding direction so that the adjusted display position is located in the sliding direction where the screen touch position is located.
[0052] In some application scenarios, the page sliding logic can be configured so that the user can only control the sliding of the page by dragging the slider in the sliding direction, that is, the user can only control the sliding of the page by touching the sliding control. For these application scenarios, the sliding control can be adjusted to be displayed close to the screen touch position, so that the user can touch the sliding control conveniently. Exemplarily, the sliding control can be moved and adjusted from the second position to the first position along the first direction and the second direction at the same time, and the position of the sliding control in the first direction after adjustment is closer to the screen touch position. Optionally, the first position can coincide with the screen touch position. Moving and adjusting the sliding control along the first direction and the second direction at the same time means that the adjustment of the display position of the sliding control involves movement in both the first direction and the second direction.
[0053] Figure 2 A schematic diagram showing two ways of adjusting the display position of a vertical sliding control.
[0054] See also Figure 2 The sliding control may refer to a slider 100 located on the sliding bar 200. The sliding direction (ie, the first direction mentioned above) is the up-down direction (ie, the vertical direction). Figure 2 The arrow in the figure indicates a slide gesture, the dotted circle indicates the starting touch position, and the solid circle indicates the ending touch position.
[0055] If the page sliding logic is configured so that the user can slide the page by touching any position on the slide bar 200 and sliding up and down, the display position of the slider 100 can be adjusted by method A. In the process of adjusting the display position of the slider 100, the display position of the slide bar 200 in the page can be adjusted in association. Method A means that the slider 100 and the slide bar 200 are moved horizontally as a whole, that is, the slider 100 is moved horizontally above or below the position of the sliding gesture (such as the starting touch position or the ending touch position of the gesture). In this way, after the user makes the sliding gesture shown by the arrow in the figure, he only needs to press and hold the current touch position and slide up and down to achieve the sliding of the page.
[0056] If the page sliding logic is configured so that the user can slide the page only by touching the slider 100 and dragging the slider 100 up and down, the display position of the slider 100 can be adjusted by way B. Way B means that the position of the slider 100 is adjusted not only in the horizontal direction but also in the vertical direction, so that the display position of the slider 100 after adjustment coincides with the screen touch position (such as the termination touch position) corresponding to the sliding gesture. In the process of adjusting the slider 100 in the horizontal direction, the display position of the slider bar 200 in the page can be adjusted in association. When adjusting the display position of the slider 100 in the vertical direction, the adjustment can be made without sliding the page. Exemplarily, the length of the slider bar can be scaled to adjust the display position of the slider 100 in the vertical direction, so that the display position of the slider 100 after adjustment coincides with the screen touch position corresponding to the sliding gesture without sliding the page. Way B can solve the problem that the previous position of the slider 100 before adjustment and the screen touch position corresponding to the user's sliding gesture are far apart in the slidable direction. For example, when the device screen is large, if the previous position of the slider 100 is located at the upper left corner of the screen, and the gesture operation range that the user is accustomed to is located at the lower right corner of the screen, if the slider position is adjusted only by method A, the user still cannot easily touch the slider 100. Therefore, the slider 100 can be adjusted to a display position that is convenient for the user to touch by method B.
[0057] Figure 3A schematic diagram showing two ways of adjusting the display position of a horizontal sliding control.
[0058] See also Figure 3 The sliding control may refer to a slider 100 located on the sliding bar 200. The sliding direction of the slider 100 is horizontal. Figure 3 The arrow in the figure indicates a slide gesture, the dotted circle indicates the starting touch position, and the solid circle indicates the ending touch position.
[0059] If the page sliding logic is configured so that the user can slide the page by touching any position on the slide bar 200 and sliding horizontally, the display position of the slider 100 can be adjusted by method C. In the process of adjusting the display position of the slider 100, the display position of the slide bar 200 in the page can be adjusted in association. Method C means that the slider 100 and the slide bar 200 are moved vertically as a whole, that is, the slider 100 is moved to the left or right side of the position of the sliding gesture (such as the starting touch position or the ending touch position of the gesture). In this way, after the user makes the sliding gesture shown by the arrow in the figure, he only needs to press and hold the current touch position and slide horizontally to achieve the sliding of the page.
[0060] If the page sliding logic is configured so that the user can slide the page only by touching the slider 100 and dragging the slider 100 up and down, the display position of the slider 100 can be adjusted by way D. Way D means that the position of the slider 100 is adjusted not only in the vertical direction but also in the horizontal direction, so that the display position of the slider 100 after adjustment coincides with the screen touch position (such as the termination touch position) corresponding to the sliding gesture. Among them, in the process of adjusting the slider 100 in the vertical direction, the display position of the slider bar 200 in the page can be adjusted in association. When adjusting the display position of the slider 100 in the horizontal direction, the adjustment can be made without sliding the page. Exemplarily, the length of the slider bar 200 can be scaled to adjust the display position of the slider 100 in the horizontal direction, so that the display position of the slider 100 after adjustment coincides with the screen touch position corresponding to the sliding gesture without sliding the page. Way D can solve the problem that the previous position of the slider 100 before adjustment and the screen touch position corresponding to the user's sliding gesture are far apart in the slidable direction. For example, when the device screen is large, if the previous position of the slider 100 is on the left side of the screen, and the gesture operation range that the user is accustomed to is on the right side of the screen, if the slider position is adjusted only by method D, the user still cannot easily touch the slider 100. Therefore, method D can be used to adjust the slider 100 to a display position that is convenient for the user to touch.
[0061] Based on the present disclosure, when a user expects to slide a page and the current display position of the sliding control is located at a position that is not easily touched by the user, the user only needs to make a sliding gesture along the first direction at a position that is convenient for touch (such as raising the hand after a short slide) to trigger the adjustment mechanism of the display position of the sliding control, thereby making it convenient to touch the sliding control.
[0062] The above description takes the sliding operation as an example of the screen touch event for exemplary description.
[0063] In actual applications, there are many types of screen touch events, for example, they may include but are not limited to click, long press, slide and other types of screen touch events. The present disclosure requires at least only one screen touch position when adjusting the display position of the sliding control, and all types of screen touch events have at least one screen touch position. Therefore, the present disclosure is theoretically applicable to all types of screen touch events. That is, the present disclosure may not judge the type of screen touch event, but may adjust the display position of the sliding control in the page in response to all types of screen touch events. In this way, the sliding control can be automatically adjusted to a display position that is currently easy for the user to touch according to the screen touch events monitored in real time.
[0064] The present disclosure can also determine whether the screen touch event is a sliding event for a sliding control. If the screen touch event is a sliding event for a sliding control, the sliding control can be controlled to slide along a predetermined direction (i.e., the sliding direction), and the page can be controlled to slide according to the sliding parameters of the sliding control, such as sliding the page at a predetermined ratio according to the sliding distance of the sliding control. If the screen touch event is a sliding event for a sliding control, step S130 and step S140 are not performed.
[0065] In some embodiments, the sliding control may be a slider on a sliding bar. The sliding bar is used to define the sliding direction of the slider. The sliding bar may also be referred to as a sliding track. While executing step S140, the display position of the sliding bar in the page may also be adjusted in association. Adjusting the display position of the sliding bar in the page only involves adjusting the sliding bar in a first direction perpendicular to the second direction. That is, when the sliding control is adjusted in a direction perpendicular to the sliding direction during the execution of step S140, the display position of the sliding bar in the direction perpendicular to the sliding direction may be adjusted accordingly.
[0066] In some embodiments, a "real-time mode" function option may be provided to the user. The user may choose to turn the real-time mode on or off. The present disclosure may also detect whether the real-time mode is turned on. If it is determined that the real-time mode is turned on, the step of adjusting the sliding control to the first position for display may be performed in response to the screen touch event monitored in real time, i.e., step S140. If it is determined that the real-time mode is not turned on, the screen touch event monitored within a predetermined time range may be analyzed to obtain the first position.
[0067] The first position mentioned here is a representative position determined by analyzing some or all screen monitoring events monitored within a predetermined time range, and this position can be regarded as a position that the user is accustomed to or easy to touch within the predetermined time range. Exemplarily, the screen touch position that appears most frequently among the screen touch positions corresponding to some or all screen monitoring events monitored within the predetermined time range can be used as the first position. Exemplarily, some or all screen monitoring events monitored within the predetermined time range can also be analyzed to determine the screen touch area of the user within the predetermined time range, and the center position of the screen touch area can be used as the first position. After obtaining the first position, the step of adjusting the sliding control to display at the first position can be executed, that is, executing step S140.
[0068] The present disclosure can also obtain the default position of the sliding control, and determine the initial display position of the sliding control in the page based on the default position. The default position can be set by the user according to his or her own operating habits. The user's operating preference can also be determined by analyzing the user's historical screen touch events, and the default position of the sliding control can be determined accordingly.
[0069] Combine the following Figures 4 to 7 The following is an example of a list page.
[0070] Figure 4 A schematic diagram of the application settings interface is shown.
[0071] See also Figure 4 , you can provide three settings: "Default position of slider for vertical list page", "Default position of slider for horizontal list page", and "Slider position automatically follows touch position". The interaction between these three settings and the user can be customized and extended. For example, you can follow Figure 4 As shown, the user can set the above three setting items by clicking.
[0072] Based on the above three settings, users can set the default position of the slider in the vertical list page and the horizontal list page, and further set whether to enable the slider position to automatically follow the user touch position.
[0073] The default position of the slider in a vertical list page can be on the right or left side of the page. The default position of the slider in a horizontal list page can be on the top or bottom of the page. Turning on the slider position to automatically follow the user's touch position is equivalent to turning on the real-time mode.
[0074] The default position of the slider in the list page is on the side previously set by the user to adapt to the user's left-handed or right-handed usage habits.
[0075] In the list page, if the user has previously set the slider position to follow the user's real-time touch position, then if the user can only use the hand on the inconvenient side to slide the list, the user can slide briefly and then raise his hand, and the slider will automatically move to the side where the user's finger is, making it easier for the user to touch and slide the slider. Taking the vertical list page as an example, the user can slide briefly and then raise his hand, and the slider will automatically move horizontally to the horizontal position where the user's finger is. The user only needs to press and slide up and down to achieve fast sliding of the list in the vertical list page. The same applies to horizontal list pages.
[0076] On the list page, the default position of the slider is on the side previously set by the user to adapt to the user's left-handed or right-handed usage habits. Figure 5 The vertical list page interface diagram is shown. Figure 5 , the user previously set the default position of the vertical list page slider to the left side of the list. After entering the vertical list page, the slider is located on the left side of the list.
[0077] Figure 6 A schematic diagram showing the principle of adjusting the position of a slider in a vertical list page is shown.
[0078] See also Figure 6 In a vertical list page, if the user has previously enabled the slider position to automatically follow the user's real-time touch position, then the user briefly slides and then raises his hand, the slider and the slide bar can be automatically moved horizontally to the horizontal position of the user's finger, such as to the horizontal position of the user's finger.
[0079] Figure 7 A schematic diagram showing sliding a list by sliding a slider up and down in a vertical list page is shown.
[0080] See also Figure 7 , the user can quickly slide the list by pressing and holding the slider and sliding it up and down. As shown in the figure, after the user presses and holds the slider and slides down about half of the screen, the list can quickly slide down about half the height of the list page.
[0081] The present invention can flexibly adjust the position of a slider in a list page of a smartphone according to the user's preferences, especially in a list page of a large-screen device, which can significantly improve the user experience.
[0082] Based on the present disclosure, the user can set the default position of the slider in the list page to adapt to the hand on which he or she is accustomed. For example, if the user is accustomed to operating the mobile phone with the left hand, the slider can be placed on the left side.
[0083] The present disclosure also supports users to set the slider position to automatically follow the touch position. Even if the user's finger cannot touch the current position of the slider in some scenarios, the slider position can also change with the current position of the finger, solving the problem of "hands are not big enough" in some scenarios. The larger the device screen, the more obvious the effect.
[0084] The present disclosure only needs one touch position to adjust the slider to a position that is easily touched by the user, does not involve the collection and matching of touch tracks, does not involve the collection of regions, and does not require calculation. The solution is simple, responsive, and accurate.
[0085] The present disclosure can automatically adjust the position of the slider only on the list page, and will not add UI controls to the interface, thereby not affecting the aesthetics of the interface.
[0086] The present disclosure also provides an electronic device. The electronic device may include a touch screen, a processor, and a memory. The memory stores an executable code, and when the executable code is executed by the processor, the processor executes the page sliding control method described above.
[0087] Figure 8 A schematic diagram of the structure of a computing device that can be used to implement the above-mentioned page sliding control method according to an embodiment of the present disclosure is shown.
[0088] See also Figure 8 , the computing device 700 includes a memory 710 and a processor 720 .
[0089] The processor 720 may be a multi-core processor or may include multiple processors. In some embodiments, the processor 720 may include a general-purpose main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a digital signal processor (DSP), etc. In some embodiments, the processor 720 may be implemented using a customized circuit, such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA).
[0090] The memory 710 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 720 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at runtime. In addition, the memory 710 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 710 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0091] The memory 710 stores executable codes. When the executable codes are processed by the processor 720, the processor 720 can execute the page sliding control method mentioned above.
[0092] The page sliding control method, electronic device, and computing device according to the present disclosure have been described in detail above with reference to the accompanying drawings.
[0093] In addition, the method according to the present disclosure may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing the above steps defined in the above method of the present disclosure.
[0094] Alternatively, the present disclosure may also be implemented as a non-transitory machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or computing device, server, etc.), the processor executes the various steps of the above-mentioned method according to the present disclosure.
[0095] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or a combination of both.
[0096] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the system and method according to multiple embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0097] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A page sliding control method, characterized in that: The method comprises: Monitor screen touch events; Determining that the screen touch event is a sliding operation; Determining that the screen touch event ends; Acquire a first position, where the first position is a position in a first direction where the screen touch position of the screen touch event is located, the first direction is a sliding direction of the page, and the sliding direction of the sliding operation is consistent with the first direction; If the page sliding logic is configured so that the user can control the sliding of the page by making a sliding gesture along the sliding direction at any position on the entire sliding bar of the sliding control, the sliding control is translated along the second direction from the second position to the first position for display, and the position of the sliding control in the first direction remains fixed; or if the page sliding logic is configured so that the user can only control the sliding of the page by touching the sliding control, the sliding control is moved along the first direction and the second direction from the second position to the first position for display, and after the adjustment, the position of the sliding control in the first direction is closer to the screen touch position, wherein the second direction is perpendicular to the first direction, the sliding control is used to control the display interface to slide along the first direction, and the second position is the previous display position of the sliding control; and In response to receiving a sliding event for the sliding control, the sliding control is controlled to slide along the first direction, and the page is controlled to slide according to the sliding parameters of the sliding control.
2. The method according to claim 1, characterized in that The sliding control is a slider located on a sliding bar, and the method further includes: while adjusting the sliding control to be displayed at the first position, adjusting the display position of the sliding bar in the page in association therewith.
3. The method according to claim 1, characterized in that The method further comprises: Check if the real-time mode is turned on; Determine that the real-time mode is turned on, and in response to the screen touch event monitored in real time, perform the step of adjusting the sliding control to the first position for display.
4. The method according to claim 3, characterized in that The method further comprises: It is determined that the real-time mode is not turned on, and the screen touch events monitored within a predetermined time range are analyzed to obtain the first position.
5. An electronic device comprising: Touch screen; processor; A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 4.
6. A computing device comprising: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 4.
7. A non-transitory machine-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 4.
