Page operation method and device
Technical field
The present invention relates to areas of information technology, more particularly, to a kind of page operation method and device.
Background technology
During watching video by mobile device, if this mobile device no returns button, user is only capable of user
The currently playing page is exited by the return function key playing the page upper left corner.The upper left corner operating area distance of mobile device is used
Farther out, according to taking thatch (fitts) law, the operating distance of distance objective is more remote, user for the zone of comfort of family one-handed performance
The load of one-handed performance is bigger, thus leading to simple operation relatively low, reduces the operating experience of user.
Content of the invention
Technical problem
In view of this, the technical problem to be solved in the present invention is, the simple operation of existing page operation technology is relatively low,
The operating experience of user is relatively low.
Solution
In order to solve above-mentioned technical problem, according to one embodiment of the invention, there is provided a kind of page operation method, bag
Include:
In the case that current page detects the touch slide of specified type, obtain the touch of described specified type
Slide sliding distance in a first direction;
Meet pre-conditioned feelings in the slide that touches of described specified type in the sliding distance of described first direction
Under condition, return the previous page of described current page.
For said method, in a kind of possible implementation, the touch slide of described specified type is first long
The operation press, slided afterwards.
For said method, in a kind of possible implementation, the touch slide of described specified type is described
The sliding distance of first direction meet pre-conditioned, particularly as follows:
The slide that touches of described specified type is more than described specified type in the sliding distance of described first direction
Touch the sliding distance in second direction for the slide.
For said method, in a kind of possible implementation, described first direction is vertical direction.
For said method, in a kind of possible implementation, described specified type touch slide in institute
State first direction sliding distance meet pre-conditioned in the case of, methods described also includes:
Close described current page.
For said method, in a kind of possible implementation, touch specified type is detected in current page is slided
In the case of dynamic operation, methods described also includes:
Breviary shows described current page.
For said method, in a kind of possible implementation, after breviary shows described current page, described side
Method also includes:
It is more than touching of described specified type in the slide that touches of described specified type in the sliding distance of second direction
Touch slide in the case of the sliding distance of described first direction, the touch slide according to described specified type is
The sliding distance in two directions moves the described current page after breviary shows.
In order to solve above-mentioned technical problem, according to another embodiment of the present invention, there is provided a kind of page operation device, wrap
Include:
Sliding distance acquisition module, for the touch slide of specified type is detected in current page in the case of,
Obtain described specified type touches slide sliding distance in a first direction;
The page return module, for described specified type touch slide described first direction sliding distance
Meet pre-conditioned in the case of, return described current page previous page.
For said apparatus, in a kind of possible implementation, the touch slide of described specified type is first long
The operation press, slided afterwards.
For said apparatus, in a kind of possible implementation, the described page return module specifically for:
It is more than described specified type in the slide that touches of described specified type in the sliding distance of described first direction
Touch slide in the case of the sliding distance of second direction, return described current page previous page.
For said apparatus, in a kind of possible implementation, described first direction is vertical direction.
For said apparatus, in a kind of possible implementation, described device also includes:
Page close module, for described specified type touch slide described first direction sliding distance
Meet pre-conditioned in the case of, close described current page.
For said apparatus, in a kind of possible implementation, described device also includes:
Breviary display module, for the touch slide of specified type is detected in current page in the case of, breviary
Show described current page.
For said apparatus, in a kind of possible implementation, described device also includes:
Page movement module, is more than in the sliding distance of second direction for the slide that touches in described specified type
Described specified type touch slide in the case of the sliding distance of described first direction, according to described specified type
Touch described current page after the mobile breviary of sliding distance of second direction shows for the slide.
Beneficial effect
By the touch slide of specified type is detected in current page in the case of, obtain the touch of specified type
Slide sliding distance in a first direction, meets in the slide sliding distance in a first direction that touches of specified type
In the case of pre-conditioned, return previous page, page operation method according to embodiments of the present invention and the device of current page
The simple operation of page operation can be improved such that it is able to improve the operating experience of user.
According to below with reference to the accompanying drawings, to detailed description of illustrative embodiments, the further feature of the present invention and aspect will become
Clear.
Brief description
Comprise in the description and constitute the accompanying drawing of a part of description and description together illustrates the present invention's
Exemplary embodiment, feature and aspect, and for explaining the principle of the present invention.
Fig. 1 illustrates the flowchart of page operation method according to an embodiment of the invention;
Fig. 2 illustrates an exemplary flowchart of page operation method according to an embodiment of the invention;
Fig. 3 illustrates an exemplary flowchart of page operation method according to an embodiment of the invention;
Fig. 4 illustrates an exemplary flowchart of page operation method according to an embodiment of the invention;
Fig. 5 illustrates an exemplary flowchart of page operation method according to an embodiment of the invention;
Fig. 6 illustrates the structured flowchart of page operation device according to another embodiment of the present invention;
Fig. 7 shows a kind of structured flowchart of page operation equipment of an alternative embodiment of the invention.
Specific embodiment
Describe various exemplary embodiments, feature and the aspect of the present invention below with reference to accompanying drawing in detail.Identical in accompanying drawing
Reference represent the same or analogous element of function.Although the various aspects of embodiment shown in the drawings, remove
Non-specifically points out it is not necessary to accompanying drawing drawn to scale.
Special word " exemplary " means " as example, embodiment or illustrative " here.Here as " exemplary "
Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the present invention, giving numerous details in specific embodiment below.
It will be appreciated by those skilled in the art that not having some details, the present invention equally can be implemented.In some instances, for
Method well known to those skilled in the art, means, element and circuit are not described in detail, in order to highlight the purport of the present invention.
Embodiment 1
Fig. 1 illustrates the flowchart of page operation method according to an embodiment of the invention.As shown in figure 1, the method
Specifically include that
In step s101, in the case that current page detects the touch slide of specified type, obtain and specify
The touch slide sliding distance in a first direction of type.
It should be noted that the executive agent of the embodiment of the present invention can be mobile phone, panel computer or pda
Mobile terminals such as (personal digital assistant, personal digital assistants) or other page operation devices,
It is not limited thereto.The page in the embodiment of the present invention can (application, should for browser page or app
With) page or app window etc., such as video player window.
As an example of the embodiment of the present invention, the page increases the instruction of monitoring users operation, in current page
In the case of listening to the touch slide of specified type, obtain specified type touches slide cunning in a first direction
Dynamic distance.
An example as the embodiment of the present invention is it is intended that the slide that touches of type is first to grow by, the rear behaviour sliding
Make.Wherein, grow by being in the case that the position of touch point is constant, the duration of user's finger sustained touch screen is more than in advance
If the operation of duration, for example, preset duration can be 2 seconds.The touch slide of specified type can also pre-set
Other operations, are not limited thereto.
As an example of the embodiment of the present invention, first direction can be vertical direction.Hanging down in the embodiment of the present invention
Nogata to, horizontal direction be in screen shown by current page in relative direction.Assume the normal display in current page
State or main dispaly state are rectangle, and vertical direction can be the lower edges generally perpendicular direction with this rectangle, level side
To can be lower edges substantially horizontal direction with this rectangle.For example, x-axis represents the coordinate of the horizontal direction of current page
Axle, y-axis represents the coordinate axess of the vertical direction of current page, and the starting point coordinate of the touch slide of this specified type is (x1,
y1), terminal point coordinate is (x2,y2), then the slide sliding distance in a first direction that touches of this specified type is | y2-y1|.
It should be noted that first direction can also for vertically upward, vertical downward direction or positive with x-axis
Angle is direction at any angle, is not limited thereto.
In step s102, meet pre-conditioned in the touch slide sliding distance in a first direction of specified type
In the case of, return the previous page of current page.
The mobile device no returning button adopts the embodiment of the present invention page operation method when, only need to be by specifying
The touch slide of type can return to the previous page of current page, and need not pass through the return work(in the current page upper left corner
Previous page can be returned by key, substantially increase the simple operation returning previous page in the mobile device no returning button,
Improve the operating experience of user.
Fig. 2 illustrates an exemplary flowchart of page operation method according to an embodiment of the invention.As Fig. 2 institute
Show, the method includes:
In step s201, in the case that current page detects the touch slide of specified type, obtain and specify
The touch slide sliding distance in a first direction of type.
In step s202, it is more than specified type in the slide sliding distance in a first direction that touches of specified type
Touch slide in the case of the sliding distance of second direction, return current page previous page.
As an example of the embodiment of the present invention, second direction can be horizontal direction.
An example as the embodiment of the present invention it is intended that type touch slide sliding distance in a first direction
The slide sliding distance in a first direction that touches meeting pre-conditioned, Ke Yiwei: specified type is more than specified type
Touch the sliding distance in second direction for the slide.For example, first direction is vertical direction, and second direction is horizontal direction.x
Axle represents the coordinate axess of the horizontal direction of current page, and y-axis represents the coordinate axess of the vertical direction of current page.This specified type
Touch slide starting point coordinate be (x1,y1), terminal point coordinate is (x2,y2), then the touch slide of this specified type
Sliding distance in a first direction is | y2-y1|, this specified type touch slide in the sliding distance of second direction be |
x2-x1|, | y2-y1|>|x2-x1| in the case of, return the previous page of current page.
Another example as the embodiment of the present invention it is intended that type touch slide slip in a first direction away from
Pre-conditioned from meeting, the slide sliding distance in a first direction that touches of Ke Yiwei: specified type is preset more than first
Value.
Fig. 3 illustrates an exemplary flowchart of page operation method according to an embodiment of the invention.As Fig. 3 institute
Show, the method includes:
In step s301, in the case that current page detects the touch slide of specified type, obtain and specify
The touch slide sliding distance in a first direction of type.
In step s302, meet pre-conditioned in the touch slide sliding distance in a first direction of specified type
In the case of, return the previous page of current page, and close current page.
In this example, specified type touch slide sliding distance in a first direction meet pre-conditioned
In the case of, return the previous page of current page, and close current page.Therefore, adopt in the mobile device no returning button
During with the page operation method of the embodiment of the present invention, only current page need to be can return to by the touch slide of specified type
Previous page and close current page, and previous page or pass need not be returned by the return function key in the current page upper left corner
Close current page, substantially increase the operation returning previous page in the mobile device no returning button or closing current page
Convenience, improves the operating experience of user.
Fig. 4 illustrates an exemplary flowchart of page operation method according to an embodiment of the invention.As Fig. 4 institute
Show, the method includes:
In step s401, in the case that current page detects the touch slide of specified type, breviary shows
Current page.
In step s402, meet pre-conditioned in the touch slide sliding distance in a first direction of specified type
In the case of, return the previous page of current page.
In step s403, it is more than specified type in the slide that touches of specified type in the sliding distance of second direction
Touch slide sliding distance in a first direction in the case of, the touch slide according to specified type is in second party
To the mobile breviary of sliding distance show after current page.
For example, first direction is vertical direction, and second direction is horizontal direction.X-axis represents the horizontal direction of current page
Coordinate axess, y-axis represents the coordinate axess of the vertical direction of current page.Current page detects first to be grown by, the rear operation slided
In the case of, breviary shows current page.The starting point coordinate of the touch slide of this specified type is (x1,y1), terminal point coordinate
For (x2,y2), then the slide sliding distance in a first direction that touches of this specified type is | y2-y1|, this specified type
Touching slide in the sliding distance of second direction is | x2-x1|.| y2-y1|>|x2-x1| in the case of, return current page
The previous page in face.| y2-y1|<|x2-x1| in the case of, if x2-x1> 0, then according to x2-x1Size level move right contracting
Show slightly the current page after showing;If x2-x1< 0, then according to x1-x2Size level be moved to the left the current page after breviary shows
Face.
Fig. 5 illustrates an exemplary flowchart of page operation method according to an embodiment of the invention.As Fig. 5 institute
Show, the method includes:
In step s501, video is play by current page.
In step s502, the operation that monitoring users execute to current page.
In step s503, judge whether to listen to and first grow in current page by, the rear operation dragging, if so, then hold
Row step s504, otherwise return to step s501.
In step s504, obtain starting point coordinate and the terminal point coordinate of drag operation.
In step s505, the starting point coordinate according to drag operation and terminal point coordinate determine whether vertically to drag, if so,
Then execution step s506, otherwise execution step s507.
In step s506, close current page.
In step s507, the starting point coordinate according to drag operation and terminal point coordinate determine whether that level drags, if so,
Then execution step s508, otherwise return to step s502.
In step s508, the position of starting point coordinate according to drag operation and the mobile current page of terminal point coordinate, and
Video is put in current page relaying continued broadcasting.
So, in the case of by the touch slide of specified type is detected in current page, obtain specified type
Touch slide sliding distance in a first direction, specified type touch slide slip in a first direction away from
From meet pre-conditioned in the case of, return the previous page of current page, page operation method according to embodiments of the present invention
The simple operation of page operation can be improved such that it is able to improve the operating experience of user.
Embodiment 2
Fig. 6 illustrates the structured flowchart of page operation device according to another embodiment of the present invention.This device can be used for transporting
Page operation method shown in row Fig. 1 to Fig. 5.For convenience of description, illustrate only in figure 6 related to the embodiment of the present invention
Part.
As shown in fig. 6, this device includes: sliding distance acquisition module 61, for specified type is detected in current page
Touch slide in the case of, obtain described specified type touch slide sliding distance in a first direction;Page
Face returns module 62, presets in the sliding distance satisfaction of described first direction for the slide that touches in described specified type
In the case of condition, return the previous page of described current page.
In a kind of possible implementation, the slide that touches of described specified type is first to grow by, the rear behaviour sliding
Make.
In a kind of possible implementation, the described page returns module 62 specifically for touching in described specified type
The sliding distance touching slide in described first direction is more than the touch slide of described specified type in second direction
In the case of sliding distance, return the previous page of described current page.
In a kind of possible implementation, described first direction is vertical direction.
In a kind of possible implementation, described device also includes: page close module 63, in described specified class
Type touch slide described first direction sliding distance meet pre-conditioned in the case of, close described current page
Face.
In a kind of possible implementation, described device also includes: breviary display module 64, for examining in current page
In the case of measuring the touch slide of specified type, breviary shows described current page.
In a kind of possible implementation, described device also includes: page movement module 65, in described specified class
The slide that touches of type is more than the touch slide of described specified type described first in the sliding distance of second direction
In the case of the sliding distance in direction, moved in the sliding distance of second direction according to the slide that touches of described specified type
Breviary show after described current page.
It should be noted that so, by the touch slide of specified type is detected in current page in the case of,
Obtain specified type touches slide sliding distance in a first direction, specified type touch slide first
The sliding distance in direction meet pre-conditioned in the case of, return current page previous page, according to embodiments of the present invention
Page operation device can improve the simple operation of page operation such that it is able to improve the operating experience of user.
Embodiment 3
Fig. 7 shows a kind of structured flowchart of page operation equipment of an alternative embodiment of the invention.Described page behaviour
Making equipment 1100 can be host server, personal computer pc or the portable portable computing possessing computing capability
Machine or terminal etc..The specific embodiment of the invention does not limit to implementing of calculate node.
Described page operation equipment 1100 includes processor (processor) 1110, communication interface (communications
Interface) 1120, memorizer (memory) 1130 and bus 1140.Wherein, processor 1110, communication interface 1120 and
Memorizer 1130 completes mutual communication by bus 1140.
Communication interface 1120 is used for and network device communications, and wherein the network equipment includes such as Virtual Machine Manager center, is total to
Enjoy storage etc..
Processor 1110 is used for configuration processor.Processor 1110 is probably a central processing unit cpu, or special collection
Become circuit asic (application specific integrated circuit), or be arranged to implement the present invention
One or more integrated circuits of embodiment.
Memorizer 1130 is used for depositing file.Memorizer 1130 may comprise high speed ram memorizer it is also possible to also include non-
Volatile memory (non-volatile memory), for example, at least one disk memory.Memorizer 1130 can also be deposited
Memory array.Memorizer 1130 is also possible to by piecemeal, and described piece can be combined into virtual volume by certain rule.
In a kind of possible embodiment, said procedure can be the program code including computer-managed instruction.This journey
Sequence is particularly used in: realizes the operation of each step in embodiment 1.
Those of ordinary skill in the art are it is to be appreciated that each exemplary cell in embodiment described herein and algorithm
Step, being capable of being implemented in combination in electronic hardware or computer software and electronic hardware.These functions are actually with hardware also
Being software form to realize, the application-specific depending on technical scheme and design constraint.Professional and technical personnel can be directed to
Specifically application selects different methods to realize described function, but this realization is it is not considered that exceed the model of the present invention
Enclose.
If to be realized using in the form of computer software described function and as independent production marketing or use when,
To a certain extent it is believed that all or part (part for example prior art being contributed) of technical scheme is
Embody in form of a computer software product.This computer software product is generally stored inside the non-volatile of embodied on computer readable
In storage medium, including some instructions with so that computer equipment (can be that personal computer, server or network set
Standby etc.) all or part of step of execution various embodiments of the present invention method.And aforesaid storage medium include u disk, portable hard drive,
Read only memory (rom, read-only memory), random access memory (ram, random access memory), magnetic
Dish or CD etc. are various can be with the medium of store program codes.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by described scope of the claims.