Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Fig. 1 shows the implementation process figure of interface response method provided in an embodiment of the present invention, and details are as follows:
In step S101, when receiving N number of click event, click on area corresponding to N number of click event is determined
The click event type supported, wherein, N is the integer more than 1.
It should be noted that the executive agent of the embodiment of the present invention can be mobile terminal, or other computers
Equipment, do not limit herein.Mobile terminal can include mobile phone (or being " honeycomb " phone) and have mobile terminal
Computer, for example, it may be portable, pocket, hand-held, built-in computer or vehicle-mounted mobile device, they with
Wireless access network exchanges language and/or data.For example, PCS (Personal Communication Service,
PCS) phone, wireless phone, Session initiation Protocol (Session Initiation Protocol, SIP) phone, wireless local
Loop (Wireless Local Loop, WLL) is stood, personal digital assistant (Personal Digital Assistant, PDA)
Etc. equipment, it is not limited thereto.
In embodiments of the present invention, once click or a long-press generates a click event.Once double-click, generate
Two click events, by that analogy.Herein, click event can be generated by touch operation, can also be generated by button operation,
Do not limit herein.The click event type that each click on area is supported may be different.For example, a certain click on area may be only
Support is clicked, it is also possible to has both been supported to click or has been supported to double-click.It is assumed herein that the click event type that the first click on area is supported
To click, the click event type that the second click on area is supported is to click and double-click.
In step s 102, M click event in N number of click event is retained according to the click event type,
And the M click event is responded, wherein, M is the integer more than or equal to 1 and less than or equal to N.
If being the first click on area according to the click on area that N number of click event determines, and the point that the first click on area is supported
Event type is hit to click, then retains a click event in N number of click event, and responds the click event, be i.e. response is single
Hit event.
If being the second click on area according to the click on area that N number of click event determines, and the point that the second click on area is supported
Event type is hit to click and double-clicking, then retains two click events in N number of click event, and responds this two click things
Part, that is, respond double click event.
Alternatively, it is described according to the click event class when N number of click event corresponds to same click on area
The M click event that type retains in N number of click event be specially:
The preceding M click event of time of origin in N number of click event is retained according to the click event type.
If being the first click on area according to the click on area that N number of click event determines, retain in N number of click event
First click event, and respond the click event, that is, respond click event.
If being the second click on area according to the click on area that N number of click event determines, retain in N number of click event
The first two clicks on event, and responds two click events, that is, responds double click event.
Alternatively, it is described according to the click event when N number of click event corresponds at least two click on area
The M click event that type retains in N number of click event be specially:
The posterior M click event of time of origin in N number of click event is retained according to the click event type.
If the click on area determined according to N number of click event had both included the first click on area or including the second click on area,
And click on area is the first click on area corresponding to last click event in N number of click event, then retains N number of click thing
Last in part clicks on event, and responds the click event, that is, responds click event.
If the click on area determined according to N number of click event had both included the first click on area or including the second click on area,
And the most click on area corresponding to latter two click event in N number of click event is the second click on area, then retains N number of click
Most latter two click event, and respond two click events in event, that is, respond double click event.
If the click on area determined according to N number of click event had both included the first click on area or including the second click on area,
And click on area corresponding to last click event in N number of click event is the second click on area, in N number of click event
Click on area corresponding to penultimate click event is the first click on area, then retains last in N number of click event
Click event, and respond the click event, that is, respond click event.
Fig. 2 shows interface response method step S101 provided in an embodiment of the present invention specific implementation flow chart, reference
Fig. 2:
It is described when receiving N number of click event, determine the point that click on area corresponding to N number of click event is supported
Hitting event type includes:
In step s 201, when receiving N number of click event, the coordinate information of N number of click event is obtained;
In step S202, the point according to corresponding to the coordinate information of N number of click event determines N number of click event
Hit region;
In step S203, the click event class supported in application icon or interface corresponding to the click on area is determined
Type.
In embodiments of the present invention, it is true according to the coordinate information of the event of click when click event is generated by touch operation
Determine click on area corresponding to clicking operation.Touch operation each time both corresponds to a coordinate information, i.e., each clicks on thing
Part both corresponds to a coordinate information.
Further, the M click event in N number of click event according to the click event type reservation
Afterwards, methods described also includes:
Abandon the N-M click event in addition to the M click event in N number of click event.
In embodiments of the present invention, retain M click event in N number of click event, abandon other N-M click things
Part, interface caused by due to clicking on event continuous response is thus avoided repeatedly to redirect.
It should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process is not meant to the elder generation of execution sequence
Afterwards, the execution sequence of each process should be determined with its function and internal logic, the implementation process structure without tackling the embodiment of the present invention
Into any restriction.
The click event class that the embodiment of the present invention is supported by when receiving N number of click event, determining click on area
Type, further according to the M click event clicked in the N number of click event of event type reservation, and M click event of reservation is responded,
Thus exceed the number of clicks supported at interface or system card immediately in the number of the click event received, avoid interface multiple
Redirect, so as to realize that interface expected from user responds.
Fig. 3 shows the structured flowchart for the interface responding device that the embodiment of the present invention passes through, and the device can be used for running
Interface response method shown in Fig. 1 or Fig. 2.For convenience of description, it illustrate only the part related to the embodiment of the present invention.
Reference picture 3, described device includes:
Event type determining unit 31 is clicked on, for when receiving N number of click event, determining N number of click event
The click event type that corresponding click on area is supported, wherein, N is the integer more than 1;
Interface response unit 32, for retaining M click in N number of click event according to the click event type
Event, and the M click event is responded, wherein, M is the integer more than or equal to 1 and less than or equal to N.
Preferably, the click event type determining unit 31 includes:
Coordinate information obtains subelement 311, for when receiving N number of click event, obtaining N number of click event
Coordinate information;
Click on area determination subelement 312, for determining N number of point according to the coordinate information of N number of click event
Hit click on area corresponding to event;
Event type determination subelement 313 is clicked on, for determining application icon or interface corresponding to the click on area
The click event type supported.
Alternatively, the interface response unit 32 is specifically used for:
When N number of click event corresponds to same click on area, the N is retained according to the click event type
The preceding M click event of time of origin in individual click event, and respond the M click event.
Alternatively, the interface response unit 32 is specifically used for:
When N number of click event corresponds at least two click on area, institute is retained according to the click event type
The posterior M click event of time of origin in N number of click event is stated, and responds the M click event.
Further, the interface response unit 32 is additionally operable to:
Abandon the N-M click event in addition to the M click event in N number of click event.
The click event class that the embodiment of the present invention is supported by when receiving N number of click event, determining click on area
Type, further according to the M click event clicked in the N number of click event of event type reservation, and M click event of reservation is responded,
Thus exceed the number of clicks supported at interface or system card immediately in the number of the click event received, avoid interface multiple
Redirect, so as to realize that interface expected from user responds.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description
With the specific work process of unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can be passed through
Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only
Only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be tied
Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed
Mutual coupling or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication link of unit
Connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.