Page operation method and deviceTechnical field
The present invention relates to information technology field more particularly to a kind of page operation methods and device.
Background technique
User is during watching video by mobile device, if the mobile device is only capable of without key, user is returnedReturn function key by playing the page upper left corner exits the currently playing page.The upper left corner operating area distance of mobile device is usedThe zone of comfort of family one-handed performance farther out, according to taking thatch (Fitts) law it is found that the operating distance of distance objective is remoter, userThe load of one-handed performance is bigger, lower so as to cause operation convenience, reduces the operating experience of user.
Summary of the invention
Technical problem
In view of this, the technical problem to be solved by the present invention is to, the operation convenience of existing page operation technology is lower,The operating experience of user is lower.
Solution
In order to solve the above-mentioned technical problem, an embodiment according to the present invention provides a kind of page operation method, packetIt includes:
In the case where current page detects the touch slide of specified type, the touch of the specified type is obtainedThe sliding distance of slide in a first direction;
Meet in the sliding distance of the first direction feelings of preset condition in the touch slide of the specified typeUnder condition, the previous page of the current page is returned.
For the above method, in one possible implementation, the touch slide of the specified type is first to growThe operation press, slided afterwards.
For the above method, in one possible implementation, the touch slide of the specified type is describedThe sliding distance of first direction meets preset condition, specifically:
The slide that touches of the specified type is greater than the specified type in the sliding distance of the first directionSlide is touched in the sliding distance of second direction.
For the above method, in one possible implementation, the first direction is vertical direction.
For the above method, in one possible implementation, the specified type touch slide in instituteState first direction sliding distance meet preset condition in the case where, the method also includes:
Close the current page.
For the above method, in one possible implementation, detect that the touch of specified type is sliding in current pageIn the case where dynamic operation, the method also includes:
Breviary shows the current page.
For the above method, in one possible implementation, after breviary shows the current page, the sideMethod further include:
The specified type touch slide second direction sliding distance be greater than the specified type touchingSlide is touched in the case where the sliding distance of the first direction, according to the touch slide of the specified typeThe sliding distance in two directions moves the current page after breviary is shown.
In order to solve the above-mentioned technical problem, according to another embodiment of the present invention, a kind of page operation device is provided, is wrappedIt includes:
Sliding distance obtains module, in the case where for detecting the touch slide of specified type in current page,Obtain the sliding distance of the touch slide of the specified type in a first direction;
Page return module, for touching slide in the sliding distance of the first direction in the specified typeIn the case where meeting preset condition, the previous page of the current page is returned.
For above-mentioned apparatus, in one possible implementation, the touch slide of the specified type is first to growThe operation press, slided afterwards.
For above-mentioned apparatus, in one possible implementation, the page return module is specifically used for:
It is greater than the specified type in the sliding distance of the first direction in the slide that touches of the specified typeTouch slide in the case where the sliding distance of second direction, return to the previous page of the current page.
For above-mentioned apparatus, in one possible implementation, the first direction is vertical direction.
For above-mentioned apparatus, in one possible implementation, described device further include:
Page close module, for touching slide in the sliding distance of the first direction in the specified typeIn the case where meeting preset condition, the current page is closed.
For above-mentioned apparatus, in one possible implementation, described device further include:
Breviary display module, in the case where for detecting the touch slide of specified type in current page, breviaryShow the current page.
For above-mentioned apparatus, in one possible implementation, described device further include:
Page movement module is greater than for the touch slide in the specified type in the sliding distance of second directionThe touch slide of the specified type is in the case where the sliding distance of the first direction, according to the specified typeTouch the current page of the slide after the mobile breviary of sliding distance of second direction is shown.
Beneficial effect
In the case where touch slide by detecting specified type in current page, the touch of specified type is obtainedThe sliding distance of slide in a first direction meets in the touch slide sliding distance in a first direction of specified typeIn the case where preset condition, the previous page of current page, page operation method and device according to an embodiment of the present invention are returnedIt can be improved the operation convenience of page operation, so as to improve the operating experience of user.
According to below with reference to the accompanying drawings becoming to detailed description of illustrative embodiments, other feature of the invention and aspectIt is clear.
Detailed description of the invention
Comprising in the description and constitute the attached drawing of part of specification and specification together illustrate it is of the inventionExemplary embodiment, feature and aspect, and principle for explaining the present invention.
Fig. 1 shows the implementation flow chart of page operation method according to an embodiment of the invention;
Fig. 2 shows an illustrative implementation flow charts of page operation method according to an embodiment of the invention;
Fig. 3 shows an illustrative implementation flow chart of page operation method according to an embodiment of the invention;
Fig. 4 shows an illustrative implementation flow chart of page operation method according to an embodiment of the invention;
Fig. 5 shows an illustrative implementation flow chart of page operation method according to an embodiment of the invention;
Fig. 6 shows the structural block diagram of page operation device according to another embodiment of the present invention;
Fig. 7 shows a kind of structural block diagram of page operation equipment of another embodiment of the invention.
Specific embodiment
Below with reference to attached drawing various exemplary embodiments, feature and the aspect that the present invention will be described in detail.It is identical in attached drawingAppended drawing reference indicate element functionally identical or similar.Although the various aspects of embodiment are shown in the attached drawings, removeIt non-specifically points out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.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, numerous details is given in specific embodiment below.It will be appreciated by those skilled in the art that without certain details, the present invention equally be can be implemented.In some instances, forMethod, means, element and circuit well known to those skilled in the art are not described in detail, in order to highlight purport of the invention.
Embodiment 1
Fig. 1 shows the implementation flow chart of page operation method according to an embodiment of the invention.As shown in Figure 1, this methodIt specifically includes that
In step s101, it in the case where current page detects the touch slide of specified type, obtains specifiedThe sliding distance of the touch slide of type in a first direction.
It should be noted that the executing subject of the embodiment of the present invention can be mobile phone, tablet computer or PDAMobile 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 be browser page, or (Application is answered APPWith) page or APP window etc., such as video player window.
As an example of the embodiment of the present invention, increase the instruction of monitoring users operation in the page, in current pageIn the case where the touch slide for listening to specified type, the cunning of the touch slide of specified type in a first direction is obtainedDynamic distance.
As an example of the embodiment of the present invention, behaviour that the touch slide of specified type is first long-pressing, slides afterwardsMake.Wherein, long-pressing can be in the case where the position of touch point is constant, the duration of user's finger sustained touch screen be greater than pre-If the operation of duration, for example, preset duration can be 2 seconds.The touch slide of specified type may be pre-setOther 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 inventionHistogram is the relative direction in the current page shown by screen to, horizontal direction.Assuming that in the normal display of current pageState or main display state are rectangle, and vertical direction can be the lower edges generally perpendicular direction with the rectangle, level sideTo can be lower edges substantially horizontal direction with the rectangle.For example, x-axis indicates the coordinate of the horizontal direction of current pageAxis, y-axis indicate the reference axis of the vertical direction of current page, and the starting point coordinate of the touch slide of the specified type is (x1,y1), terminal point coordinate is (x2,y2), then the sliding distance of the touch slide of the specified type in a first direction is | y2-y1|。
It should be noted that first direction can also for vertically upward, vertical downward direction or with x-axis it is positiveAngle is direction at any angle, is not limited thereto.
In step s 102, meet preset condition in the sliding distance of the touch slide of specified type in a first directionIn the case where, return to the previous page of current page.
It, only need to be by specified when using the page operation method of the embodiment of the present invention in without the mobile device for returning to keyThe touch slide of type is the previous page that can return to current page, without passing through the return function in the current page upper left cornerEnergy key returns to previous page, substantially increases the operation convenience that previous page is returned in without the mobile device for returning to key,Improve the operating experience of user.
Fig. 2 shows an illustrative implementation flow charts of page operation method according to an embodiment of the invention.Such as Fig. 2 instituteShow, this method comprises:
In step s 201, it in the case where current page detects the touch slide of specified type, obtains specifiedThe sliding distance of the touch slide of type in a first direction.
In step S202, it is greater than specified type in the touch slide sliding distance in a first direction of specified typeTouch slide in the case where the sliding distance of second direction, return to the previous page of current page.
As an example of the embodiment of the present invention, second direction can be horizontal direction.
As an example of the embodiment of the present invention, the sliding distance of the touch slide of specified type in a first directionMeet preset condition, it can be with are as follows: the sliding distance of the touch slide of specified type in a first direction is greater than specified typeSlide is touched in the sliding distance of second direction.For example, first direction is vertical direction, second direction is horizontal direction.xAxis indicates that the reference axis of the horizontal direction of current page, y-axis indicate the reference axis of the vertical direction of current page.The specified typeTouch slide starting point coordinate be (x1,y1), terminal point coordinate is (x2,y2), then the touch slide of the specified typeSliding distance in a first direction is | y2-y1|, the touch slide of the specified type is in the sliding distance of second direction |x2-x1|, | y2-y1|>|x2-x1| in the case where, return to the previous page of current page.
As another example of the embodiment of the present invention, the sliding of the touch slide of specified type in a first direction away fromIt, can be with from meeting preset condition are as follows: it is default that the sliding distance of the touch slide of specified type in a first direction is greater than firstValue.
Fig. 3 shows an illustrative implementation flow chart of page operation method according to an embodiment of the invention.Such as Fig. 3 instituteShow, this method comprises:
In step S301, in the case where current page detects the touch slide of specified type, obtain specifiedThe sliding distance of the touch slide of type in a first direction.
In step s 302, meet preset condition in the sliding distance of the touch slide of specified type in a first directionIn the case where, the previous page of current page is returned to, and close current page.
In this example, meet preset condition in the sliding distance of the touch slide of specified type in a first directionIn the case of, the previous page of current page is returned to, and close current page.Therefore, it is adopted in without the mobile device for returning to keyWhen with the page operation method of the embodiment of the present invention, only current page need to can return to by the touch slide of specified typePrevious page and close current page, without returning to previous page or pass by the return function key in the current page upper left cornerCurrent page is closed, is substantially increased and is returned to previous page in without the mobile device for returning to key or close the operation of current pageConvenience improves the operating experience of user.
Fig. 4 shows an illustrative implementation flow chart of page operation method according to an embodiment of the invention.Such as Fig. 4 instituteShow, this method comprises:
In step S401, in the case where current page detects the touch slide of specified type, breviary is shownCurrent page.
In step S402, meet preset condition in the touch slide sliding distance in a first direction of specified typeIn the case where, return to the previous page of current page.
In step S403, it is greater than specified type in the sliding distance of second direction in the slide that touches of specified typeTouch slide sliding distance in a first direction in the case where, according to the touch slide of specified type in second partyTo the mobile breviary of sliding distance show after current page.
For example, first direction is vertical direction, second direction is horizontal direction.The horizontal direction of x-axis expression current pageReference axis, y-axis indicate current page vertical direction reference axis.The operation that current page detects first long-pressing, slides afterwardsIn the case where, breviary shows current page.The starting point coordinate of the touch slide of the specified type is (x1,y1), terminal point coordinateFor (x2,y2), then the sliding distance of the touch slide of the specified type in a first direction is | y2-y1|, the specified typeSlide, which is touched, in the sliding distance of second direction is | x2-x1|.| y2-y1|>|x2-x1| in the case where, return to current pageThe previous page in face.| y2-y1|<|x2-x1| in the case where, if x2-x1> 0, then according to x2-x1Size mobile contracting horizontally to the rightShow 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 is shownFace.
Fig. 5 shows an illustrative implementation flow chart of page operation method according to an embodiment of the invention.Such as Fig. 5 instituteShow, this method comprises:
In step S501, video is played by current page.
In step S502, operation that monitoring users execute current page.
In step S503, judge whether to listen to first long-pressing, the operation dragged afterwards in current page, if so, holdingRow step S504, otherwise return step S501.
In step S504, the starting point coordinate and terminal point coordinate of drag operation are obtained.
In step S505, vertical dragging is judged whether it is according to the starting point coordinate of drag operation and terminal point coordinate, if so,S506 is thened follow the steps, it is no to then follow the steps S507.
In step S506, current page is closed.
In step s 507, horizontal dragging is judged whether it is according to the starting point coordinate of drag operation and terminal point coordinate, if so,S508 is thened follow the steps, otherwise return step S502.
In step S508, according to the position of the starting point coordinate of drag operation and the mobile current page of terminal point coordinate, andVideo is put in current page relaying continued broadcasting.
In this way, obtaining specified type in the case where touch slide by detecting specified type in current pageTouch slide sliding distance in a first direction, specified type the sliding in a first direction of touch slide away fromIn the case where meeting preset condition, the previous page of current page, page operation method according to an embodiment of the present invention are returnedIt can be improved the operation convenience of page operation, so as to improve the operating experience of user.
Embodiment 2
Fig. 6 shows the structural block diagram of page operation device according to another embodiment of the present invention.The device can be used for transportingRow Fig. 1 is to page operation method shown in fig. 5.For ease of description, it is illustrated only in Fig. 6 relevant to the embodiment of the present inventionPart.
As shown in fig. 6, the device includes: that sliding distance obtains module 61, for detecting specified type in current pageTouch slide in the case where, obtain the sliding distance of the touch slide of the specified type in a first direction;PageFace return module 62 is preset for the slide that touches in the specified type in the sliding distance satisfaction of the first directionIn the case where condition, the previous page of the current page is returned.
In one possible implementation, the behaviour that the touch slide of the specified type is first long-pressing, slides afterwardsMake.
In one possible implementation, the page return module 62 is specifically used for: in the touching of the specified typeIt touches slide and is greater than the touch slide of the specified type in second direction in the sliding distance of the first directionIn the case where sliding distance, the previous page of the current page is returned.
In one possible implementation, the first direction is vertical direction.
In one possible implementation, described device further include: page close module 63, in the specified classThe touch slide of type closes the current page in the case where the sliding distance of the first direction meets preset conditionFace.
In one possible implementation, described device further include: breviary display module 64, for being examined in current pageIn the case where the touch slide for measuring specified type, breviary shows the current page.
In one possible implementation, described device further include: page movement module 65, in the specified classThe slide that touches of type is greater than the touch slide of the specified type described first in the sliding distance of second directionIn the case where the sliding distance in direction, slide is touched in the sliding distance movement of second direction according to the specified typeBreviary show after the current page.
It should be noted that in this way, in the case where touch slide by detecting specified type in current page,The touch slide sliding distance in a first direction for obtaining specified type, specified type touch slide firstIn the case that the sliding distance in direction meets preset condition, the previous page of current page is returned, it is according to an embodiment of the present inventionPage operation device can be improved the operation convenience of page operation, so as to improve the operating experience of user.
Embodiment 3
Fig. 7 shows a kind of structural block diagram of page operation equipment of another embodiment of the invention.The page behaviourMaking equipment 1100 can be the host server for having computing capability, personal computer PC or portable portable computingMachine or terminal etc..The specific embodiment of the invention does not limit the specific implementation of calculate node.
The page operation equipment 1100 includes processor (processor) 1110, communication interface (CommunicationsInterface) 1120, memory (memory) 1130 and bus 1140.Wherein, processor 1110, communication interface 1120 andMemory 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 toEnjoy storage etc..
Processor 1110 is for executing program.Processor 1110 may be a central processor CPU or dedicated collectionAt circuit ASIC (Application Specific Integrated Circuit), or it is arranged to implement the present inventionOne or more integrated circuits of embodiment.
Memory 1130 is for storing file.Memory 1130 may include high speed RAM memory, it is also possible to further include non-Volatile memory (non-volatile memory), for example, at least a magnetic disk storage.Memory 1130 is also possible to depositMemory array.Memory 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, above procedure can be the program code for including computer operation instruction.The journeySequence is particularly used in: realizing the operation of each step in embodiment 1.
Those of ordinary skill in the art may be aware that each exemplary cell and algorithm in embodiment described hereinStep can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions actually with hardware alsoIt is software form to realize, the specific application and design constraint depending on technical solution.Professional technician can be directed toIt is specific that described function is realized using different methods is selected, but this realization is it is not considered that exceed model of the inventionIt encloses.
If realizing the function and when sold or used as an independent product in the form of computer software,To a certain extent it is believed that all or part (such as the part that contributes to existing technology) of technical solution of the present invention isIt embodies in form of a computer software product.The computer software product is generally stored inside computer-readable non-volatileIn storage medium, including some instructions are used so that computer equipment (can be personal computer, server or network to setIt is standby etc.) execute all or part of the steps of various embodiments of the present invention method.And storage medium above-mentioned include USB flash disk, mobile hard disk,Read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magneticThe various media that can store program code such as dish or CD.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, anyThose familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all containLid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.