CN106445376A - Webpage operating method and device - Google Patents

Webpage operating method and device Download PDF

Info

Publication number
CN106445376A
CN106445376A CN201610787263.0A CN201610787263A CN106445376A CN 106445376 A CN106445376 A CN 106445376A CN 201610787263 A CN201610787263 A CN 201610787263A CN 106445376 A CN106445376 A CN 106445376A
Authority
CN
China
Prior art keywords
webpage
touch
event
content
pages
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.)
Granted
Application number
CN201610787263.0A
Other languages
Chinese (zh)
Other versions
CN106445376B (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 CN201610787263.0A priority Critical patent/CN106445376B/en
Publication of CN106445376A publication Critical patent/CN106445376A/en
Application granted granted Critical
Publication of CN106445376B publication Critical patent/CN106445376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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 invention provides a webpage operating method and device, and relates to the technical field of information processing. The method comprises the following steps: when a touch event of a webpage is detected, judging whether a touch conflict happens in the webpage; when the touch conflict happens in the webpage, displaying a conflict prompt message; after a gesture operation of the touch event is reset based on the conflict prompt message, judging whether the gesture operation is detected; and when the gesture operation is detected, making response to the touch event to operate the webpage. According to the webpage operating method and device provided by the embodiment of the invention, the touch conflict in the webpage is judged, after the touch conflict of the webpage is determined, the conflict prompt message is displayed to indicate the user to reset the gesture operation of the touch event, and the webpage is operated according to the gesture operation, so in the case of the touch conflict of the webpage, the user can smoothly operate the webpage by touching the touch screen, and thus the convenience of user operation is enhanced.

Description

The method of operating of a kind of webpage and device
Technical field
It relates to technical field of information processing, particularly relate to method of operating and the device of a kind of webpage.
Background technology
With popularizing of mobile terminal, increasing people selects to use the browser in mobile terminal to carry out web page contents Browsing, on mobile terminals, the operation to webpage in browser realizes typically by the touch event on equipment touch screen 's.The reason that due to webpage design, webpage is frequently present of part web page area and can receive all of touch event, and connecing Touch event is not responded after receipts, when user attempts to trigger touch-control by touching touch screen in this part web page area Conflict can be produced when event realizes the operation to webpage, therefore, instantly need the method for operating of a kind of webpage badly to solve this type of Conflict.
Content of the invention
For overcoming problem present in correlation technique, the disclosure provides method of operating and the device of a kind of webpage.
According to the first aspect of disclosure embodiment, providing the method for operating of a kind of webpage, described method includes:
When the touch event for webpage being detected, it is judged that whether described webpage there occurs touch-control conflict;
When there occurs that touch-control conflicts in described webpage, display conflict prompting message, described conflict prompting message is used for referring to Show and described webpage there occurs, touch-control conflict prompting reset the gesture operation of described touch event;
After reset the gesture operation of described touch event based on described conflict prompting message, it may be judged whether detection To described gesture operation;
When described gesture operation being detected, described touch event is responded, to realize the operation to described webpage.
Alternatively, described judge whether described webpage there occurs touch-control conflict, including:
When described touch event is rolling event, it is judged that whether described webpage exists overflow area, described overflow area Territory is not shown region in described webpage;
When there is overflow area in described webpage, it is judged that whether the content of pages of described webpage there occurs rolling;
When the content of pages of described webpage does not occurs to roll, determine and described webpage there occurs touch-control conflict.
Wherein, when touch event is rolling event, it is judged that whether webpage exists overflow area, overflow when webpage exists When going out region, by judging whether the content of pages of webpage there occurs rolling, can effectively judge whether webpage there occurs Touch-control conflicts, and improves the accuracy judging that touch-control conflicts.
Alternatively, described method also includes:
By registered events receiver in the root window of the browser at currently displaying described webpage for the operating system;
Correspondingly, whether the described content of pages judging described webpage there occurs rolling, including:
Judging whether described Event receiver receives page scroll notice, described page scroll notice is used for notifying described The content of pages of webpage described in Event receiver there occurs rolling;
When described Event receiver does not receives described page scroll notice, determine that the content of pages of described webpage is not sent out Raw rolling;
When described Event receiver receives described page scroll notice, determine that the content of pages of described webpage there occurs Roll.
Owing to webpage usually there will be the part webpage receiving all touch event but not responding touch event Region, therefore, registered events receiver in the root window of the browser of this webpage currently displaying, thus received by this event Device receives rolling event, it is to avoid this rolling event cannot get response after being received by the part web page area in webpage.In addition, it is logical Cross and judge whether Event receiver receives page scroll notice and judge whether content of pages there occurs rolling, improves judgement Accuracy.
Alternatively, described judge whether described webpage there occurs touch-control conflict, including:
When described touch event be content choose event when, it is judged that the active position of touch event described in described webpage Whether content of pages is selected;
When the content of pages of the active position of touch event described in described webpage is not selected, determine in described webpage There occurs touch-control conflict.
Wherein, when touch event be content choose event when, by judging the active position of touch event in webpage Whether content of pages is selected for judging whether to there occurs in webpage touch-control conflict, improves the accuracy judging that touch-control conflicts.
Alternatively, described method also includes:
By registered events receiver in the root window of the browser at currently displaying described webpage for the operating system;
Correspondingly, described judge that whether the content of pages of the active position of touch event described in described webpage is selected, Including:
Judge whether described Event receiver receives content of pages and choose notice, described content of pages choose notice for Notify webpage described in described Event receiver exists selected content of pages;
When described Event receiver do not receive described content of pages choose notice when, determine touch-control described in described webpage The content of pages of the active position of event is not selected;
When described Event receiver receive described content of pages choose notice when, determine touch-control thing described in described webpage The content of pages of the active position of part is selected.
Wherein, registered events receiver in the root window of the browser of this webpage currently displaying, thus by this event Receiver receives rolling event, it is to avoid this rolling event cannot get response after being received by the part web page area in webpage.Separately Outward, by judging whether Event receiver receives content of pages and choose notice to judge the page of active position of touch event Whether content is selected, improves the accuracy of judgement.
According to the second aspect of disclosure embodiment, providing the operation device of a kind of webpage, described device includes:
Whether the first judge module, for when detecting the touch event for webpage, it is judged that occur in described webpage Touch-control conflict;
Display module, for when there occurs that touch-control conflicts in described webpage, display conflict prompting message, described conflict carries Show for indicating, message there occurs in described webpage that touch-control conflict prompting reset the gesture operation of described touch event;
Second judge module, for when the gesture operation resetting described touch event based on described conflict prompting message Afterwards, it may be judged whether described gesture operation detected;
Respond module, for when described gesture operation being detected, responds to described touch event, to realize to institute State the operation of webpage.
Alternatively, described first judge module includes:
Whether first judges submodule, for when described touch event is rolling event, it is judged that exist in described webpage Overflow area, described overflow area is not shown region in described webpage;
Second judges submodule, for when there is overflow area in described webpage, it is judged that the content of pages of described webpage Whether there occurs rolling;
First determination submodule, when the content of pages of described webpage does not occurs to roll, determines in described webpage and there occurs Touch-control conflicts.
Alternatively, described device also includes:
First Registering modules, for registration in the root window by the browser at currently displaying described webpage for the operating system Event receiver;
Correspondingly, described second judges that submodule is used for:
Judging whether described Event receiver receives page scroll notice, described page scroll notice is used for notifying described The content of pages of webpage described in Event receiver there occurs rolling;
When described Event receiver does not receives described page scroll notice, determine that the content of pages of described webpage is not sent out Raw rolling;
When described Event receiver receives described page scroll notice, determine that the content of pages of described webpage there occurs Roll.
Alternatively, described first judge module includes:
3rd judges submodule, for when described touch event be content choose event when, it is judged that described in described webpage Whether the content of pages of the active position of touch event is selected;
Second determination submodule, the content of pages for the active position when touch event described in described webpage is not selected When middle, determine and described webpage there occurs touch-control conflict.
Alternatively, described device also includes:
Second Registering modules, for registration in the root window by the browser at currently displaying described webpage for the operating system Event receiver;
Correspondingly, the described 3rd judges that submodule is used for:
Judge whether described Event receiver receives content of pages and choose notice, described content of pages choose notice for Notify webpage described in described Event receiver exists selected content of pages;
When described Event receiver do not receive described content of pages choose notice when, determine touch-control described in described webpage The content of pages of the active position of event is not selected;
When described Event receiver receive described content of pages choose notice when, determine touch-control thing described in described webpage The content of pages of the active position of part is selected.
According to the third aspect of disclosure embodiment, providing the operation device of a kind of webpage, described device includes:
Processor;
For storing the memory of processor executable;
Wherein, described processor is configured to:
When the touch event for webpage being detected, it is judged that whether described webpage there occurs touch-control conflict;
When there occurs that touch-control conflicts in described webpage, display conflict prompting message, described conflict prompting message is used for referring to Show and described webpage there occurs, touch-control conflict prompting reset the gesture operation of described touch event;
After reset the gesture operation of described touch event based on described conflict prompting message, it may be judged whether detection To described gesture operation;
When described gesture operation being detected, described touch event is responded, to realize the operation to described webpage.
The technical scheme that disclosure embodiment provides can include following beneficial effect:When the touch-control for webpage being detected During event, it is judged that whether webpage there occurs touch-control conflict, and after there occurs touch-control conflict in determining webpage, conflicted by display Prompting message indicates that user resets the gesture operation of touch event, and then grasps in the gesture resetting this touch event After work, detect this gesture operation, and realize the operation to webpage according to the gesture operation resetting detecting, make user When there is touch-control conflict in webpage, the operation touching touch screen realization to webpage can be smoothly through, add user mutual Convenience.
It should be appreciated that it is only exemplary and explanatory, not that above general description and details hereinafter describe The disclosure can be limited.
Brief description
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the enforcement meeting the present invention Example, and for explaining the principle of the present invention together with specification.
Fig. 1 is the flow chart of the method for operating of a kind of webpage according to an exemplary embodiment.
Fig. 2 is the flow chart of the method for operating of a kind of webpage according to an exemplary embodiment.
Fig. 3 A is the block diagram of the operation device of a kind of webpage according to an exemplary embodiment.
Fig. 3 B is the block diagram of a kind of first judge module according to an exemplary embodiment.
Fig. 3 C is the block diagram of the operation device of a kind of webpage according to an exemplary embodiment.
Fig. 3 D is the block diagram of another kind the first judge module according to an exemplary embodiment.
Fig. 4 is the block diagram of the operation device of a kind of webpage according to an exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the present invention.On the contrary, they be only with such as appended The example of the consistent apparatus and method of some aspects that described in detail in claims, the present invention.
Before detailed explanation is carried out to disclosure embodiment, first the application scenarios of disclosure embodiment is given Introduce.Owing to, in correlation technique, mobile terminal is all by usually there will be reception in the webpage shown by the browser of installation Touch event but the part web page area that do not responds touch event, for the ease of describing, to receiving all touch event But the part web page area not responded touch event is referred to as touch-control conflict area, when detection in this touch-control conflict area During to touch event, touch event transmission is processed this to corresponding page elements in this webpage by browser by mobile terminal Touch-control conflict, thus cause user be difficult in this touch-control conflict area by touch touch screen trigger touch event realize right The operation of webpage, therefore, present embodiments provides the method for operating of a kind of webpage, solves and is difficult to lead in this touch-control conflict area Cross the problem that webpage is operated by touch event, enable user to favorably accomplish to this webpage in this touch-control conflict area Operation, enhances the convenience of user operation.
Fig. 1 is the flow chart of the method for operating of a kind of webpage according to an exemplary embodiment, as it is shown in figure 1, should The method of operating of webpage is for, in mobile terminal, comprising the following steps:
In a step 101, when the touch event for webpage being detected, it is judged that whether this webpage there occurs, touch-control rushes Prominent.
In a step 102, when there occurs that touch-control conflicts in this webpage, display conflict prompting message, this conflict prompting disappears For indicating, breath there occurs in this webpage that touch-control conflict prompting reset the gesture operation of this touch event.
In step 103, after reset the gesture operation of this touch event based on this conflict prompting message, it is judged that This gesture operation whether detected.
At step 104, when this gesture operation being detected, this touch event is responded, to realize to this webpage Operation.
In the disclosed embodiments, when the touch event for webpage being detected, it is judged that whether webpage there occurs touch-control Conflict, and after determining in webpage and there occurs touch-control conflict, indicate that user resets by display conflict prompting message tactile The gesture operation of control event, and then after the gesture operation resetting this touch event, detects this gesture operation, and according to The gesture operation resetting detecting realizes the operation to webpage, when making user occur touch-control to conflict in webpage, and can be suitable Profit ground realizes the operation to webpage by touching touch screen, enhances the convenience of user operation.
Alternatively, it is judged that whether webpage there occurs touch-control conflict, including:
When touch event is rolling event, it is judged that whether there is overflow area in webpage, this overflow area is this webpage In not shown region;
When there is overflow area in this webpage, it is judged that whether the content of pages of this webpage there occurs rolling;
When the content of pages of this webpage does not occurs to roll, determine and this webpage there occurs touch-control conflict.
Alternatively, described method also includes:
By registered events receiver in the root window of the browser at this webpage currently displaying for the operating system;
Correspondingly, it is judged that whether the content of pages of this webpage there occurs rolling, including:
Judging whether Event receiver receives page scroll notice, this page scroll notice is used for notification event receiver The content of pages of webpage there occurs rolling;
When this Event receiver does not receives page scroll notice, determine that the content of pages of this webpage rolls;
When this Event receiver receives page scroll notice, determine that the content of pages of this webpage there occurs rolling.
Alternatively, it is judged that whether this webpage there occurs touch-control conflict, including:
When this touch event be content choose event when, it is judged that in this webpage the active position of this touch event the page in Whether selected hold;
When the content of pages of the active position of this touch event in this webpage is not selected, determines in this webpage and there occurs Touch-control conflicts.
Alternatively, described method also includes:
By registered events receiver in the root window of the browser at this webpage currently displaying for the operating system;
Correspondingly, it is judged that in this webpage, whether the content of pages of the active position of this touch event selected, including:
Judging whether this Event receiver receives content of pages and choose notice, this content of pages chooses notice for notifying There is selected content of pages in this webpage of this Event receiver;
When this Event receiver do not receive this content of pages choose notice when, determine the work of this touch event in this webpage Not selected with the content of pages of position;
When this Event receiver receive this content of pages choose notice when, determine the effect of this touch event in this webpage The content of pages of position is selected.
Above-mentioned all optional technical schemes, all can be real according to any alternative embodiment combining the formation disclosure, the disclosure Execute example no longer to repeat this one by one.
Fig. 2 is the method for operating of a kind of webpage according to an exemplary embodiment, as in figure 2 it is shown, the behaviour of this webpage Make method in mobile terminal, comprise the following steps:
In step 201, connect by registered events in the root window of the browser at this webpage currently displaying for the operating system Receive device.
Owing to there is touch-control conflict area in webpage, this touch-control conflict area receives all touch event but to touch event Not responding, for the conflict of this type of touch-control, mobile terminal first passes through the browser at this webpage currently displaying for the operating system Root window in registered events receiver, this Event receiver may be used for receive touch event, it is to avoid touch event is by touch-control Conflict area cannot get response after receiving.
Further, in order to show webpage, mobile terminal is provided with browser, running based on mobile terminal of browser Operating system, therefore, mobile terminal is by registered events in the root window of the browser at this webpage currently displaying for the operating system The process of receiver can be:This browser sends registration request to the operating system of mobile terminal, and operating system is receiving After this registration request, generate the registration file of Event receiver thus the registration that completes Event receiver.
Wherein, this registration request is for indicating that mobile terminal passes through operating system and registers thing in the root window of this browser Part receiver, the root window of this browser is the root window of the browser of currently displaying webpage.
It should be noted that when multiple windows that the browser in mobile terminal is opened show with hierarchical structure, browse The root window of device can be the root in this hierarchical structure, and in other words, other windows are to give birth to based on the root window of this browser Become.
Also, it should be noted mobile terminal can carry out the note of Event receiver when this webpage of this browser display Volume, it is also possible to carry out the registration of Event receiver when the touch event for this webpage being detected, it is of course also possible at other Opportunity registers, and such as the registration carrying out Event receiver when operating system is in idle condition detected, or works as When detecting that browser starts etc., this is not specifically limited by disclosure embodiment.
In step 202., when the touch event for this webpage being detected, it is judged that whether this webpage there occurs touch-control Conflict.
Mobile terminal corresponding can be provided with different gesture operations for different touch event, such as along touch screen The gesture operation of longitudinal sliding motion can trigger rolling event, long by the gesture dragging after a certain fixed position of touch screen Operation can trigger content and choose event etc..Therefore, when mobile terminal detects gesture operation, it is judged that this hand detecting Whether gesture operation is identical with the gesture operation arranging, and when the gesture operation detecting is identical with the gesture operation of setting, determines Detect the touch event for this webpage, otherwise, it determines be not detected by the touch event for this webpage.Wherein, detect To gesture operation can be for user by touching touch screen and the gesture operation that generate.
It should be noted that the gesture operation detecting is identical with the gesture operation of setting can be the gesture behaviour detecting Make track to match with the gesture operation track of setting.
Also, it should be noted touch event can include that rolling event, content choose event etc., disclosure embodiment This is not specifically limited.
In the disclosed embodiments, owing to touch event can include that rolling event, content choose event etc., therefore, When the touch event for this webpage being detected, for different touch event, it is judged that whether this webpage occurs touch-control rush Dash forward and can include following two implementation:
The first implementation:When the touch event detecting is rolling event, it is judged that whether webpage exists spilling , when there is overflow area in region, it is judged that whether the content of pages of this webpage there occurs rolling in webpage, when the page of this webpage When content does not occurs to roll, determine and this webpage there occurs touch-control conflict.
Further, when webpage does not exists overflow area, determine and this webpage does not occurs touch-control conflict.Or, when Webpage exists the content of pages of overflow area and this webpage when there occurs rolling, determine and this webpage does not occurs touch-control conflict.
Wherein, mobile terminal can judge whether there is overflow area in webpage by following two kinds of strategies:
The first strategy:Obtain the size of webpage, and judge that the size of touch screen, whether more than the size of webpage, works as touch-control When the size of screen is more than the size of webpage, determine that webpage does not exist overflow area;Being smaller in size than or being equal to net when touch screen Page size when, determine that webpage exists overflow area.
It should be noted that the overflow area in disclosure embodiment is when the content in webpage cannot be disposably at touch-control When all showing on screen, the non-viewing area outside removing current display area in this webpage.For example, when the size of webpage is more than During the size of touch screen, this webpage removes remaining the non-viewing area outside the region of display in the size range of current touch screen Territory is then for the overflow area in this webpage.
The second strategy:Judge whether the window of this webpage currently displaying shows scroll bar, if currently displaying should The window of webpage shows scroll bar, it is determined that this webpage exists overflow area, otherwise, it is determined that this webpage does not exists Overflow area.
Wherein, scroll bar can be when the size of webpage is more than the size of touch screen, is shown in the strip of webpage side Thing, the content of pages in webpage, by mobile scroll bar, can be rolled by mobile terminal, thus by not shown overflow area Territory is shown on touch screen.
It should be noted that mobile terminal judges whether there is spilling in webpage not only by above two strategy Region, it is, of course, also possible to realize by other means, this is not specifically limited by disclosure embodiment.
Wherein, this mobile terminal judges whether the content of pages of this webpage there occurs that the process that realizes of rolling can be:Sentence Whether disconnected Event receiver receives page scroll notice, when Event receiver receives page scroll notice, determines webpage Content of pages there occurs rolling, when Event receiver do not receive page scroll notice when, determine the content of pages of webpage not Roll.Wherein, page scroll notice there occurs rolling for the content of pages of notification event receiver webpage.
Further, when showing scroll bar in the window of this webpage currently displaying, this mobile terminal may determine that this Whether the position of scroll bar there occurs change, when the position of this scroll bar there occurs change, determines and sends to Event receiver Page scroll notifies, when the position of this scroll bar does not changes, determines and does not sends page scroll notice to Event receiver.
The second implementation:When the touch event detecting be content choose event when, it is judged that this touch-control thing in webpage Whether the content of pages at the active position of part is selected, the content of pages at the active position of this touch event in this webpage When not selected, determine and this webpage there occurs touch-control conflict.In the page at the active position of this touch event in webpage Hold selected, determine and this webpage does not occurs touch-control conflict.
Wherein, mobile terminal judges the whether selected realization of the content of pages of the active position of touch event in webpage Journey can be:Judge whether Event receiver receives content of pages and choose notice, when Event receiver receives content of pages When choosing notice, determine that the content of pages at the active position of touch event in this webpage is selected, when Event receiver not Receive content of pages when choosing notice, determine that the content of pages at the active position of touch event in this webpage is not selected. Wherein, content of pages chooses notice to there is selected content of pages in this webpage of notification event receiver.
It should be noted that it can be by touch screen and to pull the touch-control that cursor triggers by length that this content chooses event Event, and this content chooses event for choosing the content of pages at active position.
In step 203, when there occurs that touch-control conflicts in this webpage, display conflict prompting message, this conflict prompting disappears For indicating, breath there occurs in this webpage that touch-control conflict prompting reset the gesture operation of this touch event.
When mobile terminal display conflict prompting message, this conflict prompting message both can be shown in the form of message box On currently displaying webpage, it is also possible to be shown in the informing of mobile terminal by the form pushing, it is of course also possible to pass through Arrange dialog box to point out user, and the feedback based on user carry out resetting of the gesture operation of this touch event, This is not specifically limited by disclosure embodiment.
When on this conflict prompting message is with the webpage of the currently displayed display of form of message box or dialog box, this message Frame or dialog box both may be located at the middle position of webpage, it is also possible to be positioned at other positions except middle position, and the disclosure is real Execute example to be also not specifically limited this.
It should be noted that this conflict prompting message is used for indicating in this webpage there occurs that touch-control conflict prompting set again Put the information that can carry this gesture operation resetting in the gesture operation of this touch event, and this conflict prompting message. Wherein, the gesture operation resetting this touch event both can be based on having reset of carrying in this conflict prompting message The information of gesture operation resets, it is also possible to be that user is arranged by mobile terminal self and inputs gesture operation and completes Reset.
So far, whether this mobile terminal is for the touch event detecting in this webpage, it is judged that there occurs tactile in this webpage Control conflict, after there occurs that touch-control conflicts in this webpage of determination, resets this touch-control by display conflict prompting message prompting The gesture operation of event, based on the gesture operation of this touch event resetting, mobile terminal can pass through step 204-205 Realize the operation to this webpage.
In step 204, after reset the gesture operation of this touch event based on this conflict prompting message, it is judged that This gesture operation whether detected.
After reset the gesture operation of touch event based on conflict prompting message, mobile terminal detection gesture behaviour Make, after gesture operation being detected, it is judged that this gesture operation detecting whether gesture with this touch event resetting Operate identical.When determining that this gesture operation detecting is identical with the gesture operation of this touch event resetting, then hold Row step 205.The gesture operation that the gesture operation wherein detecting can be generated by touching touch screen for user.
Wherein, the gesture operation detecting is identical with the gesture operation resetting can be the action of this touch touch screen Track matches with the gesture operation track of setting.
In step 205, when this gesture operation being detected, this touch event is responded, to realize to this webpage Operation.
When the gesture operation resetting being detected, based on this gesture operation, to this gesture operation corresponding touch-control thing Part responds.Wherein, mobile terminal is referred to related skill based on the method that touch event is responded by this gesture operation The method that in art, other events are responded by mobile terminal according to gesture operation, this is not done and explains in detail by disclosure embodiment State.
In the disclosed embodiments, when the touch event for webpage being detected, it is judged that whether webpage there occurs touch-control Conflict, and after determining in webpage and there occurs touch-control conflict, indicate that user resets by display conflict prompting message tactile The gesture operation of control event, and then after the gesture operation resetting this touch event, detects this gesture operation, and according to The gesture operation resetting detecting realizes the operation to webpage, when making user occur touch-control to conflict in webpage, and can be suitable Profit ground realizes the operation to webpage by touching touch screen, enhances the convenience of user operation.
Fig. 3 A is operation device 300 block diagram of a kind of webpage according to an exemplary embodiment.With reference to Fig. 3 A, this dress Put and include the first judge module 301, display module the 302nd, the second judge module 303 and respond module 304.
Whether the first judge module 301, for when detecting the touch event for webpage, it is judged that occur in this webpage Touch-control conflict;
Display module 302, for when there occurs that touch-control conflicts in this webpage, display conflict prompting message, this conflict carries Show for indicating, message there occurs in this webpage that touch-control conflict prompting reset the gesture operation of this touch event;
Second judge module 303, for when the gesture operation resetting this touch event based on this conflict prompting message Afterwards, it may be judged whether this gesture operation detected;
Respond module 304, for when this gesture operation being detected, responds to this touch event, to realize to this The operation of webpage.
Alternatively, seeing Fig. 3 B, the first judge module 301 includes:
Whether first judges submodule 3011, for when this touch event is rolling event, it is judged that exist in this webpage Overflow area, this overflow area is not shown region in this webpage;
Second judges submodule 3012, for when there is overflow area in this webpage, it is judged that the content of pages of this webpage Whether there occurs rolling;
First determination submodule 3013, when the content of pages of this webpage does not occurs to roll, determines in this webpage and there occurs Touch-control conflicts.
Alternatively, seeing Fig. 3 C, the operation device 300 of this webpage also includes:
First Registering modules 305, for note in the root window by the browser at this webpage currently displaying for the operating system Volume Event receiver;
Correspondingly, this second judges that submodule is used for:
Judging whether this Event receiver receives page scroll notice, this page scroll notice is used for notifying that this event connects The content of pages receiving this webpage of device there occurs rolling;
When this Event receiver does not receives this page scroll notice, determine that the content of pages of this webpage rolls Dynamic;
When this Event receiver receives this page scroll notice, determine that the content of pages of this webpage there occurs rolling.
Alternatively, seeing Fig. 3 D, this first judge module 301 includes:
3rd judges submodule 3014, for when this touch event be content choose event when, it is judged that in this webpage this touch Whether the content of pages of the active position of control event is selected;
Second determination submodule 3015, is used for when the content of pages of the active position of this touch event in this webpage is not selected When middle, determine and this webpage there occurs touch-control conflict.
Alternatively, the operation device 300 of this webpage also includes:
Second Registering modules, for registration thing in the root window by the browser at this webpage currently displaying for the operating system Part receiver;
Correspondingly, the 3rd judges that submodule is used for:
Judging whether this Event receiver receives content of pages and choose notice, this content of pages chooses notice for notifying There is selected content of pages in this webpage of this Event receiver;
When this Event receiver do not receive this content of pages choose notice when, determine the work of this touch event in this webpage Not selected with the content of pages of position;
When this Event receiver receive this content of pages choose notice when, determine the effect of this touch event in this webpage The content of pages of position is selected.
In the disclosed embodiments, when the touch event for webpage being detected, it is judged that whether webpage there occurs touch-control Conflict, and after determining in webpage and there occurs touch-control conflict, indicate that user resets by display conflict prompting message tactile The gesture operation of control event, and then after the gesture operation resetting this touch event, detects this gesture operation, and according to The gesture operation resetting detecting realizes the operation to webpage, when making user occur touch-control to conflict in webpage, and can be suitable Profit ground realizes the operation to webpage by touching touch screen, enhances the convenience of user operation.
With regard to the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 4 is the block diagram of the device 400 of a kind of operation for webpage according to an exemplary embodiment.For example, Device 400 can be such as mobile phone, the mobile terminal of tablet device etc.
With reference to Fig. 4, device 400 can include following one or more assembly:Process assembly 402, memory 404, power supply Assembly 406, multimedia groupware 408, audio-frequency assembly 410, the interface 412 of input/output (I/O), sensor cluster 414, and Communications component 416.
Process assembly 402 and generally control the integrated operation of device 400, such as with display, call, data communication, phase The operation that machine operation and record operation are associated.Process assembly 402 and can include that one or more processor 420 performs to refer to Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 402 can include one or more module, just Mutual in process between assembly 402 and other assemblies.For example, process assembly 402 and can include multi-media module, many to facilitate Media component 408 and process between assembly 402 mutual.
Memory 404 is configured to store various types of data to support the operation at device 400.Showing of these data Example includes the instruction of any application program for operation on device 400 or method, contact data, telephone book data, disappears Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
The various assembly that power supply module 406 is device 400 provides power supply.Power supply module 406 can include power management system System, one or more power supplys, and other generate, manage and distribute, with for device 400, the assembly that power supply is associated.
Multimedia groupware 408 includes the screen of one output interface of offer between described device 400 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensing Device is to sense touch, to slide and the gesture on touch panel.Described touch sensor can not only sense touch or sliding action Border, but also detection and described touch or slide related duration and pressure.In certain embodiments, many matchmakers Body assembly 408 includes a front-facing camera and/or post-positioned pick-up head.When device 400 is in operator scheme, such as screening-mode or During video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each front-facing camera and Post-positioned pick-up head can be a fixing optical lens system or have focal length and optical zoom ability.
Audio-frequency assembly 410 is configured to output and/or input audio signal.For example, audio-frequency assembly 410 includes a Mike Wind (MIC), when device 400 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone is joined It is set to receive external audio signal.The audio signal being received can be further stored at memory 404 or via communication set Part 416 sends.In certain embodiments, audio-frequency assembly 410 also includes a loudspeaker, is used for exporting audio signal.
I/O interface 412 provides interface for processing between assembly 402 and peripheral interface module, above-mentioned peripheral interface module can To be keyboard, put striking wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Set button.
Sensor cluster 414 includes one or more sensor, for providing the state of various aspects to comment for device 400 Estimate.For example, what sensor cluster 414 can detect device 400 opens/closed mode, and the relative positioning of assembly is for example described Assembly is display and the keypad of device 400, and sensor cluster 414 can also detect device 400 or 400 1 assemblies of device Position change, user is presence or absence of with what device 400 contacted, device 400 orientation or acceleration/deceleration and device 400 Temperature changes.Sensor cluster 414 can include proximity transducer, is configured to detect when not having any physical contact The existence of neighbouring object.Sensor cluster 414 can also include optical sensor, such as CMOS or ccd image sensor, for becoming Use as in application.In certain embodiments, this sensor cluster 414 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 416 is configured to facilitate the communication of wired or wireless mode between device 400 and other equipment.Device 400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.An exemplary enforcement In example, communications component 416 receives the broadcast singal from external broadcasting management system or broadcast related information via broadcast channel. In one exemplary embodiment, described communications component 416 also includes near-field communication (NFC) module, to promote junction service.Example As, can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, Bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 400 can be by one or more application specific integrated circuits (ASIC), numeral letter Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realize, are used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable recording medium including instruction, example are additionally provided As included the memory 404 of instruction, above-mentioned instruction can be performed by the processor 420 of device 400 to complete said method.For example, Described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is by the process of mobile terminal When device performs so that mobile terminal is able to carry out the method for operating of a kind of webpage, and described method includes:
When the touch event for webpage being detected, it is judged that whether this webpage there occurs touch-control conflict;
When there occurs that touch-control conflicts in this webpage, display conflict prompting message, this conflict prompting message is used for indicating this Webpage there occurs, touch-control conflict prompting reset the gesture operation of this touch event;
After reset the gesture operation of this touch event based on this conflict prompting message, it may be judged whether detect this Gesture operation;
When this gesture operation being detected, this touch event is responded, to realize the operation to this webpage.
Alternatively, it is judged that whether webpage there occurs touch-control conflict, including:
When touch event is rolling event, it is judged that whether there is overflow area in webpage, this overflow area is this webpage In not shown region;
When there is overflow area in this webpage, it is judged that whether the content of pages of this webpage there occurs rolling;
When the content of pages of this webpage does not occurs to roll, determine and this webpage there occurs touch-control conflict.
Alternatively, described method also includes:
By registered events receiver in the root window of the browser at this webpage currently displaying for the operating system;
Correspondingly, it is judged that whether the content of pages of this webpage there occurs rolling, including:
Judging whether Event receiver receives page scroll notice, this page scroll notice is used for notification event receiver The content of pages of webpage there occurs rolling;
When this Event receiver does not receives page scroll notice, determine that the content of pages of this webpage rolls;
When this Event receiver receives page scroll notice, determine that the content of pages of this webpage there occurs rolling.
Alternatively, it is judged that whether this webpage there occurs touch-control conflict, including:
When this touch event be content choose event when, it is judged that in this webpage the active position of this touch event the page in Whether selected hold;
When the content of pages of the active position of this touch event in this webpage is not selected, determines in this webpage and there occurs Touch-control conflicts.
Alternatively, described method also includes:
By registered events receiver in the root window of the browser at this webpage currently displaying for the operating system;
Correspondingly, it is judged that in this webpage, whether the content of pages of the active position of this touch event selected, including:
Judging whether this Event receiver receives content of pages and choose notice, this content of pages chooses notice for notifying There is selected content of pages in this webpage of this Event receiver;
When this Event receiver do not receive this content of pages choose notice when, determine the work of this touch event in this webpage Not selected with the content of pages of position;
When this Event receiver receive this content of pages choose notice when, determine the effect of this touch event in this webpage The content of pages of position is selected.
In the disclosed embodiments, when the touch event for webpage being detected, it is judged that whether webpage there occurs touch-control Conflict, and after determining in webpage and there occurs touch-control conflict, indicate that user resets by display conflict prompting message tactile The gesture operation of control event, and then after the gesture operation resetting this touch event, detects this gesture operation, and according to The gesture operation resetting detecting realizes the operation to webpage, when making user occur touch-control to conflict in webpage, and can be suitable Profit ground realizes the operation to webpage by touching touch screen, enhances the convenience of user operation.
Those skilled in the art, after considering specification and putting into practice invention disclosed herein, will readily occur to its of the present invention Its embodiment.The application is intended to any modification, purposes or the adaptations of the present invention, these modification, purposes or Person's adaptations is followed the general principle of the present invention and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques means.Description and embodiments is considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
It should be appreciated that the invention is not limited in precision architecture described above and illustrated in the accompanying drawings, and And various modifications and changes can carried out without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (11)

1. the method for operating of a webpage, it is characterised in that described method includes:
When the touch event for webpage being detected, it is judged that whether described webpage there occurs touch-control conflict;
When there occurs that touch-control conflicts in described webpage, display conflict prompting message, described conflict prompting message is used for indicating institute State the gesture operation that there occurs in webpage that touch-control conflict prompting reset described touch event;
After reset the gesture operation of described touch event based on described conflict prompting message, it may be judged whether institute detected State gesture operation;
When described gesture operation being detected, described touch event is responded, to realize the operation to described webpage.
2. the method for claim 1, it is characterised in that described judge whether to there occurs in described webpage touch-control conflict, Including:
When described touch event is rolling event, it is judged that whether there is overflow area in described webpage, described overflow area is Not shown region in described webpage;
When there is overflow area in described webpage, it is judged that whether the content of pages of described webpage there occurs rolling;
When the content of pages of described webpage does not occurs to roll, determine and described webpage there occurs touch-control conflict.
3. method as claimed in claim 2, it is characterised in that described method also includes:
By registered events receiver in the root window of the browser at currently displaying described webpage for the operating system;
Correspondingly, whether the described content of pages judging described webpage there occurs rolling, including:
Judging whether described Event receiver receives page scroll notice, described page scroll notice is used for notifying described event The content of pages of webpage described in receiver there occurs rolling;
When described Event receiver does not receives described page scroll notice, determine that the content of pages of described webpage rolls Dynamic;
When described Event receiver receives described page scroll notice, determine that the content of pages of described webpage there occurs rolling Dynamic.
4. the method for claim 1, it is characterised in that described judge whether to there occurs in described webpage touch-control conflict, Including:
When described touch event be content choose event when, it is judged that the page of the active position of touch event described in described webpage Whether content is selected;
When the content of pages of the active position of touch event described in described webpage is not selected, determines in described webpage and occur Touch-control conflict.
5. method as claimed in claim 4, it is characterised in that described method also includes:
By registered events receiver in the root window of the browser at currently displaying described webpage for the operating system;
Correspondingly, described judge that whether the content of pages of the active position of touch event described in described webpage is selected, including:
Judging whether described Event receiver receives content of pages and choose notice, described content of pages chooses notice for notifying Webpage described in described Event receiver exists selected content of pages;
When described Event receiver do not receive described content of pages choose notice when, determine touch event described in described webpage The content of pages of active position not selected;
When described Event receiver receive described content of pages choose notice when, determine touch event described in described webpage The content of pages of active position is selected.
6. the operation device of a webpage, it is characterised in that described device includes:
Whether the first judge module, for when detecting the touch event for webpage, it is judged that there occurs tactile in described webpage Control conflict;
Display module, for when there occurs that touch-control conflicts in described webpage, display conflict prompting message, described conflict prompting disappears For indicating, breath there occurs in described webpage that touch-control conflict prompting reset the gesture operation of described touch event;
Second judge module, for when based on described conflict prompting message reset described touch event gesture operation it After, it may be judged whether described gesture operation detected;
Respond module, for when described gesture operation being detected, responds to described touch event, to realize to described net The operation of page.
7. device as claimed in claim 6, it is characterised in that described first judge module includes:
First judges submodule, for when described touch event is rolling event, it is judged that whether there is spilling in described webpage Region, described overflow area is not shown region in described webpage;
Second judges submodule, for when there is overflow area in described webpage, it is judged that whether the content of pages of described webpage There occurs rolling;
First determination submodule, when the content of pages of described webpage does not occurs to roll, determines in described webpage and there occurs touch-control Conflict.
8. device as claimed in claim 7, it is characterised in that described device also includes:
First Registering modules, for registered events in the root window by the browser at currently displaying described webpage for the operating system Receiver;
Correspondingly, described second judges that submodule is used for:
Judging whether described Event receiver receives page scroll notice, described page scroll notice is used for notifying described event The content of pages of webpage described in receiver there occurs rolling;
When described Event receiver does not receives described page scroll notice, determine that the content of pages of described webpage rolls Dynamic;
When described Event receiver receives described page scroll notice, determine that the content of pages of described webpage there occurs rolling Dynamic.
9. device as claimed in claim 6, it is characterised in that described first judge module includes:
3rd judges submodule, for when described touch event be content choose event when, it is judged that touch-control described in described webpage Whether the content of pages of the active position of event is selected;
Second determination submodule, the content of pages for the active position when touch event described in described webpage is not selected When, determine and described webpage there occurs touch-control conflict.
10. device as claimed in claim 9, it is characterised in that described device also includes:
Second Registering modules, for registered events in the root window by the browser at currently displaying described webpage for the operating system Receiver;
Correspondingly, the described 3rd judges that submodule is used for:
Judging whether described Event receiver receives content of pages and choose notice, described content of pages chooses notice for notifying Webpage described in described Event receiver exists selected content of pages;
When described Event receiver do not receive described content of pages choose notice when, determine touch event described in described webpage The content of pages of active position not selected;
When described Event receiver receive described content of pages choose notice when, determine touch event described in described webpage The content of pages of active position is selected.
The operation device of 11. 1 kinds of webpages, it is characterised in that described device includes:
Processor;
For storing the memory of processor executable;
Wherein, described processor is configured to:
When the touch event for webpage being detected, it is judged that whether described webpage there occurs touch-control conflict;
When there occurs that touch-control conflicts in described webpage, display conflict prompting message, described conflict prompting message is used for indicating institute State the gesture operation that there occurs in webpage that touch-control conflict prompting reset described touch event;
After reset the gesture operation of described touch event based on described conflict prompting message, it may be judged whether institute detected State gesture operation;
When described gesture operation being detected, described touch event is responded, to realize the operation to described webpage.
CN201610787263.0A 2016-08-30 2016-08-30 Webpage operation method and device Active CN106445376B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610787263.0A CN106445376B (en) 2016-08-30 2016-08-30 Webpage operation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610787263.0A CN106445376B (en) 2016-08-30 2016-08-30 Webpage operation method and device

Publications (2)

Publication Number Publication Date
CN106445376A true CN106445376A (en) 2017-02-22
CN106445376B CN106445376B (en) 2020-03-03

Family

ID=58163602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610787263.0A Active CN106445376B (en) 2016-08-30 2016-08-30 Webpage operation method and device

Country Status (1)

Country Link
CN (1) CN106445376B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109817204A (en) * 2019-02-26 2019-05-28 深圳安泰创新科技股份有限公司 Voice interactive method and device, electronic equipment, readable storage medium storing program for executing
CN111381746A (en) * 2018-12-27 2020-07-07 北京小米移动软件有限公司 Parameter adjusting method, device and storage medium
WO2024104161A1 (en) * 2022-11-15 2024-05-23 华为技术有限公司 Gesture touch method and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102810023A (en) * 2011-06-03 2012-12-05 联想(北京)有限公司 Gesture recognition method and terminal equipment
CN103019444A (en) * 2012-12-09 2013-04-03 广州市动景计算机科技有限公司 Touch operation method of touch screen and touch screen device
US20130086532A1 (en) * 2011-09-30 2013-04-04 Oracle International Corporation Touch device gestures
CN105892894A (en) * 2015-09-09 2016-08-24 北京奇虎科技有限公司 Screen scroll event conflict processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102810023A (en) * 2011-06-03 2012-12-05 联想(北京)有限公司 Gesture recognition method and terminal equipment
US20130086532A1 (en) * 2011-09-30 2013-04-04 Oracle International Corporation Touch device gestures
CN103019444A (en) * 2012-12-09 2013-04-03 广州市动景计算机科技有限公司 Touch operation method of touch screen and touch screen device
CN105892894A (en) * 2015-09-09 2016-08-24 北京奇虎科技有限公司 Screen scroll event conflict processing method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381746A (en) * 2018-12-27 2020-07-07 北京小米移动软件有限公司 Parameter adjusting method, device and storage medium
CN109817204A (en) * 2019-02-26 2019-05-28 深圳安泰创新科技股份有限公司 Voice interactive method and device, electronic equipment, readable storage medium storing program for executing
WO2024104161A1 (en) * 2022-11-15 2024-05-23 华为技术有限公司 Gesture touch method and electronic device

Also Published As

Publication number Publication date
CN106445376B (en) 2020-03-03

Similar Documents

Publication Publication Date Title
CN106951884A (en) Gather method, device and the electronic equipment of fingerprint
CN106489129A (en) The method and device that a kind of content is shared
CN103927081A (en) Method and device for processing notification events
CN106896991A (en) A kind of method and device of fresh information
CN104536787B (en) Resource preloads method and device
CN106055707A (en) Bullet screen display method and device
CN107202574A (en) Motion track information modification method and device
CN107483594A (en) The method and apparatus of display renewal entry
CN104537380A (en) Clustering method and device
CN107783711A (en) Application program is controlled to perform the method and device of operation
CN104503690A (en) Arrangement method and device for application icons
CN106325670A (en) Message prompting method and device
CN106503131A (en) Obtain the method and device of interest information
CN105824819A (en) Image loading method, device and electronic device
CN105892869A (en) Image position adjusting method and device
CN105487758A (en) Method and device for popup control of application software, and terminal equipment
CN106886357A (en) A kind of information deletion method and device
CN106445376A (en) Webpage operating method and device
CN105187671A (en) Recording method and device
CN107132983A (en) Split screen window operation method and device
CN104166692A (en) Method and device for adding labels on photos
CN106775708A (en) The page layout switch control method and device of mobile terminal
CN106844717A (en) Webpage search display methods and device
CN105094297A (en) Display content zooming method and display content zooming device
CN106708967A (en) Page display 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