Page switching method, switching device and electronic device
By obtaining the swiping direction and parameters on the screen, it directly jumps to the target page, solving the inefficiency problem caused by page-by-page switching in existing technologies, and achieving efficient page switching and a good user experience.
Patent Information
- Application Number
- CN202311799860.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-25
- Publication Date
- 2026-08-25
- Estimated Expiration
- 2043-12-25
AI Technical Summary
In existing technologies, users need to switch pages one by one, resulting in low page switching efficiency.
By responding to swipe gestures on the screen, the system obtains the swipe direction and parameters, determines the jump direction and page number, and controls the screen to jump directly to the target page.
It simplifies page switching operations, improves page switching efficiency, and enhances the user experience.
Smart Images

Figure CN117762297B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of page switching technology for smart devices, and more specifically, to a page switching method, a switching device, a computer-readable storage medium, and an electronic device. Background Technology
[0002] Mobile phones have been used in society for many years, and almost everyone owns one. People pay special attention to the development of mobile phone technology. As mobile phones are used, more and more applications are installed on them, resulting in multiple pages. Switching between pages one by one can be relatively troublesome for users. Summary of the Invention
[0003] The main objective of this application is to provide a page switching method, switching device, computer-readable storage medium, and electronic device to at least solve the problem in the prior art where users need to switch pages one by one, resulting in low page switching efficiency.
[0004] To achieve the above objectives, according to one aspect of this application, a page switching method is provided, comprising: in response to a swiping operation performed on a screen, obtaining a swiping direction corresponding to the swiping operation; determining a jump direction based on the swiping direction, the jump direction representing a jump from the current page to a page preceding or following the current page; obtaining swiping parameters, and determining a jump page number based at least on the swiping parameters, the swiping parameters representing the contact between a limb and the screen during the swiping operation, the jump page number representing the number of pages to be jumped to; determining a target page based on the jump direction and the jump page number, the target page being the page after the jump; and controlling the screen to jump from the current page to the target page.
[0005] Optionally, the sliding parameter includes a sliding quantity, which is the number of fingers performing the sliding operation on the screen. The fingers include at least one of fingers and toes. Determining the jump page number based on the sliding parameter includes: obtaining the number of pages between the current page and the last page in the jump direction to obtain the remaining page number; determining the jump page number as the remaining page number if the sliding quantity is greater than the remaining page number; and determining the jump page number as the sliding quantity if the sliding quantity is less than or equal to the remaining page number.
[0006] Optionally, the sliding parameter includes a contact area, which is the area of contact between the palm and the screen. The palm includes at least one of the hand and the foot. Determining the number of pages to jump based on the sliding parameter includes: determining whether the contact area is greater than a first predetermined value; if the contact area is greater than the first predetermined value, obtaining the number of pages between the current page and the last page in the jumping direction to obtain the remaining number of pages; and determining the number of pages to jump as the remaining number of pages.
[0007] Optionally, the sliding parameter includes a pressure value, which is the pressure applied by the palm to the screen, wherein the palm includes at least one of the hand and the foot. Determining the number of pages to jump based on the sliding parameter includes: determining whether the pressure value is greater than a second predetermined value; if the pressure value is greater than the second predetermined value, obtaining the number of pages between the current page and the last page in the jumping direction to obtain the remaining number of pages; and determining the number of pages to jump as the remaining number of pages.
[0008] Optionally, the sliding parameters include a contact area and a pressure value. The contact area is the area of contact between the palm and the screen, and the pressure value is the pressure exerted by the palm on the screen. The palm includes at least one of the hand and the foot. Determining the number of pages to jump based on the sliding parameters includes: determining whether the contact area is greater than a third predetermined value and whether the pressure value is greater than a fourth predetermined value; if the contact area is greater than the third predetermined value and the pressure value is greater than the fourth predetermined value, obtaining the number of pages between the current page and the last page in the jumping direction to obtain the remaining number of pages; and determining the number of pages to jump as the remaining number of pages.
[0009] Optionally, the sliding parameters include the number of slides and the contact area. The number of slides is the number of fingers performing the sliding operation on the screen, and the fingers include at least one of fingers and toes. The contact area is the area between the palm and the screen, and the palm includes at least one of the hand and the foot. Determining the number of pages to jump based on the sliding parameters includes: if the contact area is greater than a first predetermined value, determining the number of pages to jump to be the sum of the number of slides and a preset threshold.
[0010] Optionally, determining the jump direction based on the sliding direction includes: when the sliding direction is from right to left, determining the jump direction to indicate a jump from the current page to a page after the current page; and when the sliding direction is from left to right, determining the jump direction to indicate a jump from the current page to a page before the current page.
[0011] According to another aspect of this application, a page switching device is provided, comprising: a first acquisition unit, configured to acquire a sliding direction corresponding to a sliding operation performed on a screen; a first determination unit, configured to determine a jump direction based on the sliding direction, the jump direction representing a jump from the current page to a page preceding or following the current page; a second acquisition unit, configured to acquire sliding parameters and determine a number of pages to jump based at least on the sliding parameters, the sliding parameters representing the contact between a limb and the screen during the sliding operation, and the number of pages to jump representing the number of pages to jump to; a second determination unit, configured to determine a target page based on the jump direction and the number of pages to jump, the target page being the page after the jump; and a control unit, configured to control the screen to jump from the current page to the target page.
[0012] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform any of the page switching methods described above.
[0013] According to another aspect of this application, an electronic device is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including a method for performing any of the page switching methods described above.
[0014] The technical solution of this application first responds to a swipe operation on the screen, obtaining the corresponding swipe direction and swipe parameters characterizing the contact between the limb and the screen during the swipe operation. Then, it determines the page jump direction based on the swipe direction and at least the number of pages to jump to based on the swipe parameters. Next, it determines the target page based on the jump direction and the number of pages to jump to, and finally controls the screen to jump from the current page to the target page. Compared to the prior art, where users need to switch pages one by one when there are many pages, resulting in low page switching efficiency, this application determines the target page the user wants to reach based on the swipe direction and swipe parameters corresponding to the swipe operation, and controls the screen to jump directly from the current page to the target page. This eliminates the need for users to switch pages one by one, simplifies the page switching operation, ensures high page switching efficiency, and provides a better user experience. Attached Figure Description
[0015] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:
[0016] Figure 1 A hardware structure block diagram of a mobile terminal for performing a page switching method according to an embodiment of this application is shown;
[0017] Figure 2 A flowchart illustrating a page switching method according to an embodiment of this application is shown.
[0018] Figure 3 A schematic diagram illustrating a page switching result according to an embodiment of this application is shown;
[0019] Figure 4 A flowchart illustrating a specific page switching method according to an embodiment of this application is shown.
[0020] Figure 5 A structural block diagram of a page switching device according to an embodiment of this application is shown.
[0021] The above figures include the following reference numerals:
[0022] 102. Processor; 104. Memory; 106. Transmission device; 108. Input / output device. Detailed Implementation
[0023] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0024] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0026] As described in the background section, the prior art suffers from low page switching efficiency because users need to switch pages one by one. To solve the above problem, embodiments of this application provide a page switching method, a switching device, a computer-readable storage medium, and an electronic device.
[0027] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
[0028] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a page switching method according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0029] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the page switching method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the aforementioned networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0030] This embodiment provides a method for switching pages running on a mobile terminal, computer terminal, or similar computing device. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0031] Figure 2 This is a flowchart of a page switching method according to an embodiment of this application. For example... Figure 2 As shown, the method includes the following steps:
[0032] Step S201: In response to a sliding operation on the screen, obtain the sliding direction corresponding to the sliding operation.
[0033] Specifically, the screen mentioned above can be a mobile phone screen, a tablet screen, or the screen of other devices that use page switching; this application does not impose any specific limitations on this. The swiping operation can be a dragging operation from one point on the screen to another, or a tapping operation on a predetermined area of the screen, such as tapping the left side of the screen to represent a left swipe, and tapping the right side of the screen to represent a right swipe, etc.
[0034] Step S202: Determine the jump direction based on the above sliding direction. The jump direction indicates jumping from the current page to the page before or after the current page.
[0035] Step S203: Obtain sliding parameters and determine the number of pages to jump based on at least the sliding parameters. The sliding parameters represent the contact between the limb and the screen during the sliding operation, and the number of pages to jump represents the number of pages to jump to.
[0036] Specifically, the aforementioned limbs can be hands, feet, or other limb parts capable of screen operation.
[0037] Step S204: Determine the target page based on the above-mentioned jump direction and the above-mentioned jump page number. The target page is the page after the jump.
[0038] Step S205: Control the screen to jump from the current page to the target page.
[0039] Through the above embodiments, firstly, in response to a swipe operation on the screen, the corresponding swipe direction and swipe parameters characterizing the contact between the limb and the screen during the swipe operation are obtained. Then, the page jump direction is determined based on the swipe direction, and at least the number of pages to jump to is determined based on the swipe parameters. Next, the target page is determined based on the jump direction and the number of pages to jump to. Finally, the screen is controlled to jump from the current page to the target page. Compared to the prior art, where users need to switch pages one by one when there are many pages, resulting in low page switching efficiency, this application determines the target page the user wants to reach based on the swipe direction and swipe parameters corresponding to the swipe operation, and controls the screen to jump directly from the current page to the target page. This eliminates the need for users to switch pages one by one, simplifies the page switching operation, ensures high page switching efficiency, and provides a better user experience.
[0040] In one optional embodiment, the sliding parameter includes a sliding quantity, which is the number of fingers performing the sliding operation on the screen. The fingers include at least one of fingers and toes. Determining the page jump number based on the sliding parameter includes: obtaining the number of pages between the current page and the last page in the jump direction to obtain the remaining page number; determining the page jump number as the remaining page number when the sliding quantity is greater than the remaining page number; and determining the page jump number as the sliding quantity when the sliding quantity is less than or equal to the remaining page number. In this embodiment, the sliding parameter includes a sliding quantity. Determining the page jump number as the remaining page number when the sliding quantity is greater than the remaining page number in the jump direction, and determining the page jump number as the sliding quantity when the sliding quantity is less than or equal to the remaining page number, considers both cases where the sliding quantity is greater than or equal to the remaining page number. This allows for adaptive page switching based on actual page browsing and user intent, meeting different user page switching needs, ensuring good switching effects, and further guaranteeing high page switching efficiency.
[0041] For example, such as Figure 3 As shown, when the arrow indicates that the user is swiping from right to left on the screen, and the jump direction indicates jumping from the current page to the page following the current page, the total number of pages is 9 (see the number of circles at the bottom of the page for details). The current page is page 1. When the user swipes with three fingers, the number of swipes is 3, and the number of remaining pages is 8. Since the number of swipes is less than the number of remaining pages, the screen jumps directly from the current page (page 1) to the target page (page 4).
[0042] For example, if the jump direction indicates a jump from the current page to the page following the current page, the total number of pages is 9, the current page is page 6, and when the user swipes with four fingers, the number of swipes is 4, and the number of remaining pages is 3. Since the number of swipes is greater than the number of remaining pages, the screen jumps directly from the current page (page 6) to the target page (page 9).
[0043] In other embodiments, the sliding parameter includes a contact area, which is the area of contact between the palm and the screen. The palm includes at least one of the hand and the foot. Determining the number of pages to jump based on the sliding parameter includes: determining whether the contact area is greater than a first predetermined value; if the contact area is greater than the first predetermined value, obtaining the number of pages between the current page and the last page in the jump direction to obtain the remaining number of pages; and determining the number of pages to jump as the remaining number of pages. In this embodiment, the sliding parameter includes a contact area. When the contact area is greater than the first predetermined value, the number of pages to jump is determined to be the remaining number of pages in the jump direction. That is, the user can perform a sliding operation with their palm. When the contact area between the palm and the screen is greater than the first predetermined value, the current page directly jumps to the last page in the jump direction. This further simplifies the page switching operation and ensures higher page switching efficiency, thereby further ensuring a better user experience.
[0044] In practical applications, those skilled in the art can set the first predetermined value based on experience, or obtain it through multiple experiments. This application does not impose any specific restrictions on this.
[0045] For example, when the jump direction represents a jump from the current page to the page following the current page, the total number of pages is 7, the current page is page 1, and the user swipes from the current page with their palm. When the contact area between the palm and the screen is greater than a first predetermined value, the screen jumps directly from the current page (page 1) to the target page (page 7); when the jump direction represents a jump from the current page to the page preceding the current page, the total number of pages is 7, the current page is page 7, and the user swipes from the current page with their palm. When the contact area between the palm and the screen is greater than a first predetermined value, the screen jumps directly from the current page (page 7) to the target page (page 1).
[0046] According to some exemplary embodiments of this application, the sliding parameters include a pressure value, which is the pressure applied by the palm to the screen. The palm includes at least one of the hand and the sole of the foot. Determining the number of pages to jump based on the sliding parameters includes: determining whether the pressure value is greater than a second predetermined value; if the pressure value is greater than the second predetermined value, obtaining the number of pages between the current page and the last page in the jumping direction to obtain the remaining number of pages; and determining the number of pages to jump as the remaining number of pages. In this embodiment, the sliding parameters include a pressure value. When the pressure value is greater than the second predetermined value, the number of pages to jump is determined to be the remaining number of pages in the jumping direction, allowing the user to perform a sliding operation with the palm. When the pressure value applied by the palm to the screen is greater than the second predetermined value, the current page directly jumps to the last page in the jumping direction, further ensuring high page switching efficiency.
[0047] In practical applications, those skilled in the art can set the above-mentioned second predetermined value based on experience, or obtain it through multiple experiments. This application does not impose any specific restrictions on this.
[0048] In another exemplary embodiment, the sliding parameters include a contact area and a pressure value. The contact area is the area of contact between the palm and the screen, and the pressure value is the pressure exerted by the palm on the screen. The palm includes at least one of the hand and the foot. Determining the number of pages to jump based on the sliding parameters includes: determining whether the contact area is greater than a third predetermined value and whether the pressure value is greater than a fourth predetermined value; if the contact area is greater than the third predetermined value and the pressure value is greater than the fourth predetermined value, obtaining the number of pages between the current page and the last page in the jumping direction to obtain the remaining number of pages; and determining the number of pages to jump as the remaining number of pages. In this embodiment, the sliding parameters include contact area and pressure value. When the contact area is greater than a third predetermined value and the pressure value is greater than a fourth predetermined value, the number of pages to jump to is determined to be the remaining number of pages in the jump direction. This allows the user to initiate the page jump operation simultaneously based on the contact area and pressure value when performing a sliding operation with their palm. That is, not only must the condition that the contact area is greater than the third predetermined value be met, but the condition that the pressure value is greater than the fourth predetermined value must also be met for the screen to jump directly from the current page to the last page in the jump direction. This further ensures that the page switching is more accurate and the page switching efficiency is higher.
[0049] Specifically, the third predetermined value may be the same as or different from the first predetermined value; the fourth predetermined value may be the same as or different from the second predetermined value.
[0050] In practical applications, those skilled in the art can set the above-mentioned third and fourth predetermined values based on experience, or obtain them through multiple experiments. This application does not impose any specific restrictions on this.
[0051] To further ensure high page switching efficiency, according to some exemplary embodiments of this application, the aforementioned sliding parameters include a sliding quantity and a contact area. The sliding quantity is the number of fingers performing the sliding operation on the screen, and the fingers include at least one of fingers and toes. The contact area is the area of contact between the palm and the screen, and the palm includes at least one of the hand and the foot. Determining the number of pages to jump based on the aforementioned sliding parameters includes: when the contact area is greater than a first predetermined value, determining the number of pages to jump as the sum of the sliding quantity and a preset threshold. In this embodiment, the sliding parameters include a sliding quantity and a contact area. When the contact area is greater than a first predetermined value, the number of pages to jump is determined to be the sum of the sliding quantity and the preset threshold. When there are many pages, the user can perform sliding operations with both fingers and palm simultaneously. When the contact area between the palm and the screen is greater than the first predetermined value, the number of pages to jump is determined to be the sum of the sliding quantity and the preset threshold, further ensuring a better page switching effect and higher page switching efficiency.
[0052] In practical applications, those skilled in the art can set the above-mentioned preset threshold based on experience, or obtain it through multiple experiments. This application does not impose any specific restrictions on this.
[0053] For example, if the jump direction represents a jump from the current page to the page following the current page, the total number of pages is 15, the current page is page 3, the preset threshold is 5, and the user simultaneously performs a swipe operation with their palm and two fingers, then the number of swipes is 2. When the contact area between the palm and the screen is greater than the first predetermined value, the screen jumps directly from the current page (page 3) to the target page (page 10).
[0054] In other embodiments, the sliding parameters include a sliding quantity and a pressure value. The sliding quantity refers to the number of fingers performing the sliding operation on the screen, where the fingers include at least one of the fingers and toes. The pressure value is the pressure applied by the palm to the screen, where the palm includes at least one of the hand and the foot. Determining the page jump number based on the sliding parameters includes: if the pressure value is greater than a second predetermined value, determining the page jump number as the sum of the sliding quantity and a preset threshold. In this embodiment, the sliding parameters include a sliding quantity and a pressure value. When the pressure value is greater than a second predetermined value, the page jump number is determined to be the sum of the sliding quantity and a preset threshold. When there are many pages, the user can perform sliding operations with both fingers and palm simultaneously. When the pressure value applied by the palm to the screen is greater than the second predetermined value, the page jump number is determined to be the sum of the sliding quantity and the preset threshold, further ensuring a better page switching effect and higher page switching efficiency.
[0055] In other embodiments, the sliding parameters include the number of slides, the contact area, and the pressure value. The number of slides is the number of fingers performing the sliding operation on the screen, and the fingers include at least one of fingers and toes. The contact area is the area of contact between the palm and the screen. The pressure value is the pressure applied by the palm to the screen, and the palm includes at least one of the hand and the foot. Determining the number of pages to jump based on the sliding parameters includes: if the contact area is greater than a third predetermined value and the pressure value is greater than a fourth predetermined value, determining the number of pages to jump to be the sum of the number of slides and a preset threshold. In this embodiment, the sliding parameters include the number of slides, the contact area, and the pressure value. When the contact area is greater than a third predetermined value and the pressure value is greater than a fourth predetermined value, the number of pages to jump is determined to be the sum of the number of slides and a preset threshold. When there are many pages, the user can perform sliding operations with both their finger and palm simultaneously. When the contact area between the palm and the screen is greater than a third predetermined value and the pressure value applied by the palm to the screen is greater than a fourth predetermined value, the number of pages to jump is determined to be the sum of the number of slides and the preset threshold. This further ensures a better page switching effect and higher page switching efficiency.
[0056] In some alternative embodiments of this application, determining the jump direction based on the aforementioned sliding direction includes: when the sliding direction is from right to left, determining the jump direction indicates a jump from the current page to a page following the current page; when the sliding direction is from left to right, determining the jump direction indicates a jump from the current page to a page preceding the current page. In this embodiment, when the sliding direction is from right to left, determining the jump direction indicates a jump from the current page to a page following the current page; conversely, when the sliding direction is from left to right, determining the jump direction indicates a jump from the current page to a page preceding the current page, thus preparing for subsequent determination of the target page based on the jump direction.
[0057] For example, if there are 7 pages in total and the current page is page 1, when the user swipes from right to left with three fingers, the screen will jump directly from the current page (page 1) to the target page (page 4).
[0058] Of course, in addition to the above-mentioned scheme for determining the jump direction, in other embodiments, determining the jump direction based on the above-mentioned sliding direction includes: when the above-mentioned sliding direction is from right to left, determining the jump direction to indicate a jump from the current page to the page preceding the current page; when the above-mentioned sliding direction is from left to right, determining the jump direction to indicate a jump from the current page to the page following the current page.
[0059] For example, if there are 7 pages in total and the current page is page 5, when the user swipes from right to left with three fingers, the screen will jump directly from the current page (page 5) to the target page (page 2).
[0060] To enable those skilled in the art to better understand the technical solution of this application, the implementation process of the page switching method of this application will be described in detail below with reference to specific embodiments.
[0061] This embodiment relates to a specific page switching method, such as... Figure 4 As shown, it includes the following steps:
[0062] Step S1: In response to a swipe operation on the screen, obtain the swipe direction corresponding to the swipe operation;
[0063] Step S2: When the swipe direction is from right to left, the jump direction is determined to indicate a jump from the current page to the page after the current page; when the swipe direction is from left to right, the jump direction is determined to indicate a jump from the current page to the page before the current page.
[0064] Step S3: Obtain the number of swipes corresponding to the swipe operation. The number of swipes is the number of fingers that perform the swipe operation on the screen.
[0065] Step S4: Obtain the number of pages between the current page and the last page in the jump direction, and get the remaining page number. If the number of slides is greater than the remaining page number, determine the jump page number as the remaining page number. If the number of slides is less than or equal to the remaining page number, determine the jump page number as the number of slides.
[0066] Step S5: Determine the target page based on the jump direction and page number. The target page is the page after the jump.
[0067] Step S6: Control the screen to jump from the current page to the target page.
[0068] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0069] This application also provides a page switching device. It should be noted that the page switching device of this application can be used to execute the page switching method provided in this application. This device is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0070] The following describes the page switching device provided in the embodiments of this application.
[0071] Figure 5 This is a schematic diagram of a page switching device according to an embodiment of this application. Figure 5 As shown, the device includes:
[0072] The first acquisition unit 10 is used to acquire the sliding direction corresponding to the sliding operation in response to the sliding operation on the screen.
[0073] Specifically, the screen mentioned above can be a mobile phone screen, a tablet screen, or the screen of other devices that use page switching; this application does not impose any specific limitations on this. The swiping operation can be a dragging operation from one point on the screen to another, or a tapping operation on a predetermined area of the screen, such as tapping the left side of the screen to represent a left swipe, and tapping the right side of the screen to represent a right swipe, etc.
[0074] The first determining unit 20 is used to determine the jump direction based on the above sliding direction, wherein the jump direction represents jumping from the current page to the page before or after the current page.
[0075] The second acquisition unit 30 is used to acquire sliding parameters and determine the number of pages to jump based on the sliding parameters. The sliding parameters represent the contact between the limb and the screen during the sliding operation, and the number of pages to jump represents the number of pages to jump to.
[0076] Specifically, the aforementioned limbs can be hands, feet, or other limb parts capable of screen operation.
[0077] The second determining unit 40 is used to determine the target page based on the above-mentioned jump direction and the above-mentioned jump page number, wherein the target page is the page after the jump;
[0078] Control unit 50 is used to control the screen to jump from the current page to the target page.
[0079] In the above embodiments, the first acquisition unit responds to a sliding operation on the screen by acquiring the corresponding sliding direction, the first determination unit determines the page jump direction based on the sliding direction, the second acquisition unit acquires sliding parameters characterizing the contact between the limb and the screen during the sliding operation, and determines at least the number of pages to jump based on the sliding parameters, the second determination unit determines the target page based on the jump direction and the number of pages to jump, and the control unit controls the screen to jump from the current page to the target page. Compared with the prior art, where users need to switch pages one by one when there are many pages, resulting in low page switching efficiency, this application determines the target page that the user wants to reach based on the sliding direction and sliding parameters corresponding to the sliding operation, and controls the screen to jump directly from the current page to the target page. This eliminates the need for users to switch pages one by one, simplifies the page switching operation, ensures high page switching efficiency, and provides a better user experience.
[0080] In one alternative embodiment, the sliding parameter includes a sliding quantity, which is the number of fingers performing the sliding operation on the screen. The fingers include at least one of fingers and toes. The second acquisition unit includes: a first acquisition module, configured to acquire the number of pages between the current page and the last page in the jump direction to obtain the remaining page number; a first determination module, configured to determine the jump page number as the remaining page number when the sliding quantity is greater than the remaining page number; and a second determination module, configured to determine the jump page number as the sliding quantity when the sliding quantity is less than or equal to the remaining page number. In this embodiment, the sliding parameter includes the sliding quantity. When the sliding quantity is greater than the remaining number of pages in the jump direction, the jump page number is determined to be the remaining page number. When the sliding quantity is less than or equal to the remaining page number, the jump page number is determined to be the sliding quantity. This takes into account both the case where the sliding quantity is greater than the remaining page number and the case where the sliding quantity is less than or equal to the remaining page number. It can adapt the page switching according to the actual page browsing situation and user intent to meet different user page switching needs, ensuring a good switching effect and further ensuring high page switching efficiency.
[0081] For example, such as Figure 3 As shown, when the arrow indicates that the user is swiping from right to left on the screen, and the jump direction indicates jumping from the current page to the page following the current page, the total number of pages is 9 (see the number of circles at the bottom of the page for details). The current page is page 1. When the user swipes with three fingers, the number of swipes is 3, and the number of remaining pages is 8. Since the number of swipes is less than the number of remaining pages, the screen jumps directly from the current page (page 1) to the target page (page 4).
[0082] For example, if the jump direction indicates a jump from the current page to the page following the current page, the total number of pages is 9, the current page is page 6, and when the user swipes with four fingers, the number of swipes is 4, and the number of remaining pages is 3. Since the number of swipes is greater than the number of remaining pages, the screen jumps directly from the current page (page 6) to the target page (page 9).
[0083] In other embodiments, the sliding parameter includes a contact area, which is the area of contact between the palm and the screen. The palm includes at least one of the hand and the foot. The second acquisition unit includes: a third determining module, used to determine whether the contact area is greater than a first predetermined value; a second acquisition module, used to acquire the number of pages between the current page and the last page in the jump direction when the contact area is greater than the first predetermined value, to obtain the remaining page number; and a fourth determining module, used to determine that the jump page number is the remaining page number. In this embodiment, the sliding parameter includes a contact area. When the contact area is greater than the first predetermined value, the jump page number is determined to be the remaining page number in the jump direction. That is, the user can perform a sliding operation with the palm. When the contact area between the palm and the screen is greater than the first predetermined value, the current page directly jumps to the last page in the jump direction, further simplifying the page switching operation and ensuring higher page switching efficiency, thereby further ensuring a better user experience.
[0084] In practical applications, those skilled in the art can set the first predetermined value based on experience, or obtain it through multiple experiments. This application does not impose any specific restrictions on this.
[0085] For example, when the jump direction represents a jump from the current page to the page following the current page, the total number of pages is 7, the current page is page 1, and the user swipes from the current page with their palm. When the contact area between the palm and the screen is greater than a first predetermined value, the screen jumps directly from the current page (page 1) to the target page (page 7); when the jump direction represents a jump from the current page to the page preceding the current page, the total number of pages is 7, the current page is page 7, and the user swipes from the current page with their palm. When the contact area between the palm and the screen is greater than a first predetermined value, the screen jumps directly from the current page (page 7) to the target page (page 1).
[0086] According to some exemplary embodiments of this application, the sliding parameter includes a pressure value, which is the pressure applied by the palm to the screen. The palm includes at least one of the hand and the sole of the foot. The second acquisition unit includes: a fifth determining module, used to determine whether the pressure value is greater than a second predetermined value; a third acquiring module, used to acquire the number of pages between the current page and the last page in the jumping direction when the pressure value is greater than the second predetermined value, to obtain the remaining page number; and a sixth determining module, used to determine that the number of pages to jump to is the remaining page number. In this embodiment, the sliding parameter includes a pressure value. When the pressure value is greater than the second predetermined value, the number of pages to jump to is determined to be the remaining page number in the jumping direction, so that the user can also perform a sliding operation with the palm. When the pressure value applied by the palm to the screen is greater than the second predetermined value, the current page directly jumps to the last page in the jumping direction, further ensuring high page switching efficiency.
[0087] In practical applications, those skilled in the art can set the above-mentioned second predetermined value based on experience, or obtain it through multiple experiments. This application does not impose any specific restrictions on this.
[0088] In another exemplary embodiment, the sliding parameters include a contact area and a pressure value. The contact area is the area of contact between the palm and the screen, and the pressure value is the pressure exerted by the palm on the screen. The palm includes at least one of the hand and the foot. The second acquisition unit includes: a seventh determining module, configured to determine whether the contact area is greater than a third predetermined value and whether the pressure value is greater than a fourth predetermined value; a fourth acquiring module, configured to acquire the number of pages between the current page and the last page in the jump direction, and obtain the remaining page number, when the contact area is greater than the third predetermined value and the pressure value is greater than the fourth predetermined value; and an eighth determining module, configured to determine that the number of jump pages is the remaining page number. In this embodiment, the sliding parameters include contact area and pressure value. When the contact area is greater than a third predetermined value and the pressure value is greater than a fourth predetermined value, the number of pages to jump to is determined to be the remaining number of pages in the jump direction. This allows the user to initiate the page jump operation simultaneously based on the contact area and pressure value when performing a sliding operation with their palm. That is, not only must the condition that the contact area is greater than the third predetermined value be met, but the condition that the pressure value is greater than the fourth predetermined value must also be met for the screen to jump directly from the current page to the last page in the jump direction. This further ensures that the page switching is more accurate and the page switching efficiency is higher.
[0089] Specifically, the third predetermined value may be the same as or different from the first predetermined value; the fourth predetermined value may be the same as or different from the second predetermined value.
[0090] In practical applications, those skilled in the art can set the above-mentioned third and fourth predetermined values based on experience, or obtain them through multiple experiments. This application does not impose any specific restrictions on this.
[0091] To further ensure high page switching efficiency, according to some exemplary embodiments of this application, the aforementioned sliding parameters include the number of slides and the contact area. The number of slides is the number of fingers performing the sliding operation on the screen, and the fingers include at least one of fingers and toes. The contact area is the area of contact between the palm and the screen, and the palm includes at least one of the hand and the foot. The second acquisition unit includes a ninth determining module, used to determine that the number of pages to jump is the sum of the number of slides and a preset threshold when the contact area is greater than a first predetermined value. In this embodiment, the sliding parameters include the number of slides and the contact area. When the contact area is greater than the first predetermined value, the number of pages to jump is determined to be the sum of the number of slides and the preset threshold. When there are many pages, the user can perform sliding operations with both fingers and palm simultaneously. When the contact area between the palm and the screen is greater than the first predetermined value, the number of pages to jump is determined to be the sum of the number of slides and the preset threshold, further ensuring a better page switching effect and higher page switching efficiency.
[0092] In practical applications, those skilled in the art can set the above-mentioned preset threshold based on experience, or obtain it through multiple experiments. This application does not impose any specific restrictions on this.
[0093] For example, if the jump direction represents a jump from the current page to the page following the current page, the total number of pages is 15, the current page is page 3, the preset threshold is 5, and the user simultaneously performs a swipe operation with their palm and two fingers, then the number of swipes is 2. When the contact area between the palm and the screen is greater than the first predetermined value, the screen jumps directly from the current page (page 3) to the target page (page 10).
[0094] In other embodiments, the sliding parameters include a sliding quantity and a pressure value. The sliding quantity is the number of fingers performing the sliding operation on the screen, and the fingers include at least one of fingers and toes. The pressure value is the pressure applied by the palm to the screen, and the palm includes at least one of the hand and the foot. The second acquisition unit includes a tenth determining module, used to determine that the number of pages to jump is the sum of the sliding quantity and a preset threshold when the pressure value is greater than a second predetermined value. In this embodiment, the sliding parameters include a sliding quantity and a pressure value. When the pressure value is greater than the second predetermined value, the number of pages to jump is determined to be the sum of the sliding quantity and the preset threshold. When there are many pages, the user can perform sliding operations with both fingers and palms simultaneously. When the pressure value applied by the palm to the screen is greater than the second predetermined value, the number of pages to jump is determined to be the sum of the sliding quantity and the preset threshold, further ensuring a better page switching effect and higher page switching efficiency.
[0095] In other embodiments, the sliding parameters include the number of slides, the contact area, and the pressure value. The number of slides is the number of fingers performing the sliding operation on the screen, and the fingers include at least one of fingers and toes. The contact area is the area of contact between the palm and the screen. The pressure value is the pressure applied by the palm to the screen, and the palm includes at least one of the hand and the foot. The second acquisition unit includes an eleventh determination module, used to determine that the number of page jumps is the sum of the number of slides and a preset threshold when the contact area is greater than a third predetermined value and the pressure value is greater than a fourth predetermined value. In this embodiment, the sliding parameters include the number of slides, the contact area, and the pressure value. When the contact area is greater than a third predetermined value and the pressure value is greater than a fourth predetermined value, the number of pages to jump is determined to be the sum of the number of slides and a preset threshold. When there are many pages, the user can perform sliding operations with both their finger and palm simultaneously. When the contact area between the palm and the screen is greater than a third predetermined value and the pressure value applied by the palm to the screen is greater than a fourth predetermined value, the number of pages to jump is determined to be the sum of the number of slides and the preset threshold. This further ensures a better page switching effect and higher page switching efficiency.
[0096] In some alternative embodiments of this application, the first determining unit includes: a twelfth determining module, used to determine, when the sliding direction is from right to left, that the jump direction represents a jump from the current page to a page following the current page; and a thirteenth determining module, used to determine, when the sliding direction is from left to right, that the jump direction represents a jump from the current page to a page preceding the current page. In this embodiment, when the sliding direction is from right to left, the jump direction is determined to represent a jump from the current page to a page following the current page; conversely, when the sliding direction is from left to right, the jump direction is determined to represent a jump from the current page to a page preceding the current page, thus preparing for subsequent determination of the target page based on the jump direction.
[0097] For example, if there are 7 pages in total and the current page is page 1, when the user swipes from right to left with three fingers, the screen will jump directly from the current page (page 1) to the target page (page 4).
[0098] Of course, in addition to the above-mentioned scheme for determining the jump direction, in other embodiments, the first determining unit includes: a fourteenth determining module, used to determine that the jump direction represents a jump from the current page to the page preceding the current page when the sliding direction is from right to left; and a fifteenth determining module, used to determine that the jump direction represents a jump from the current page to the page following the current page when the sliding direction is from left to right.
[0099] For example, if there are 7 pages in total and the current page is page 5, when the user swipes from right to left with three fingers, the screen will jump directly from the current page (page 5) to the target page (page 2).
[0100] The page switching device includes a processor and a memory. The first acquisition unit, the first determination unit, the second acquisition unit, the second determination unit, and the control unit are all stored as program units in the memory. The processor executes the program units stored in the memory to achieve the corresponding functions. All of the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0101] This invention provides a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform the page switching method.
[0102] Specifically, the methods for switching pages include:
[0103] Step S201: In response to a sliding operation on the screen, obtain the sliding direction corresponding to the sliding operation.
[0104] Specifically, the screen mentioned above can be a mobile phone screen, a tablet screen, or the screen of other devices that use page switching; this application does not impose any specific limitations on this. The swiping operation can be a dragging operation from one point on the screen to another, or a tapping operation on a predetermined area of the screen, such as tapping the left side of the screen to represent a left swipe, and tapping the right side of the screen to represent a right swipe, etc.
[0105] Step S202: Determine the jump direction based on the above sliding direction. The jump direction indicates jumping from the current page to the page before or after the current page.
[0106] Step S203: Obtain sliding parameters and determine the number of pages to jump based on at least the sliding parameters. The sliding parameters represent the contact between the limb and the screen during the sliding operation, and the number of pages to jump represents the number of pages to jump to.
[0107] Specifically, the aforementioned limbs can be hands, feet, or other limb parts capable of screen operation.
[0108] Step S204: Determine the target page based on the above-mentioned jump direction and the above-mentioned jump page number. The target page is the page after the jump.
[0109] Step S205: Control the screen to jump from the current page to the target page.
[0110] Optionally, the aforementioned sliding parameters include a sliding quantity, which is the number of fingers performing the sliding operation on the screen. The fingers include at least one of fingers and toes. Determining the jump page number based on the aforementioned sliding parameters includes: obtaining the number of pages between the current page and the last page in the jump direction to obtain the remaining page number; if the sliding quantity is greater than the remaining page number, determining the jump page number as the remaining page number; if the sliding quantity is less than or equal to the remaining page number, determining the jump page number as the sliding quantity.
[0111] Optionally, the sliding parameters include a contact area, which is the area of contact between the palm and the screen. The palm includes at least one of the hand and the foot. Determining the number of pages to jump based on the sliding parameters includes: determining whether the contact area is greater than a first predetermined value; if the contact area is greater than the first predetermined value, obtaining the number of pages between the current page and the last page in the jumping direction to obtain the remaining number of pages; and determining the number of pages to jump as the remaining number of pages.
[0112] Optionally, the sliding parameters include a pressure value, which is the pressure applied by the palm to the screen. The palm includes at least one of the hand and the foot. Determining the number of pages to jump based on the sliding parameters includes: determining whether the pressure value is greater than a second predetermined value; if the pressure value is greater than the second predetermined value, obtaining the number of pages between the current page and the last page in the jumping direction to obtain the remaining number of pages; and determining the number of pages to jump as the remaining number of pages.
[0113] Optionally, the sliding parameters include contact area and pressure value. The contact area is the area of contact between the palm and the screen, and the pressure value is the pressure exerted by the palm on the screen. The palm includes at least one of the hand and the foot. Determining the number of pages to jump based on the sliding parameters includes: determining whether the contact area is greater than a third predetermined value and whether the pressure value is greater than a fourth predetermined value; if the contact area is greater than the third predetermined value and the pressure value is greater than the fourth predetermined value, obtaining the number of pages between the current page and the last page in the jumping direction to obtain the remaining number of pages; and determining the number of pages to jump as the remaining number of pages.
[0114] Optionally, the sliding parameters include the number of slides and the contact area. The number of slides is the number of fingers performing the sliding operation on the screen, and the fingers include at least one of fingers and toes. The contact area is the area of contact between the palm and the screen, and the palm includes at least one of the hand and the foot. Determining the number of pages to jump based on the sliding parameters includes: if the contact area is greater than a first predetermined value, determining the number of pages to jump to be the sum of the number of slides and a preset threshold.
[0115] Optionally, determining the jump direction based on the above sliding direction includes: when the sliding direction is from right to left, determining the jump direction to indicate a jump from the current page to a page after the current page; when the sliding direction is from left to right, determining the jump direction to indicate a jump from the current page to a page before the current page.
[0116] Embodiments of the present invention also provide an electronic device, including: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include a method for performing any of the above-described page switching methods.
[0117] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0118] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0119] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0120] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1The function specified in one or more boxes.
[0121] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0122] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0123] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0124] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0125] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0126] As can be seen from the above description, the embodiments of this application achieve the following technical effects:
[0127] 1) In the page switching method of this application, firstly, in response to a swipe operation on the screen, the corresponding swipe direction and swipe parameters representing the contact between the limb and the screen during the swipe operation are obtained. Then, the page jump direction is determined based on the swipe direction, and at least the number of pages to jump to is determined based on the swipe parameters. Next, the target page is determined based on the jump direction and the number of pages to jump to. Finally, the screen is controlled to jump from the current page to the target page. Compared to the prior art, where users need to switch pages one by one when there are many pages, resulting in low page switching efficiency, this application determines the target page the user wants to reach based on the swipe direction and swipe parameters corresponding to the swipe operation, and controls the screen to jump directly from the current page to the target page. This eliminates the need for users to switch pages one by one, simplifies the page switching operation, ensures high page switching efficiency, and provides a better user experience.
[0128] 2) In the page switching device of this application, the first acquisition unit responds to the sliding operation on the screen to acquire the corresponding sliding direction, the first determination unit determines the page jump direction based on the sliding direction, the second acquisition unit acquires the sliding parameters characterizing the contact between the limb and the screen during the sliding operation, and determines at least the number of pages to jump based on the sliding parameters, the second determination unit determines the target page based on the jump direction and the number of pages to jump, and the control unit controls the screen to jump from the current page to the target page. Compared with the prior art, where users need to switch pages one by one when there are many pages, resulting in low page switching efficiency, this application determines the target page that the user wants to reach based on the sliding direction and sliding parameters corresponding to the sliding operation, and controls the screen to jump directly from the current page to the target page. This eliminates the need for users to switch pages one by one, simplifies the page switching operation, ensures high page switching efficiency, and provides a better user experience.
[0129] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for switching pages, characterized in that, include: In response to a swipe operation on the screen, the swipe direction corresponding to the swipe operation is obtained; The jump direction is determined based on the sliding direction, whereby the jump direction indicates a jump from the current page to a page before or after the current page. Obtain sliding parameters and determine the number of pages to jump based on at least the sliding parameters, wherein the sliding parameters represent the contact between the limb and the screen during the sliding operation, and the number of pages to jump represents the number of pages to jump to; The target page is determined based on the jump direction and the jump page number, where the target page is the page after the jump; Control the screen to jump from the current page to the target page; The sliding parameters include the number of slides, which is the number of fingers performing the sliding operation on the screen. The fingers include at least one of fingers and toes. Determining the number of pages to jump based on the sliding parameters includes: obtaining the number of pages between the current page and the last page in the jumping direction, and obtaining the remaining number of pages. If the number of slides is greater than the number of remaining pages, the number of pages to jump to is determined to be the number of remaining pages; if the number of slides is less than or equal to the number of remaining pages, the number of pages to jump to is determined to be the number of slides.
2. The page switching method according to claim 1, characterized in that, The sliding parameters include the contact area, which is the area of contact between the palm and the screen. The palm includes at least one of the hand and the sole. Determining the page jump number based on the sliding parameters includes: Determine whether the contact area is greater than a first predetermined value; If the contact area is greater than the first predetermined value, the number of pages between the current page and the last page in the jump direction is obtained to get the remaining number of pages; The number of pages to jump to is determined to be the number of remaining pages.
3. The page switching method according to claim 1, characterized in that, The sliding parameters include a pressure value, which is the pressure applied by the palm to the screen. The palm includes at least one of the hand and the sole of the foot. Determining the page jump number based on at least the sliding parameters includes: Determine whether the pressure value is greater than a second predetermined value; If the pressure value is greater than the second predetermined value, the number of pages between the current page and the last page in the jump direction is obtained to get the remaining number of pages; The number of pages to jump to is determined to be the number of remaining pages.
4. The page switching method according to claim 1, characterized in that, The sliding parameters include contact area and pressure value. The contact area is the area of contact between the palm and the screen, and the pressure value is the pressure exerted by the palm on the screen. The palm includes at least one of the hand and the foot. Determining the page jump number based on at least the sliding parameters includes: Determine whether the contact area is greater than a third predetermined value, and determine whether the pressure value is greater than a fourth predetermined value; If the contact area is greater than the third predetermined value and the pressure value is greater than the fourth predetermined value, the number of pages between the current page and the last page in the jump direction is obtained to get the remaining number of pages; The number of pages to jump to is determined to be the number of remaining pages.
5. The page switching method according to claim 1, characterized in that, The sliding parameters include the number of slides and the contact area. The number of slides is the number of fingers performing the sliding operation on the screen, and the fingers include at least one of fingers and toes. The contact area is the area between the palm and the screen, and the palm includes at least one of the hand and the foot. Determining the number of pages to jump based on at least the sliding parameters includes: If the contact area is greater than a first predetermined value, the number of pages to jump is determined to be the sum of the number of slides and a preset threshold.
6. The page switching method according to any one of claims 1 to 5, characterized in that, Determining the jump direction based on the sliding direction includes: When the sliding direction is from right to left, the jump direction indicates a jump from the current page to a page following the current page; When the swiping direction is from left to right, the jump direction indicates a jump from the current page to the page preceding the current page.
7. A page switching device, characterized in that, include: The first acquisition unit is used to acquire the sliding direction corresponding to the sliding operation in response to the sliding operation performed on the screen; The first determining unit is used to determine the jump direction based on the sliding direction, wherein the jump direction represents jumping from the current page to a page before or after the current page; The second acquisition unit is used to acquire sliding parameters and determine the number of pages to jump based on the sliding parameters. The sliding parameters represent the contact between the limb and the screen during the sliding operation, and the number of pages to jump represents the number of pages to jump to. The second determining unit is used to determine the target page based on the jump direction and the jump page number, wherein the target page is the page after the jump; A control unit is used to control the screen to jump from the current page to the target page; The sliding parameters include a sliding quantity, which is the number of fingers performing the sliding operation on the screen. The fingers include at least one of fingers and toes. The second acquisition unit includes: a first acquisition module, used to acquire the number of pages between the current page and the last page in the jump direction to obtain the remaining page number; a first determination module, used to determine the jump page number as the remaining page number when the sliding quantity is greater than the remaining page number; and a second determination module, used to determine the jump page number as the sliding quantity when the sliding quantity is less than or equal to the remaining page number.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the page switching method according to any one of claims 1 to 6.
9. An electronic device, characterized in that, include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including a page switching method for performing any one of claims 1 to 6.
Citation Information
Patent Citations
Website data docking method and device, storage medium, processor and electronic equipment
CN109948074A
Electronic equipment
CN205263700U