CN106293405B - Page moving method and device - Google Patents

Page moving method and device Download PDF

Info

Publication number
CN106293405B
CN106293405B CN201610599621.5A CN201610599621A CN106293405B CN 106293405 B CN106293405 B CN 106293405B CN 201610599621 A CN201610599621 A CN 201610599621A CN 106293405 B CN106293405 B CN 106293405B
Authority
CN
China
Prior art keywords
page
sliding
moving direction
sliding operation
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610599621.5A
Other languages
Chinese (zh)
Other versions
CN106293405A (en
Inventor
左景龙
王石成
於一飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610599621.5A priority Critical patent/CN106293405B/en
Publication of CN106293405A publication Critical patent/CN106293405A/en
Application granted granted Critical
Publication of CN106293405B publication Critical patent/CN106293405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a method and a device for page movement, wherein the method comprises the following steps: when the area of the current page displayed on the screen of the terminal is larger than the area of the screen, determining the page moving direction corresponding to the sliding angle of the first sliding operation according to the mapping relation between the preset sliding angle interval and the page moving direction, and moving the current page according to the determined page moving direction. According to the method, even if the sliding angle of the first sliding operation is deviated from the actual page moving direction of the user, the actual page moving direction of the user can be accurately determined as long as the sliding angle of the first sliding operation belongs to the sliding angle interval corresponding to the actual page moving direction of the user, and the user experience is improved.

Description

Page moving method and device
Technical Field
The present disclosure relates to electronic technologies, and in particular, to a method and an apparatus for moving a page.
Background
The intelligent terminal is more and more common, and when the user browsed the webpage using intelligent terminal, if the height and the width of page were greater than intelligent terminal's screen, intelligent terminal's screen could not show complete page, and the user need slide operation on the screen in order to remove the page, just can see the content on the page. When the user performs the sliding operation, the page moves exactly according to the sliding angle of the user, for example, when the user needs to move the page in the right-to-right direction, the user needs to strictly slide right on the screen, and at this time, if the user performs the operation deviating from the right-to-right direction, for example, the sliding operation deviates from the right-to-right direction by 20 degrees, the page not only moves to the right, but also moves upward.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method and apparatus for page moving.
According to a first aspect of the embodiments of the present disclosure, there is provided a page moving method, including:
when the area of a current page displayed on a screen of a terminal is larger than that of the screen and the terminal is in a first mobile mode, receiving a first sliding operation input by a user on the current page;
determining a sliding angle of the first sliding operation;
determining a page moving direction corresponding to the sliding angle of the first sliding operation according to the mapping relation between the sliding angle interval and the page moving direction;
and moving the current page according to the page moving direction corresponding to the sliding angle of the first sliding operation.
According to the method, even if the sliding angle of the first sliding operation is deviated from the actual page moving direction of the user, the actual page moving direction of the user can be accurately determined as long as the sliding angle of the first sliding operation belongs to the sliding angle interval corresponding to the actual page moving direction of the user, and the user experience is improved.
Optionally, the method further includes:
receiving a first switching command input by a user on the current page;
switching the movement mode of the terminal from the first movement mode to a second movement mode according to the first switching command;
receiving a second sliding operation input by a user on the current page in the second moving mode;
determining a sliding angle of the second sliding operation;
and moving the current page according to the sliding angle of the second sliding operation.
According to the method, the mobile mode of the terminal is switched from the first mobile mode to the second mobile mode according to the first switching command input by the user, and the terminal moves the current page according to the sliding angle in the second mobile mode, so that flexible switching between the two mobile modes is realized, and the user experience is further improved.
Optionally, the method further includes:
receiving a second switching command input by a user on the current page;
and switching the mobile mode of the terminal from the second mobile mode to the first mobile mode according to the second switching command.
According to the method, the mobile mode of the terminal is switched from the second mobile mode to the first mobile mode according to the second switching command input by the user, so that flexible switching of the two mobile modes is realized, and the user experience is further improved.
Optionally, the first sliding operation is a single-finger sliding operation, and the second sliding operation is a double-finger sliding operation;
or, the first sliding operation is a double-finger sliding operation, and the second sliding operation is a single-finger sliding operation;
or both the first sliding operation and the second sliding operation are single-finger sliding operations;
or, the first sliding operation and the second sliding operation are both double-finger sliding operations.
Optionally, the mapping relationship between the sliding angle interval and the page moving direction includes:
when the sliding angle section is (0, 45 ° ] or (315, 360 ° ], the page moving direction is rightward;
when the sliding angle interval is (45 °, 135 ° ], the page moving direction is upward;
when the sliding angle interval is (135 °, 225 ° ], the page moving direction is leftward;
when the sliding angle interval is (225 °, 315 ° ], the page moving direction is downward.
Optionally, the mapping relationship between the sliding angle interval and the page moving direction includes:
when the sliding angle interval is (0 °, 180 ° ], the page moving direction is upward;
when the sliding angle section is (180 °, 360 ° ], the page moving direction is downward.
Optionally, the mapping relationship between the sliding angle interval and the page moving direction includes:
when the sliding angle interval is (0 °, 90 ° ] or (270 °, 360 ° ], the page moving direction is rightward;
when the sliding angle section is (90 °, 270 ° ], the page moving direction is leftward.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for page moving, including:
the terminal comprises a first receiving module, a second receiving module and a display module, wherein the first receiving module is configured to receive a first sliding operation input by a user on a current page when the area of the current page displayed on a screen of the terminal is larger than that of the screen and the terminal is in a first moving mode;
a first determination module configured to determine a sliding angle of the first sliding operation;
a second determining module configured to determine a page moving direction corresponding to the sliding angle of the first sliding operation according to a mapping relationship between a sliding angle interval and a page moving direction;
and the first moving module is configured to move the current page according to the page moving direction corresponding to the sliding angle of the first sliding operation.
When the page moving device is used for moving the page, even if the sliding angle of the first sliding operation is deviated from the actual page moving direction of the user, the actual page moving direction of the user can be accurately determined as long as the sliding angle of the first sliding operation belongs to the sliding angle interval corresponding to the actual page moving direction of the user, and the user experience is improved.
Optionally, the apparatus further comprises:
the second receiving module is configured to receive a first switching command input by a user on the current page;
a first switching module configured to switch a movement mode of the terminal from the first movement mode to a second movement mode according to the first switching command;
a third receiving module configured to receive a second sliding operation input by a user on the current page in the second moving mode;
a third determination module configured to determine a sliding angle of the second sliding operation;
a second moving module configured to move the current page according to a sliding angle of the second sliding operation.
In the device, the first switching module switches the mobile mode of the terminal from the first mobile mode to the second mobile mode according to the first switching command input by the user, and the terminal moves the current page according to the sliding angle in the second mobile mode, so that flexible switching between the two mobile modes is realized, and the user experience is further improved.
Optionally, the apparatus further comprises:
a fourth receiving module configured to receive a second switching command input by a user on the current page;
a second switching module configured to switch the movement mode of the terminal from the second movement mode to the first movement mode according to the second switching command.
In the device, the second switching module switches the mobile mode of the terminal from the second mobile mode to the first mobile mode according to the second switching command input by the user, so that flexible switching between the two mobile modes is realized, and the user experience is further improved.
Optionally, the first sliding operation is a single-finger sliding operation, and the second sliding operation is a double-finger sliding operation;
or, the first sliding operation is a double-finger sliding operation, and the second sliding operation is a single-finger sliding operation;
or both the first sliding operation and the second sliding operation are single-finger sliding operations;
or, the first sliding operation and the second sliding operation are both double-finger sliding operations.
Optionally, the mapping relationship between the sliding angle interval and the page moving direction includes:
when the sliding angle section is (0, 45 ° ] or (315, 360 ° ], the page moving direction is rightward;
when the sliding angle interval is (45 °, 135 ° ], the page moving direction is upward;
when the sliding angle interval is (135 °, 225 ° ], the page moving direction is leftward;
when the sliding angle interval is (225 °, 315 ° ], the page moving direction is downward.
Optionally, the mapping relationship between the sliding angle interval and the page moving direction includes:
when the sliding angle interval is (0 °, 180 ° ], the page moving direction is upward;
when the sliding angle section is (180 °, 360 ° ], the page moving direction is downward.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for page moving, including:
a memory;
a memory configured to store processor-executable instructions;
wherein the processor is configured to:
when the area of a current page displayed on a screen of a terminal is larger than that of the screen and the terminal is in a first mobile mode, receiving a first sliding operation input by a user on the current page;
determining a sliding angle of the first sliding operation;
determining a page moving direction corresponding to the sliding angle of the first sliding operation according to the mapping relation between the sliding angle interval and the page moving direction;
and moving the current page according to the page moving direction corresponding to the sliding angle of the first sliding operation.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when the area of the current page displayed on the screen of the terminal is larger than the area of the screen, determining the page moving direction corresponding to the sliding angle of the first sliding operation according to the mapping relation between the preset sliding angle interval and the page moving direction, and moving the current page according to the determined page moving direction. According to the method, even if the sliding angle of the first sliding operation is deviated from the actual page moving direction of the user, the actual page moving direction of the user can be accurately determined as long as the sliding angle of the first sliding operation belongs to the sliding angle interval corresponding to the actual page moving direction of the user, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a method of page movement in accordance with an exemplary embodiment.
Fig. 2 is a schematic view of the sliding angle.
Fig. 3 is a diagram illustrating a mapping relationship between a sliding angle interval and a page moving direction according to an exemplary embodiment.
Fig. 4 is a diagram illustrating a mapping relationship between a sliding angle interval and a page moving direction according to an exemplary embodiment.
Fig. 5 is a diagram illustrating a mapping relationship between a sliding angle interval and a page moving direction according to an exemplary embodiment.
FIG. 6 is a flow diagram illustrating a method of page movement in accordance with an exemplary embodiment.
FIG. 7 is a flowchart illustrating a method of page movement according to an example embodiment.
FIG. 8 is a block diagram illustrating an apparatus for page shifting in accordance with an exemplary embodiment.
FIG. 9 is a block diagram illustrating an apparatus for page movement in accordance with an exemplary embodiment.
FIG. 10 is a block diagram illustrating an apparatus for page shifting according to an example embodiment.
FIG. 11 is a block diagram illustrating an apparatus for page shifting in accordance with an exemplary embodiment.
FIG. 12 is a block diagram illustrating an apparatus for page shifting according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method of page movement, which is applied to a terminal having a touch screen, according to an exemplary embodiment, and includes the following steps, as shown in fig. 1.
In step S101, when the area of a current page displayed on a screen of the terminal is larger than the area of the screen and the terminal is in a first moving mode, a first sliding operation input by a user on the current page is received.
When the area of the current page is larger than that of the screen, the whole content of the current page cannot be displayed on the screen, and at the moment, the whole content of the current page can be seen only by moving the current page. When a user browses a computer-version webpage on a mobile phone, the mobile phone screen cannot display all contents of the computer-version webpage, and the user needs to move a current page to view all contents of the webpage. In another scenario, a user enlarges the current page in order to see clearly the content on the current page, the enlarged page is larger than the page of the mobile phone screen, and the user needs to move the current page to view all the content of the current page.
In this embodiment, two moving modes are defined for the terminal: a first movement mode and a second movement mode. In the first movement mode, the page movement direction is different from the slide angle of the slide operation by the user, that is, when the slide angle of the slide operation by the user is X degrees, the page movement direction is not in the direction of X ° (degrees) but in any one of four directions of up, down, left, and right; in the second movement mode, the page movement direction is the same as the slide angle of the slide operation by the user, i.e., when the slide angle of the slide operation by the user is X °, the page movement direction is along the direction of X °. Specifically, in the second moving mode, the terminal slides the page according to the sliding angle, and assuming that the user needs to slide in four directions, i.e., up, down, left, and right, the sliding angles of the sliding operation input by the user are 90 °, 180 °, 270 °, 360 ° (0 °), respectively. In the actual operation process, when the user performs the sliding operation, it is difficult to make the sliding angle of the sliding operation be 90 °, 180 °, 270 °, 360 ° (0 °) by 100%, and if the sliding angle of the sliding operation is deviated, the page moving direction is also deviated. For example, the user needs to slide upward, and the slide angle of the slide operation is 75 ° due to the deviation of the slide operation, the page moves in the right-upward direction. In the first display mode, the user is allowed to have a certain deviation in the sliding operation, and the page moving direction does not change as long as the sliding angle of the sliding operation belongs to a certain sliding angle interval, for example, the user needs to slide upwards, and the finally determined page moving direction is upwards as long as the sliding angle of the sliding operation belongs to the sliding angle interval (45-135 degrees).
In a first moving mode, when a user needs to move a current page, the user performs a first sliding operation on a screen of the terminal according to a required page moving direction, and the terminal detects the first sliding operation, wherein the first sliding operation may be a single-finger sliding operation or a double-finger sliding operation.
In step S102, the slide angle of the first slide operation is determined.
In this embodiment, the sliding angle of the first sliding operation is any angle of 0 to 360 °, the sliding angle of the first sliding operation is, for example, 0 °, 15 °, 20 °, 45 °, 65 °, 90 °, 135 °, 228 °, and the like, and the terminal can detect the sliding angle of the first sliding operation by using the existing technology, which will not be described in detail herein. Fig. 2 is a schematic diagram of a sliding angle, and as shown in fig. 2, a coordinate system is established with a central point of a current page as a far point of coordinates, wherein an X axis is parallel to a short side of a terminal, a Y axis is parallel to a long side of the terminal, and a positive direction of the X axis is 0 ° (360 °), a negative direction of the X axis is 180 °, a positive direction of the Y axis is 90 °, and a negative direction of the Y axis is 270 °.
In step S103, a page movement direction corresponding to the sliding angle of the first sliding operation is determined according to the mapping relationship between the sliding angle interval and the page movement direction.
In this embodiment, a mapping relationship between the sliding angle interval and the page moving direction is predefined, where the page moving direction may include four directions, i.e., an upper direction, a lower direction, a left direction, and a right direction, or the page moving direction only includes an upper direction and a lower direction, or the page moving direction only includes a left direction and a right direction. Specifically, when the width and the height of the page are both larger than the size of the screen, the page moving direction comprises four directions, namely an upper direction, a lower direction, a left direction and a right direction; when only the width of the page is larger than the size of the screen, the page moving direction comprises a left direction and a right direction; when the height of the page is larger than the size of the screen, the page moving direction is an upper direction and a lower direction.
Fig. 3 is a schematic diagram illustrating a mapping relationship between a sliding angle interval and a page moving direction according to an exemplary embodiment, as shown in fig. 3, in a first example, the mapping relationship between the sliding angle interval and the page moving direction is:
when the sliding angle interval is (0, 45 ° ] or (315, 360 ° ], the page moving direction is rightward;
when the sliding angle interval is (45 degrees, 135 degrees), the page moving direction is upward;
when the sliding angle interval is (135 degrees, 225 degrees), the page moving direction is leftward;
when the sliding angle interval is (225 °, 315 ° ], the page moving direction is downward.
In a second example, the mapping relationship between the sliding angle interval and the page moving direction is as follows:
when the sliding angle interval is (0 degrees, 180 degrees), the moving direction of the page is upward;
when the sliding angle interval is (180 °, 360 ° ], the page moving direction is downward.
In a third example, the mapping relationship between the sliding angle interval and the page moving direction is as follows:
when the sliding angle interval is (0 degrees, 90 degrees) or (270 degrees, 360 degrees), the page moving direction is rightward;
when the sliding angle interval is (90 °, 270 ° ], the page moving direction is leftward.
Specifically, the terminal first determines which sliding angle interval the sliding angle of the first sliding operation belongs to, and then determines the page moving direction corresponding to the sliding angle interval according to the mapping relationship between the sliding angle interval and the page moving direction. Taking the first example as an example, when the slide angle of the first slide operation belongs to the slide angle section (0, 45 ° ] or (315, 360 ° ], the page movement direction corresponding to the slide angle of the first slide operation is rightward, for example, when the sliding angle of the first sliding operation is 30 °, the page moving direction corresponding to the sliding angle of the first sliding operation is rightward.
Fig. 4 is a diagram illustrating a mapping relationship between a sliding angle interval and a page moving direction according to an exemplary embodiment, and as shown in fig. 4, taking a second example as an example, when a sliding angle of a first sliding operation belongs to a sliding angle interval (0 °, 180 ° ]), a page moving direction corresponding to the sliding angle of the first sliding operation is upward, and when the sliding angle of the first sliding operation belongs to a sliding angle interval (180 °, 360 ° ]), a page moving direction corresponding to the sliding angle of the first sliding operation is downward.
Fig. 5 is a schematic diagram illustrating a mapping relationship between a sliding angle interval and a page moving direction according to an exemplary embodiment, as shown in fig. 5, taking a third example as an example, when a sliding angle of a first sliding operation belongs to the sliding angle interval (0 °, 90 ° ] or (270 °, 360 ° ]), a page moving direction corresponding to the sliding angle of the first sliding operation is rightward, and when the sliding angle of the first sliding operation belongs to the sliding angle interval (90 °, 270 ° ]), a page moving direction corresponding to the sliding angle of the first sliding operation is leftward.
In step S104, the current page is moved according to the page moving direction corresponding to the sliding angle of the first sliding operation.
After the page moving direction corresponding to the sliding angle of the first sliding operation is determined, the current page is moved according to the determined page moving direction, if the determined page moving direction is rightward, the current page is moved rightward, if the determined page moving direction is leftward, the current page is moved leftward, if the determined page moving direction is upward, the current page is moved upward, and if the determined page moving direction is downward, the current page is moved downward. When moving the current page, the terminal may move according to a preset moving step, for example, a fixed distance of 1 cm or 2 cm for each sliding of the user.
With the method of the embodiment, a certain deviation of the sliding operation of the user is allowed, and the page moving direction does not change as long as the sliding angle of the sliding operation of the user belongs to a certain sliding angle interval, for example, the user needs to slide upwards, and the finally determined page moving direction is upwards as long as the sliding angle of the sliding operation of the user belongs to the sliding angle interval (45 °, 135 °).
According to the method, when the area of the current page displayed on the screen of the terminal is larger than the area of the screen, the page moving direction corresponding to the sliding angle of the first sliding operation is determined according to the mapping relation between the preset sliding angle interval and the page moving direction, even if the sliding angle of the first sliding operation is deviated from the actual page moving direction of the user, the actual page moving direction of the user can be accurately determined as long as the sliding angle of the first sliding operation belongs to the sliding angle interval corresponding to the actual page moving direction of the user, and user experience is improved.
Fig. 6 is a flowchart illustrating a method of page moving according to an exemplary embodiment, where the method of the present embodiment includes the following steps, as shown in fig. 6.
In step S201, when the area of the current page displayed on the screen of the terminal is larger than the area of the screen and the terminal is in the first moving mode, a first sliding operation input by the user on the current page is received.
In step S202, the slide angle of the first slide operation is determined.
In step S203, a page movement direction corresponding to the sliding angle of the first sliding operation is determined according to the mapping relationship between the sliding angle interval and the page movement direction.
In step S204, the current page is moved according to the page moving direction corresponding to the sliding angle of the first sliding operation.
The specific implementation manner of steps S201 to S204 refers to the related description of the embodiment shown in fig. 1, and is not described herein again.
In step S205, a first switching command input by the user on the current page is received.
The first switching command is used for switching the mobile mode of the terminal from the first mobile mode to the second mobile mode, and the first switching command may be a single-click operation or a double-click operation, that is, in the first mobile mode, if the user needs to switch to the second mobile mode, the terminal receives the first switching command as long as the user clicks the current page at any position or a specific position of the current page or double-clicks the current page. The specific position is, for example, the most center of the current page, or the lower right corner of the current page, etc. Optionally, the first switching command may also be a clicking operation of a switching button by the user, for example, in the first switching mode, a switching button may be displayed on the current page, and when the user needs to switch to the second moving mode, the user clicks the switching button, and in order not to affect the normal use of the user, the switching button is usually disposed near the edge of the screen.
In step S206, the movement mode of the terminal is switched from the first movement mode to the second movement mode according to the first switching command.
In step S207, in the second moving mode, a second sliding operation input by the user on the current page is received.
In this embodiment, the second sliding operation may also be a single-finger sliding operation or a double-finger sliding operation, and the first sliding operation and the second sliding operation may be the same or different. For example, when the first slide operation is a single-finger slide operation, the second slide operation is a two-finger slide operation; when the first sliding operation is a double-finger sliding operation, the first sliding operation is a single-finger sliding operation; or both the first sliding operation and the second sliding operation are single-finger sliding operations; alternatively, both the first sliding operation and the second sliding operation are the two-finger sliding operation.
In step S208, the slide angle of the second slide operation is determined.
The sliding angle of the second sliding operation is 0-360 deg.
In step S209, the current page is moved according to the slide angle of the second slide operation.
In this embodiment, when the terminal receives the second sliding operation, the current page is moved according to the sliding angle of the second sliding operation, that is, the current page is moved according to the actual sliding angle of the user, for example, when the moving angle of the second sliding operation is 45 °, the terminal moves the current page in the direction of 45 ° instead of moving upward, and when the moving angle of the second sliding operation is 160 °, the terminal moves the current page in the direction of 160 ° instead of moving leftward.
According to the method, when the terminal is in the first moving mode, the first switching command input by the user on the current page is received, and the moving mode of the terminal is switched from the first moving mode to the second moving mode according to the first switching command, so that flexible switching of the two moving modes is realized, and user experience is further improved.
Fig. 7 is a flowchart illustrating a method of page moving according to an exemplary embodiment, where the method of the present embodiment includes the following steps, as shown in fig. 7.
In step S301, when the area of the current page displayed on the screen of the terminal is larger than the area of the screen and the terminal is in the first moving mode, a first sliding operation input by the user on the current page is received.
In step S302, the slide angle of the first slide operation is determined.
In step S303, the page moving direction corresponding to the sliding angle of the first sliding operation is determined according to the mapping relationship between the sliding angle interval and the page moving direction.
In step S304, the current page is moved according to the page moving direction corresponding to the sliding angle of the first sliding operation.
In step S305, a first switching command input by the user at the current page is received.
In step S306, the movement mode of the terminal is switched from the first movement mode to the second movement mode according to the first switching command.
In step S307, in the second movement mode, a second sliding operation input by the user on the current page is received.
In step S308, the slide angle of the second slide operation is determined.
In step S309, the current page is moved according to the slide angle of the second slide operation.
The specific implementation of steps S301 to S309 can refer to the description of the method embodiment shown in fig. 1 and fig. 3, and will not be described herein again.
In step S310, a second switching command input by the user at the current page is received.
The second switching command is used for switching the mobile mode of the terminal from the second mobile mode to the first mobile mode, and the second switching command may be a single-click operation or a double-click operation, that is, in the second mobile mode, if the user needs to switch to the first mobile mode, the terminal receives the second switching command as long as the user clicks the current page at any position or a specific position of the current page or double-clicks the current page. The specific position is, for example, the most center of the current page, or the lower right corner of the current page, etc. Optionally, the second switching command may also be a click operation of the user on a switching button, for example, in the second switching mode, a switching button may be displayed on the current page, and when the user needs to switch to the first moving mode, the user clicks the switching button, and in order not to affect the normal use of the user, the switching button is usually disposed near the edge of the screen.
In step S311, the movement mode of the terminal is switched from the second movement mode to the first movement mode according to the second switching command.
After switching to the first moving mode, the page is moved according to the method shown in fig. 1, which is not described herein again.
According to the method, when the terminal is in the second moving mode, the second switching command input by the user on the current page is received, and the moving mode of the terminal is switched from the second moving mode to the first moving mode according to the second switching command, so that flexible switching of the two moving modes is realized, and user experience is further improved.
FIG. 8 is a block diagram illustrating an apparatus for page shifting in accordance with an exemplary embodiment. As shown in fig. 8, the apparatus of the present embodiment includes a first receiving module 11, a first determining module 12, a second determining module 13, and a first moving module 14.
A first receiving module 11, configured to receive a first sliding operation input by a user on a current page when an area of the current page displayed on a screen of a terminal is larger than an area of the screen and the terminal is in a first moving mode;
a first determination module 12 configured to determine a sliding angle of the first sliding operation;
a second determining module 13, configured to determine, according to a mapping relationship between a sliding angle interval and a page moving direction, a page moving direction corresponding to a sliding angle of the first sliding operation;
the first moving module 14 is configured to move the current page according to a page moving direction corresponding to the sliding angle of the first sliding operation.
Optionally, the mapping relationship between the sliding angle interval and the page moving direction includes:
when the sliding angle section is (0, 45 ° ] or (315, 360 ° ], the page moving direction is rightward;
when the sliding angle interval is (45 °, 135 ° ], the page moving direction is upward;
when the sliding angle interval is (135 °, 225 ° ], the page moving direction is leftward;
when the sliding angle interval is (225 °, 315 ° ], the page moving direction is downward.
Optionally, the mapping relationship between the sliding angle interval and the page moving direction includes:
when the sliding angle interval is (0 °, 180 ° ], the page moving direction is upward;
when the sliding angle section is (180 °, 360 ° ], the page moving direction is downward.
Optionally, the mapping relationship between the sliding angle interval and the page moving direction includes:
when the sliding angle interval is (0 °, 90 ° ] or (270 °, 360 ° ], the page moving direction is rightward;
when the sliding angle section is (90 °, 270 ° ], the page moving direction is leftward.
FIG. 9 is a block diagram illustrating an apparatus for page movement in accordance with an exemplary embodiment. As shown in fig. 9, the apparatus further includes, in addition to the apparatus shown in fig. 8: a second receiving module 15, a first switching module 16, a third receiving module 17, a third determining module 18 and a second moving module 19.
A second receiving module 15 configured to receive a first switching command input by a user at the current page;
a first switching module 16 configured to switch the movement mode of the terminal from the first movement mode to a second movement mode according to the first switching command;
a third receiving module 17 configured to receive a second sliding operation input by the user on the current page in the second moving mode;
a third determination module 18 configured to determine a sliding angle of the second sliding operation;
a second moving module 19 configured to move the current page according to the sliding angle of the second sliding operation.
Optionally, the first sliding operation is a single-finger sliding operation, and the second sliding operation is a double-finger sliding operation;
or, the first sliding operation is a double-finger sliding operation, and the second sliding operation is a single-finger sliding operation;
or both the first sliding operation and the second sliding operation are single-finger sliding operations;
or, the first sliding operation and the second sliding operation are both double-finger sliding operations.
FIG. 10 is a block diagram illustrating an apparatus for page shifting according to an example embodiment. As shown in fig. 10, the apparatus further includes, in addition to the apparatus shown in fig. 9: a fourth receiving module 20 and a second switching module 21.
A fourth receiving module 20 configured to receive a second switching command input by the user at the current page;
a second switching module 21 configured to switch the movement mode of the terminal from the second movement mode to the first movement mode according to the second switching command.
Fig. 11 is a block diagram illustrating an apparatus for page moving according to an exemplary embodiment, where the apparatus includes, as shown in fig. 11: a processor 31 and a memory 32 for storing instructions executable by the processor 31, the memory 32 being coupled to and in communication with the processor 31 via a system bus.
Wherein the processor 31 is configured to:
when the area of a current page displayed on a screen of a terminal is larger than that of the screen and the terminal is in a first mobile mode, receiving a first sliding operation input by a user on the current page;
determining a sliding angle of the first sliding operation;
determining a page moving direction corresponding to the sliding angle of the first sliding operation according to the mapping relation between the sliding angle interval and the page moving direction;
and moving the current page according to the page moving direction corresponding to the sliding angle of the first sliding operation.
In the physical embodiment of the page-shifting apparatus, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the aforementioned memory may be a read-only memory (ROM), a Random Access Memory (RAM), a flash memory, a hard disk, or a solid state disk. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
FIG. 12 is a block diagram illustrating an apparatus for page shifting according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 12, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described method of page moving illustrated in fig. 1 to 3.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the apparatus 800 to perform the method of page moving illustrated in fig. 1-3 described above, is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a page moving apparatus, enable the page moving apparatus to perform the method of page moving described above with reference to fig. 1 to 3.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (11)

1. A method for page movement, comprising:
when the area of a current page displayed on a screen of a terminal is larger than that of the screen and the terminal is in a first moving mode, receiving a first sliding operation input by a user on the current page, wherein the first moving mode is a mode in which the page moving direction is different from the sliding angle of the sliding operation of the user;
determining a sliding angle of the first sliding operation;
determining a page moving direction corresponding to the sliding angle of the first sliding operation according to the mapping relation between the sliding angle interval and the page moving direction;
moving the current page according to a preset moving step length according to the page moving direction corresponding to the sliding angle of the first sliding operation;
receiving a first switching command input by a user on the current page;
switching the movement mode of the terminal from the first movement mode to a second movement mode according to the first switching command;
receiving a second sliding operation input by the user on the current page in the second moving mode, wherein the second moving mode is a mode that the page moving direction is the same as the sliding angle of the sliding operation of the user;
determining a sliding angle of the second sliding operation;
moving the current page according to the sliding angle of the second sliding operation;
wherein the page moving direction comprises upward and downward, or the page moving direction comprises upward, downward, rightward and leftward, or the page moving direction comprises leftward and rightward;
the method further comprises the following steps:
receiving a second switching command input by a user on the current page;
and switching the mobile mode of the terminal from the second mobile mode to the first mobile mode according to the second switching command.
2. The method of claim 1, wherein the first sliding operation is a single-finger sliding operation and the second sliding operation is a two-finger sliding operation;
or, the first sliding operation is a double-finger sliding operation, and the second sliding operation is a single-finger sliding operation;
or both the first sliding operation and the second sliding operation are single-finger sliding operations;
or, the first sliding operation and the second sliding operation are both double-finger sliding operations.
3. The method according to claim 1 or 2, wherein the mapping relationship between the sliding angle interval and the page moving direction comprises:
when the sliding angle section is (0, 45 ° ] or (315, 360 ° ], the page moving direction is rightward;
when the sliding angle interval is (45 °, 135 ° ], the page moving direction is upward;
when the sliding angle interval is (135 °, 225 ° ], the page moving direction is leftward;
when the sliding angle interval is (225 °, 315 ° ], the page moving direction is downward.
4. The method according to claim 1 or 2, wherein the mapping relationship between the sliding angle interval and the page moving direction comprises:
when the sliding angle interval is (0 °, 180 ° ], the page moving direction is upward;
when the sliding angle section is (180 °, 360 ° ], the page moving direction is downward.
5. The method according to claim 1 or 2, wherein the mapping relationship between the sliding angle interval and the page moving direction comprises:
when the sliding angle interval is (0 °, 90 ° ] or (270 °, 360 ° ], the page moving direction is rightward;
when the sliding angle section is (90 °, 270 ° ], the page moving direction is leftward.
6. An apparatus for page movement, comprising:
the terminal comprises a first receiving module, a second receiving module and a display module, wherein the first receiving module is configured to receive a first sliding operation input by a user on a current page when the area of the current page displayed on a screen of the terminal is larger than the area of the screen and the terminal is in a first moving mode, and the first moving mode is a mode in which the page moving direction is different from the sliding angle of the sliding operation of the user;
a first determination module configured to determine a sliding angle of the first sliding operation;
a second determining module configured to determine a page moving direction corresponding to the sliding angle of the first sliding operation according to a mapping relationship between a sliding angle interval and a page moving direction;
the first moving module is configured to move the current page according to a preset moving step length according to a page moving direction corresponding to the sliding angle of the first sliding operation;
the second receiving module is configured to receive a first switching command input by a user on the current page;
a first switching module configured to switch a movement mode of the terminal from the first movement mode to a second movement mode according to the first switching command;
a third receiving module, configured to receive, in the second moving mode, a second sliding operation input by a user on the current page, where the second moving mode is a mode in which a page moving direction is the same as a sliding angle of the user sliding operation;
a third determination module configured to determine a sliding angle of the second sliding operation;
a second moving module configured to move the current page according to a sliding angle of the second sliding operation;
wherein the page moving direction comprises upward and downward, or the page moving direction comprises upward, downward, rightward and leftward, or the page moving direction comprises leftward and rightward;
a fourth receiving module configured to receive a second switching command input by a user on the current page;
a second switching module configured to switch the movement mode of the terminal from the second movement mode to the first movement mode according to the second switching command.
7. The apparatus of claim 6, wherein the first sliding operation is a single-finger sliding operation and the second sliding operation is a two-finger sliding operation;
or, the first sliding operation is a double-finger sliding operation, and the second sliding operation is a single-finger sliding operation;
or both the first sliding operation and the second sliding operation are single-finger sliding operations;
or, the first sliding operation and the second sliding operation are both double-finger sliding operations.
8. The apparatus according to claim 6 or 7, wherein the mapping relationship between the sliding angle interval and the page moving direction comprises:
when the sliding angle section is (0, 45 ° ] or (315, 360 ° ], the page moving direction is rightward;
when the sliding angle interval is (45 °, 135 ° ], the page moving direction is upward;
when the sliding angle interval is (135 °, 225 ° ], the page moving direction is leftward;
when the sliding angle interval is (225 °, 315 ° ], the page moving direction is downward.
9. The apparatus according to claim 6 or 7, wherein the mapping relationship between the sliding angle interval and the page moving direction comprises:
when the sliding angle interval is (0 °, 180 ° ], the page moving direction is upward;
when the sliding angle section is (180 °, 360 ° ], the page moving direction is downward.
10. The apparatus according to claim 6 or 7, wherein the mapping relationship between the sliding angle interval and the page moving direction comprises:
when the sliding angle interval is (0 °, 90 ° ] or (270 °, 360 ° ], the page moving direction is rightward;
when the sliding angle section is (90 °, 270 ° ], the page moving direction is leftward.
11. An apparatus for page movement, comprising:
a memory;
a memory configured to store processor-executable instructions;
wherein the processor is configured to:
when the area of a current page displayed on a screen of a terminal is larger than that of the screen and the terminal is in a first moving mode, receiving a first sliding operation input by a user on the current page, wherein the first moving mode is a mode in which the page moving direction is different from the sliding angle of the sliding operation of the user;
determining a sliding angle of the first sliding operation;
determining a page moving direction corresponding to the sliding angle of the first sliding operation according to the mapping relation between the sliding angle interval and the page moving direction;
moving the current page according to a preset moving step length according to the page moving direction corresponding to the sliding angle of the first sliding operation;
receiving a first switching command input by a user on the current page;
switching the movement mode of the terminal from the first movement mode to a second movement mode according to the first switching command;
receiving a second sliding operation input by the user on the current page in the second moving mode, wherein the second moving mode is a mode that the page moving direction is the same as the sliding angle of the sliding operation of the user;
determining a sliding angle of the second sliding operation;
moving the current page according to the sliding angle of the second sliding operation;
wherein the page moving direction comprises upward and downward, or the page moving direction comprises upward, downward, rightward and leftward, or the page moving direction comprises leftward and rightward;
the processor is further configured to:
receiving a second switching command input by a user on the current page;
and switching the mobile mode of the terminal from the second mobile mode to the first mobile mode according to the second switching command.
CN201610599621.5A 2016-07-26 2016-07-26 Page moving method and device Active CN106293405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610599621.5A CN106293405B (en) 2016-07-26 2016-07-26 Page moving method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610599621.5A CN106293405B (en) 2016-07-26 2016-07-26 Page moving method and device

Publications (2)

Publication Number Publication Date
CN106293405A CN106293405A (en) 2017-01-04
CN106293405B true CN106293405B (en) 2022-03-08

Family

ID=57662368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610599621.5A Active CN106293405B (en) 2016-07-26 2016-07-26 Page moving method and device

Country Status (1)

Country Link
CN (1) CN106293405B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106990907A (en) * 2017-04-05 2017-07-28 深圳天珑无线科技有限公司 A kind of method and device for changing application skins based upon bidding

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201017487A (en) * 2008-10-17 2010-05-01 Asustek Comp Inc Method for operating displayed page and electronic device
CN103135929A (en) * 2013-01-31 2013-06-05 北京小米科技有限责任公司 Method and device for controlling application interface to move and terminal device
CN103995660B (en) * 2013-02-20 2018-08-03 腾讯科技(深圳)有限公司 The method and device of touch screen browser switch window
CN103699289B (en) * 2013-12-13 2017-01-11 广州华多网络科技有限公司 Method and device for responding to sliding operation

Also Published As

Publication number Publication date
CN106293405A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
EP3125531B1 (en) Control method and device for adjusting shooting function
KR101903261B1 (en) Method and device for preventing accidental touch of terminal with touch screen
CN107102772B (en) Touch control method and device
EP2921969A1 (en) Method and apparatus for centering and zooming webpage and electronic device
US20150113475A1 (en) Method and device for providing an image preview
KR20170142839A (en) Method and device for determining operation mode of terminal
CN106485660B (en) Electronic map zooming method and device
EP3232301B1 (en) Mobile terminal and virtual key processing method
EP3249505B1 (en) Method and electronic device for controlling a state of a touch screen
CN106980409B (en) Input control method and device
CN105511777B (en) Session display method and device on touch display screen
CN105094539B (en) Reference information display methods and device
JP2017525076A (en) Character identification method, apparatus, program, and recording medium
CN108829475B (en) UI drawing method, device and storage medium
CN112181265B (en) Touch signal processing method, device and medium
CN113867550A (en) Attitude detection method and device for electronic equipment and storage medium
CN111522498A (en) Touch response method and device and storage medium
CN106325712B (en) Terminal display control method and device and terminal
CN106126050B (en) Menu display method and device
CN106445376B (en) Webpage operation method and device
CN110597443B (en) Calendar display method, device and medium
CN106293405B (en) Page moving method and device
CN107832112B (en) Wallpaper setting method and device
EP4020150A1 (en) Method for cursor control, electronic device and storage medium
CN105975188B (en) Picture position adjusting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant