CN107422979A - A kind of page control method by sliding, system and terminal device - Google Patents
A kind of page control method by sliding, system and terminal device Download PDFInfo
- Publication number
- CN107422979A CN107422979A CN201710909633.8A CN201710909633A CN107422979A CN 107422979 A CN107422979 A CN 107422979A CN 201710909633 A CN201710909633 A CN 201710909633A CN 107422979 A CN107422979 A CN 107422979A
- Authority
- CN
- China
- Prior art keywords
- display area
- current display
- event
- difference
- slip
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0485—Scrolling or panning
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 application is applied to communication technical field, there is provided a kind of page control method by sliding, system and terminal device, wherein, method includes:When detecting the long-press event of touch screen terminal current display area, slip event is monitored;If listening to the slip event in preset time, the glide direction of the slip event is determined;Content shown by control current display area is slided along the glide direction.The embodiment of the present application when detecting the long-press event of the current display area of touch screen terminal by monitoring slip event, if slip event is listened in the given time, the content shown by current display area is then controlled to slide, so that user only needs to perform current display area the long-press operation of one-time continuous and slide, content shown by i.e. controllable current display area is persistently slided, number of operations can be effectively reduced, it is easy to operate.
Description
Technical field
The application belongs to communication technical field, more particularly to a kind of page control method by sliding, system and terminal device.
Background technology
With the continuous development of scientific technology, the Intelligent touch display device such as mobile phone, tablet personal computer is constantly popularized, and is people
Production and life bring great convenience.Touching display device can detect what user's finger inputted by its touch screen terminal
Touch operation is simultaneously identified as corresponding control instruction, so as to perform corresponding operation.
However, the limitation of the screen size due to existing touch display device, generally can not be a current display area
Domain shows all data, it is necessary to which user could show other data in the enterprising line slip operation of screen, when data volume is larger, then
User is needed to carry out multiple slide, it is cumbersome.
The content of the invention
In view of this, the embodiment of the present application provides a kind of page control method by sliding, system and terminal device, Ke Yi
When the data volume that current display area needs are shown is larger, number of operations of the user to screen is effectively reduced, it is easy to operate.
The first aspect of the embodiment of the present application provides a kind of page control method by sliding, and it includes:
When detecting the long-press event of touch screen terminal current display area, slip event is monitored;
If listening to the slip event in preset time, the glide direction of the slip event is determined;
Content shown by control current display area is slided along the glide direction.
The second aspect of the embodiment of the present application provides a kind of page slip control system, and it includes:
Event checking module, for when detecting the long-press event of touch screen terminal current display area, monitoring and sliding
Event;
Direction determining mould, if for listening to the slip event in preset time, determine the slip event
Glide direction;
Control module is slided, for controlling the content shown by current display area to be slided along the glide direction.
The third aspect of the embodiment of the present application provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, described in the computing device during computer program
The step of realizing the above method
The fourth aspect of the embodiment of the present application provides a kind of computer-readable recording medium, the computer-readable storage
Media storage has the step of computer program, the computer program realizes the above method when being executed by processor.
The 5th aspect of the application provides a kind of computer program product, and the computer program product includes computer
Program, the computer program realize the methods described that the application first aspect provides when being executed by one or more processors
Step.
The embodiment of the present application is slided by being monitored when detecting the long-press event of the current display area of touch screen terminal
Event, if listening to slip event in the given time, the content shown by current display area is controlled to slide so that user
Only need the long-press operation to current display area execution one-time continuous and slide, you can control current display area shows
The content shown persistently is slided, and can effectively reduce number of operations, easy to operate.
Brief description of the drawings
, below will be to embodiment or description of the prior art in order to illustrate more clearly of the technical scheme in the embodiment of the present application
In the required accompanying drawing used be briefly described, it should be apparent that, drawings in the following description are only some of the application
Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these
Accompanying drawing obtains other accompanying drawings.
Fig. 1 is the schematic flow sheet for the page control method by sliding that the embodiment of the present application one provides;
Fig. 2 is the schematic flow sheet for the page control method by sliding that the embodiment of the present application two provides;
Fig. 3 is the schematic flow sheet for the page control method by sliding that the embodiment of the present application three provides;
Fig. 4 is the original position of slip event and the schematic diagram of final position that the embodiment of the present application three provides;
Fig. 5 is the schematic flow sheet for the page control method by sliding that the embodiment of the present application four provides;
Fig. 6 is the structural representation for the page slip control system that the embodiment of the present application five provides;
Fig. 7 is the structural representation for the event checking module that the embodiment of the present application six provides;
Fig. 8 is the structural representation for the direction determining mould that the embodiment of the present application seven provides;
Fig. 9 is the structural representation for the direction-determining unit that the embodiment of the present application eight provides
Figure 10 is the structural representation for the terminal device that the embodiment of the present application nine provides.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc
Body details, thoroughly to understand the embodiment of the present application.However, it will be clear to one skilled in the art that there is no these specific
The application can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity
Road and the detailed description of method, in case unnecessary details hinders the description of the present application.
In order to illustrate technical scheme described herein, illustrated below by specific embodiment.
Embodiment one:
As shown in figure 1, present embodiments providing a kind of page control method by sliding, this method can apply to arbitrarily have
The touch screen terminal of display function is touched, for example, mobile phone, tablet personal computer, Intelligent bracelet, personal digital assistant etc..
In a particular application, the page control method by sliding specifically can apply to the current display area of touch screen terminal
Need the data that show more, the situation of all data can not be completely shown in a page.
The page control method by sliding that the present embodiment is provided includes:
Step S101:When detecting the long-press event of touch screen terminal current display area, slip event is monitored.
In a particular application, current display area refers to that user currently carries out the viewing area of touch operation.
In some cases, two or more viewing areas can be included on touch screen terminal simultaneously, for example, under span mode, each
Son screen is all a single viewing area.In the case of touch screen terminal includes two or more viewing areas, each display
Region can individually show a page.User once only can carry out touch operation to a viewing area, can also be same
When operate two or more viewing areas, all viewing areas that user is currently carrying out touch operation are current display area
Domain.
In the present embodiment, long-press event and slip event are identical with its conventional sense in the art, wherein, long-press thing
The a certain region that part is specifically referred on touch screen terminal is consecutively detected thing of the time more than preset time threshold of touch operation
(i.e. the time of user's finger or the felt pen a certain FX sustained touch on touch screen terminal is more than preset time threshold to part
Value), preset time threshold can be pre-set according to being actually needed;Slip event specifically refers to touch screen terminal and is continuously detected
Touch operation, detect touch operation region constantly change and it is all detect touch operation region form a company
The event (slide and touch i.e. in a certain continuum of user's finger or felt pen on touch screen terminal) in logical domain.
Step S102:If listening to the slip event in preset time, the glide direction of the slip event is determined.
In the present embodiment, preset time can listen to slip event according to setting is actually needed in preset time,
Represent that long-press event and long-press event recur, the end time of long-press event and the initial time of slip event are
Synchronization, for example, 23:58~24:00 occurs long-press event, and 24:00~24:02 occurs slip event, then can be with
Think that the two events recur.
In a particular application, the glide direction of slip event can point to final position by the original position of slip event
Direction.Specifically, can be determined by the original position and final position of slip event, the original position of slip event is
For the long opsition dependent of long-press event.Touch position of the object that long opsition dependent refers to trigger long-press event in current display area
Put.
In a particular application, if the long-press event for current display area, or slip event only occurs predetermined
Occur after time, then perform corresponding operation according to existing mode.If for example, long-press event corresponding to operation be enter pair
The page that content of pages shown by current display area describes in detail, then only occurring to be directed to current display area long-press thing
During part, into the page described in detail to the content of pages shown by current display area;If operated corresponding to slip event
It is to control the content shown by current display area to be slided along glide direction, to show the content of next page, then slip event
When occurring after the scheduled time, the content shown by current display area is controlled to be slided along glide direction, to show lower one page
The content in face.
Step S103:Content shown by control current display area is slided along the glide direction.
In a particular application, the content shown by current display area can specifically include word, picture, form, video
The content for any display format supported Deng touch screen terminal.
In one embodiment, step S103 is specifically included:
The content shown by current display area is controlled to slide preset distance along the glide direction at predetermined time intervals, and
When detecting that the slip event is cancelled, stop sliding;Wherein, the slip event is cancelled and refers to trigger the slip event
Object leave the current display area.
In a particular application, it is same to trigger the object of slip event and the object of triggering long-press event, and the object can
To be the object that can arbitrarily make touch screen terminal sense touch signal, such as user's finger, stylus etc..The scheduled time can
To be configured according to being actually needed, for example, it can be set to the arbitrary value between 10ms~50ms, such as 10ms, 20ms or
50ms.The related change of start-stop distance that preset distance can be arranged to a definite value either to slip event according to being actually needed
Amount, for example, can be set as preset distance with start-stop apart from positive correlation, start-stop distance is bigger, and preset distance is bigger.
In concrete application, the page control method by sliding that the present embodiment is provided specifically can apply to slide list
Dynamic control, specifically, by list control when being consecutively detected long-press event and slip event list can be controlled to slide.
In one embodiment, include before step S103:
Preset distance is set, and the preset distance is to multiply predetermined sliding speed in the slip event and interval time
Product.
In one embodiment, preset distance is set, specifically included:
S=V* Δs T is set;
Wherein, S represents preset distance;V represents predetermined sliding speed, and Δ T represents interval time.
In a particular application, the start-stop of predetermined sliding speed and the slip event is cunning apart from positive correlation, start-stop distance
The distance between the original position of dynamic event and final position.
In one embodiment, predetermined sliding speed and the per unit corresponding sliding speed of distance and the product of start-stop distance
Positive correlation, i.e. V ∝ Δs S*V0/S0;Wherein, Δ S represents start-stop distance, and S0 represents unit distance, and V0 represents sliding speed, V0/
S0 represents sliding speed corresponding to per unit distance.
In a particular application, V0 and S0 size can be set according to being actually needed, such as can be 1 meter by S0, and V0 is set
2 meter per seconds are set to, then the V0/S0=2/ seconds.
The present embodiment by monitoring slip event when detecting the long-press event of the current display area of touch screen terminal,
If listening to slip event in the given time, the content shown by current display area is controlled to slide so that user only needs
Long-press operation and the slide of one-time continuous are performed to current display area, you can shown by control current display area
Content is persistently slided, and can effectively reduce number of operations, easy to operate.
Embodiment two:
As shown in Fig. 2 in the present embodiment, step S101 is specifically included:
Step S1011:When detecting the long-press event, long-press is set to be masked as very;Wherein, the long-press mark is used
Whether leave the current display area in the object of long-press event described in mark triggers, if the object do not leave it is described current
Viewing area, then the long-press be masked as very.
In one embodiment, step S1011 is specifically included:
When detecting the long-press event, Flag=true is set;
Wherein, Flag represents long-press mark, and true represents true, and Flag=true represents to be entered as true to Flag.
In one embodiment, include after step S103:
When detecting that the slip event is cancelled, the long-press is set to be masked as vacation.
In a particular application, long-press is masked as vacation, represents that the object for triggering the slip event leaves the current display
Region.
In one embodiment, set the long-press to be masked as vacation, specifically include:
Flag=false is set;
Wherein, Flag represents long-press mark, and false represents false, and Flag=false represents to be entered as false to Flag.
Step S1012:The value for initializing the preset distance is 0.
In one embodiment, step S1012 is specifically included:
Initialize S=0;
Wherein, S represents preset distance, and initialization S=0 represents preset distance being entered as 0.
Step S1013:Record the long opsition dependent of the long-press event.
In a particular application, because long opsition dependent is typically a two dimensional surface region, therefore, long opsition dependent generally includes
Multiple coordinate points, in actual applications, long opsition dependent specifically can by the coordinate of at least one coordinate points included by it come
Represent.
In one embodiment, step S1013 is specifically included:
When detecting the long-press event, rectangular coordinate system is established;
It is (x0, y0) to record coordinate of the long opsition dependent in the rectangular coordinate system;
Wherein, x0 represents the abscissa of long opsition dependent, and y0 represents the ordinate of long opsition dependent.
In a particular application, can be using the direction on the base parallel to current display area as abscissa direction, with flat
Row, as ordinate direction, establishes rectangular coordinate system in the direction of the side of current display area.The positive direction in abscissa direction
Any direction on base can be parallel to, the positive direction in ordinate direction can be parallel to any direction of side.This reality
Apply in example, set the positive direction in abscissa direction as to the right, the positive direction in ordinate direction is parallel to side parallel to base
Upwards.
In a particular application, (x0, y0) can be the coordinate of any one coordinate points in long opsition dependent region, example
Such as, (x0, y0) can be the geometric center point coordinates of long-press position region.
Step S1014:Start timing.
In a particular application, step S1013 can specifically be performed by the built-in timer of touch screen terminal, specifically from
Begin listening for starting timing during slip event, and after slip event is listened to, the current display of triggering per the timing scheduled time
Content shown by region slides preset distance along the glide direction.
Step S1015:The content shown by current display area is controlled to be slided at predetermined time intervals along the glide direction
The preset distance.
In a particular application, because the value that preset distance is initialized in step S1012 is 0, therefore in step S1015
The start-stop distance of content shown by current display area is actually 0, that is to say, that the page does not slide.
Step S1016:Monitor the slip event.
In a particular application, step S1011~S1016 is to start simultaneously at execution when detecting the long-press event
's.
The present embodiment by setting a long-press mark, come mark triggers long-press event or slip event object whether from
Current display area is opened, whether current display area can be left by the true and false simple and quick body of earnest really of long-press standard,
Whether line slip control is entered to the content shown by current display area so as to quick decision.
Embodiment three:
As shown in figure 3, in the present embodiment, the step S102 in embodiment one is specifically included:
Step S1021:The original position and final position of the slip event are obtained, the original position is the long-press
The long opsition dependent of event.
In one embodiment, include before step S1021:
Record the final position of the slip event.
In one embodiment, based on rectangular coordinate system is established in embodiment two the step of, the slip event is recorded
The step of final position, specifically includes:
It is (x1, y1) to record coordinate of the final position in the rectangular coordinate system;
Wherein, x1 represents the abscissa of final position, and y1 represents the ordinate of final position.
In a particular application, (x1, y1) can be the coordinate of any one coordinate points in final position region, example
Such as, (x1, y1) can be the geometric center point coordinates of final position region.
As shown in figure 4, exemplary shows original position at the underface of final position, in current display area
The coordinate of original position and final position, dashed region represents the sliding area of slip event in Fig. 4, and x directions represent abscissa
Positive direction, y directions represent ordinate positive direction.
Step S1022:The glide direction is determined according to the original position and the final position.
In a particular application, glide direction specifically can be according to the relative position relation of original position and final position come really
It is fixed.For example, being mutually perpendicular on the base of current display area and side and when base is parallel to horizontal plane, if final position is located at
The lower section of original position, then glide direction is downward perpendicular to base;If final position is located at the top of original position, slide
Direction is upward perpendicular to base;If final position is located at the right side of original position, glide direction be parallel to base to the right;
If final position is located at the left side of original position, glide direction be parallel to base to the left.
The present embodiment is by obtaining original position and final position, and according to original position and the relative position of final position
Relation determines glide direction, can be with simple and quick determination glide direction, so as to which the continuous long-press according to user and sliding is grasped
Make to control the page to slide.
Example IV:
As shown in figure 5, in the present embodiment, the step S1022 in embodiment three is specifically included:
Step S10221:Obtain abscissa difference, the abscissa difference is the abscissa of the final position and described
The difference of the abscissa of original position, the positive direction of the abscissa are the first party parallel to the base of the current display area
To.
In the present embodiment, abscissa difference=x1-x0.
In a particular application, first direction can be any direction parallel to the base of current display area, i.e., parallel
It is leftward or rightward in base.In the present embodiment, set first direction as parallel to base to the right.
Step S10222:Obtain ordinate difference, the ordinate difference is the ordinate of the final position and described
The difference of the ordinate of original position, the positive direction of the ordinate are the second party parallel to the side of the current display area
To.
In the present embodiment, ordinate difference=y1-y0.
In a particular application, second direction can be any direction parallel to the side of current display area, i.e., parallel
In on the side or downwards.In the present embodiment, second direction is set to be upward parallel to side.
Step S10223:If the abscissa difference is more than 0, the abscissa difference of described ordinate difference etc. 0 or described
During more than the ordinate difference, it is the first direction to determine the glide direction.
In the present embodiment, abscissa difference is more than 0, as x1-x0 > 0, represents that final position is located at original position
Right side;Ordinate difference etc. 0, as y1-y0=0, represent that final position is identical with the vertical height of original position;Diff E
Value is more than ordinate difference, as x1-x0 > y1-y0, represents that final position is big relative to the lateral distance of original position
In vertically moving distance;First direction is represented parallel to base to the right.
Step S10224:If the abscissa difference is less than 0, the abscissa difference of described ordinate difference etc. 0 or described
During more than the ordinate difference, the opposite direction that the glide direction is the first direction is determined.
In the present embodiment, abscissa difference is less than 0, as x1-x0 < 0, represents that final position is located at original position
Left side;Ordinate difference etc. 0, as y1-y0=0, represent that final position is identical with the ordinate of original position;Abscissa difference
More than ordinate difference, as x1-x0 > y1-y0, represent that final position is more than relative to the lateral distance of original position
Vertically move distance;First direction is represented parallel to base to the left.
In a particular application, when glide direction is the opposite direction of first direction or first direction, the start-stop of slip event
Distance as abscissa difference, corresponding, predetermined sliding speed is proportional to abscissa difference and the corresponding slip of per unit distance
The product of speed, i.e. V=A* (x1-x0) * V0/S0, wherein, A is predetermined direct proportion coefficient, A >=1.
Step S10225:If the ordinate difference is more than 0, the abscissa difference is equal to 0 or described Diff N
When value is more than the abscissa difference, it is the second direction to determine the glide direction.
In the present embodiment, ordinate difference is more than 0, as y1-y0 > 0, represents that final position is located at original position
Top;Abscissa difference etc. 0, as x1-x0=0, represent that final position is identical with the abscissa of original position;Ordinate difference
More than abscissa difference, as y1-y0 > x1-x0, represent that final position is more than relative to the distance that vertically moves of original position
Lateral distance;Second direction represents upward parallel to side.
Step S10226:If the ordinate difference is less than 0, the abscissa difference is equal to 0 or described Diff N
When value is more than the abscissa difference, the opposite direction that the glide direction is the second direction is determined.
In the present embodiment, ordinate difference is less than 0, as y1-y0 < 0, represents that final position is located at original position
Lower section;Abscissa difference etc. 0, as x1-x0=0, represent that final position is identical with the abscissa of original position;Ordinate difference
More than abscissa difference, as y1-y0 > x1-x0, represent that final position is more than relative to the distance that vertically moves of original position
Lateral distance;Second direction represents downward parallel to side.
In a particular application, when glide direction is the opposite direction of second direction or second direction, the start-stop of slip event
Distance as ordinate difference, corresponding, preset distance is proportional to sliding speed corresponding to ordinate difference and per unit distance
Product, i.e. V=B* (y1-y0) * V0/S0, wherein, B is predetermined direct proportion coefficient, and B >=1, A can be equal or different to B.
Slided in the present embodiment by the geometric center point coordinates of original position and final position to calculate slip event
Start-stop distance on direction, algorithm are simple, it is easy to accomplish.
Embodiment five:
As shown in fig. 6, the present embodiment provides a kind of page slip control system 100, for performing the side in embodiment one
Method step.In with application, the page slip control system can be specifically to have the touch for touching display function by any
Screen terminal runs computer program.
The page slip control system 100 that the present embodiment is provided, including:
Event checking module 101, for when detecting the long-press event of touch screen terminal current display area, monitoring and sliding
Dynamic event;
Direction determining mould 102, if for listening to the slip event in preset time, determine the slip event
Glide direction;
Control module 103 is slided, for controlling the content shown by current display area to be slided along the glide direction.
In one embodiment, slide control module and be specifically used for controlling the content shown by current display area every pre-
Fix time and slide preset distance along the glide direction, and when detecting that the slip event is cancelled, stop sliding;Wherein,
The slip event cancels the object for referring to trigger slip event and leaves the current display area.
In one embodiment, page slip control system also includes:
Apart from setup module, for setting preset distance, the preset distance is the predetermined slip in the slip event
Speed and the product of interval time.
In one embodiment, apart from setup module, it is specifically used for:
S=V* Δs T is set;
Wherein, S represents preset distance;V represents predetermined sliding speed, and Δ T represents interval time.
The present embodiment by monitoring slip event when detecting the long-press event of the current display area of touch screen terminal,
If listening to slip event in the given time, the content shown by current display area is controlled to slide so that user only needs
Long-press operation and the slide of one-time continuous are performed to current display area, you can shown by control current display area
Content is persistently slided, and can effectively reduce number of operations, easy to operate.
Embodiment six:
As shown in fig. 7, in the present embodiment, the event checking module 101 in embodiment five includes being used to perform embodiment
The structure of method and step in two, it includes:
Mark setting unit 1011, for when detecting the long-press event, setting long-press to be masked as very;Wherein, institute
Whether the object for stating long-press mark for long-press event described in mark triggers leaves the current display area, if the object is not
The current display area is left, then the long-press is masked as very.
In one embodiment, mark setting unit, it is specifically used for:
When detecting the long-press event, Flag=true is set;
Wherein, Flag represents long-press mark, and true represents true, and Flag=true represents to be entered as true to Flag.
In one embodiment, mark setting unit, it is additionally operable to:
When detecting that the slip event is cancelled, the long-press is set to be masked as vacation.
In one embodiment, mark setting unit, specifically it is additionally operable to:
Flag=false is set;
Wherein, Flag represents long-press mark, and false represents false, and Flag=false represents to be entered as false to Flag.
Initialization unit 1012, the value for initializing the preset distance are 0.
In one embodiment, initialization unit is specifically used for:
Initialize S=0;
Wherein, S represents preset distance, and initialization S=0 represents preset distance being entered as 0.
Recording unit 1013, for recording the long opsition dependent of the long-press event.
In one embodiment, recording unit, specifically include:
Establishment of coordinate system subelement, during for detecting the long-press event, establish rectangular coordinate system;
Subelement is recorded, is (x0, y0) for recording coordinate of the long opsition dependent in the rectangular coordinate system;
Wherein, x0 represents the abscissa of long opsition dependent, and y0 represents the ordinate of long opsition dependent.
Timing unit 1014, for starting timing.
In a particular application, timing unit is specifically as follows the built-in timer of touch screen terminal.
Control unit 1015 is slided, for controlling the content shown by current display area at predetermined time intervals along the cunning
Slide preset distance in dynamic direction.
Action listener unit 1016, for monitoring the slip event.
The present embodiment by setting a long-press mark, come mark triggers long-press event or slip event object whether from
Current display area is opened, whether current display area can be left by the true and false simple and quick body of earnest really of long-press standard,
Whether line slip control is entered to the content shown by current display area so as to quick decision.
Embodiment seven:
As shown in figure 8, in the present embodiment, the direction determining mould 102 in embodiment five includes being used to perform embodiment
The structure of method and step in three, it includes:
Position acquisition unit 1021, for obtaining the original position and final position of the slip event, the start bit
It is set to the long opsition dependent of the long-press event;
Direction-determining unit 1022, for determining the glide direction according to the original position and the final position.
In one embodiment, direction determining mould also includes:
Recording unit, for recording the final position of the slip event.
In one embodiment, recording unit is specifically used for:
It is (x1, y1) to record coordinate of the final position in the rectangular coordinate system;
Wherein, x1 represents the abscissa of final position, and y1 represents the ordinate of final position.
The present embodiment is by obtaining original position and final position, and according to original position and the relative position of final position
Relation determines glide direction, can be with simple and quick determination glide direction, so as to which the continuous long-press according to user and sliding is grasped
Make to control the page to slide.
Embodiment eight:
As shown in figure 9, in the present embodiment, the direction-determining unit 1022 in embodiment seven includes being used to perform embodiment
The structure of method and step in four, it includes:
Abscissa difference obtains subelement 10221, and for obtaining abscissa difference, the abscissa difference is the termination
The difference of the abscissa of position and the abscissa of the original position, the positive direction of the abscissa is parallel to the current display
The first direction on the base in region;
Ordinate difference obtains subelement 10222, and for obtaining ordinate difference, the ordinate difference is the termination
The difference of the ordinate of position and the ordinate of the original position, the positive direction of the ordinate is parallel to the current display
The second direction of the side in region;
First abscissa direction determination subelement 10223, if being more than 0 for the abscissa difference, the ordinate
When difference etc. 0 or the abscissa difference are more than the ordinate difference, it is the first direction to determine the glide direction;
Second abscissa direction determination subelement 10224, if being less than 0 for the abscissa difference, the ordinate
When difference etc. 0 or the abscissa difference are more than the ordinate difference, determine the glide direction for the first direction
Opposite direction;
First ordinate direction determination subelement 10225, if being more than 0 for the ordinate difference, the abscissa
When difference is more than the abscissa difference equal to 0 or described ordinate difference, it is the second direction to determine the glide direction;
Second ordinate direction determination subelement 10226, if being less than 0 for the ordinate difference, the abscissa
When difference is more than the abscissa difference equal to 0 or described ordinate difference, it is the second direction to determine the glide direction
Opposite direction.
Slided in the present embodiment by the geometric center point coordinates of original position and final position to calculate slip event
Start-stop distance on direction, algorithm are simple, it is easy to accomplish.
Embodiment nine:
As shown in Figure 10, the present embodiment provides a kind of terminal device 9, and it includes:Processor 90, memory 91 and storage
In the memory 91 and the computer program 92 that can be run on the processor 90.The processor 90 performs the meter
The step in above-mentioned each page control method by sliding embodiment, such as the step S101 shown in Fig. 1 are realized during calculation machine program 92
To S103.Or the processor 90 realizes each module in above-mentioned each device embodiment/mono- when performing the computer program 92
The function of member, such as the function of module 101 to 103 shown in Fig. 5.
Exemplary, the computer program 92 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 91, and are performed by the processor 90, to complete the application.Described one
Individual or multiple module/units can be the series of computation machine programmed instruction section that can complete specific function, and the instruction segment is used for
Implementation procedure of the computer program 92 in the terminal device 9 is described.For example, the computer program 92 can be divided
It is cut into event checking module, direction determining mould and slides control module, each module concrete function is as follows:
Event checking module, for when detecting the long-press event of touch screen terminal current display area, monitoring and sliding
Event;
Direction determining mould, if for listening to the slip event in preset time, determine the slip event
Glide direction;
Control module is slided, for controlling the content shown by current display area to be slided along the glide direction.
The terminal device 9 can be that the calculating such as desktop PC, notebook, palm PC and cloud server are set
It is standby.The terminal device may include, but be not limited only to, processor 90, memory 91.It will be understood by those skilled in the art that Fig. 9
The only example of terminal device 9, the restriction to terminal device 9 is not formed, can included than illustrating more or less portions
Part, some parts or different parts are either combined, such as the terminal device can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 90 can be CPU (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng.
The memory 91 can be the internal storage unit of the terminal device 9, such as the hard disk of terminal device 9 or interior
Deposit.The memory 91 can also be the External memory equipment of the terminal device 9, such as be equipped with the terminal device 9
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, dodge
Deposit card (Flash Card) etc..Further, the memory 91 can also both include the storage inside list of the terminal device 9
Member also includes External memory equipment.The memory 91 is used to store needed for the computer program and the terminal device
Other programs and data.The memory 91 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion
The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used
To be that unit is individually physically present, can also two or more units it is integrated in a unit, it is above-mentioned integrated
Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.In addition, each function list
Member, the specific name of module are not limited to the protection domain of the application also only to facilitate mutually distinguish.Said system
The specific work process of middle unit, module, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in detail or remembers in some embodiment
The part of load, it may refer to the associated description of other embodiments.
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
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/terminal device and method, can be with
Realize by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of division of logic function, there can be other dividing mode when actually realizing, such as
Multiple units or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device
Or INDIRECT COUPLING or the communication connection of unit, 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 application 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.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated module/unit realized in the form of SFU software functional unit and as independent production marketing or
In use, it can be stored in a computer read/write memory medium.Based on such understanding, the application realizes above-mentioned implementation
All or part of flow in example method, by computer program the hardware of correlation can also be instructed to complete, described meter
Calculation machine program can be stored in a computer-readable recording medium, and the computer program can be achieved when being executed by processor
The step of stating each embodiment of the method..Wherein, the computer program includes computer program code, the computer program
Code can be source code form, object identification code form, executable file or some intermediate forms etc..Computer-readable Jie
Matter can include:Can carry any entity or device of the computer program code, recording medium, USB flash disk, mobile hard disk,
Magnetic disc, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It is it should be noted that described
The content that computer-readable medium includes can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice
Subtract, such as in some jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and
Telecommunication signal.
Embodiment described above is only to illustrate the technical scheme of the application, rather than its limitations;Although with reference to foregoing reality
Example is applied the application is described in detail, it will be understood by those within the art that:It still can be to foregoing each
Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed
Or replace, the essence of appropriate technical solution is departed from the spirit and scope of each embodiment technical scheme of the application, all should
Within the protection domain of the application.
Claims (10)
- A kind of 1. page control method by sliding, it is characterised in that including:When detecting the long-press event of touch screen terminal current display area, slip event is monitored;If listening to the slip event in preset time, the glide direction of the slip event is determined;Content shown by control current display area is slided along the glide direction.
- 2. page control method by sliding as claimed in claim 1, it is characterised in that shown by the control current display area Content slided along the glide direction, including:Control the content shown by current display area to slide preset distance along the glide direction at predetermined time intervals, and examining When measuring the slip event cancellation, stop sliding;Wherein, the slip event cancels the thing for referring to trigger the slip event Body leaves the current display area.
- 3. page control method by sliding as claimed in claim 2, it is characterised in that shown by the control current display area Content along the glide direction slide before, including:Preset distance is set, and the preset distance is to state the predetermined sliding speed and the product of interval time in slip event.
- 4. the page control method by sliding as described in any one of claims 1 to 3, it is characterised in that described to determine the slip The glide direction of event, including:The original position and final position of the slip event are obtained, the original position is the long step-by-step of the long-press event Put;The glide direction is determined according to the original position and the final position.
- 5. page control method by sliding as claimed in claim 4, it is characterised in that described according to the original position and described Final position determines the glide direction, including:Abscissa difference is obtained, the abscissa difference is the abscissa of the final position and the abscissa of the original position Difference, the positive direction of the abscissa is the first direction parallel to the base of the current display area;Ordinate difference is obtained, the ordinate difference is the ordinate of the final position and the ordinate of the original position Difference, the positive direction of the ordinate is the second direction parallel to the side of the current display area;If the abscissa difference is more than 0, the abscissa difference of described ordinate difference etc. 0 or described is more than the Diff N During value, it is the first direction to determine the glide direction;If the abscissa difference is less than 0, the abscissa difference of described ordinate difference etc. 0 or described is more than the Diff N During value, the opposite direction that the glide direction is the first direction is determined;If the ordinate difference is more than 0, the abscissa difference is more than the abscissa equal to 0 or described ordinate difference During difference, it is the second direction to determine the glide direction;If the ordinate difference is less than 0, the abscissa difference is more than the abscissa equal to 0 or described ordinate difference During difference, the opposite direction that the glide direction is the second direction is determined.
- A kind of 6. page slip control system, it is characterised in that including:Event checking module, for when detecting the long-press event of touch screen terminal current display area, monitoring slip event;Direction determining mould, if for listening to the slip event in preset time, determine the slip of the slip event Direction;Control module is slided, for controlling the content shown by current display area to be slided along the glide direction.
- 7. page slip control system as claimed in claim 6, it is characterised in that the slip control module is specifically used for control Content shown by current display area processed slides preset distance along the glide direction at predetermined time intervals, and detecting When stating slip event cancellation, stop sliding;Wherein, it is described to refer to that the object for triggering slip event leaves for the slip event cancellation Current display area.
- 8. page slip control system as claimed in claim 7, it is characterised in that the page slip control system also wraps Include:Apart from setup module, for setting preset distance, the preset distance is the predetermined sliding speed in the slip event With the product of interval time.
- 9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that realize such as claim 1 to 5 described in the computing device during computer program The step of any one methods described.
- 10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, and its feature exists In when the computer program is executed by processor the step of realization such as any one of claim 1 to 5 methods described.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710909633.8A CN107422979A (en) | 2017-09-29 | 2017-09-29 | A kind of page control method by sliding, system and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710909633.8A CN107422979A (en) | 2017-09-29 | 2017-09-29 | A kind of page control method by sliding, system and terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107422979A true CN107422979A (en) | 2017-12-01 |
Family
ID=60436366
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710909633.8A Pending CN107422979A (en) | 2017-09-29 | 2017-09-29 | A kind of page control method by sliding, system and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107422979A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108332877A (en) * | 2018-01-31 | 2018-07-27 | 北京航天控制仪器研究所 | A kind of the fiber grating measuring device and method of light pulse and optical time domain reflection combination |
CN110989916A (en) * | 2019-12-13 | 2020-04-10 | 天通畅达(深圳)科技有限公司 | Method and device for realizing operation interface by sliding screen |
CN113064544A (en) * | 2021-04-30 | 2021-07-02 | 湖南快乐阳光互动娱乐传媒有限公司 | Touch screen gesture interaction method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102591583A (en) * | 2011-01-13 | 2012-07-18 | 卡西欧计算机株式会社 | Electronic device |
CN102750068A (en) * | 2011-04-21 | 2012-10-24 | 宏碁股份有限公司 | Frame rolling control method and electronic device |
US20130113738A1 (en) * | 2011-11-08 | 2013-05-09 | Electronics And Telecommunications Research Institute | Method and apparatus for controlling content on remote screen |
CN103995648A (en) * | 2014-04-29 | 2014-08-20 | 小米科技有限责任公司 | Method and device for browsing list |
CN104636048A (en) * | 2015-01-26 | 2015-05-20 | 上海天奕达电子科技有限公司 | Page content rolling display method and device |
CN106055264A (en) * | 2016-06-14 | 2016-10-26 | 珠海市魅族科技有限公司 | Information display method and display device |
CN106339149A (en) * | 2016-08-09 | 2017-01-18 | 北京三快在线科技有限公司 | Display control method and device as well as electronic equipment |
-
2017
- 2017-09-29 CN CN201710909633.8A patent/CN107422979A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102591583A (en) * | 2011-01-13 | 2012-07-18 | 卡西欧计算机株式会社 | Electronic device |
CN102750068A (en) * | 2011-04-21 | 2012-10-24 | 宏碁股份有限公司 | Frame rolling control method and electronic device |
US20130113738A1 (en) * | 2011-11-08 | 2013-05-09 | Electronics And Telecommunications Research Institute | Method and apparatus for controlling content on remote screen |
CN103995648A (en) * | 2014-04-29 | 2014-08-20 | 小米科技有限责任公司 | Method and device for browsing list |
CN104636048A (en) * | 2015-01-26 | 2015-05-20 | 上海天奕达电子科技有限公司 | Page content rolling display method and device |
CN106055264A (en) * | 2016-06-14 | 2016-10-26 | 珠海市魅族科技有限公司 | Information display method and display device |
CN106339149A (en) * | 2016-08-09 | 2017-01-18 | 北京三快在线科技有限公司 | Display control method and device as well as electronic equipment |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108332877A (en) * | 2018-01-31 | 2018-07-27 | 北京航天控制仪器研究所 | A kind of the fiber grating measuring device and method of light pulse and optical time domain reflection combination |
CN110989916A (en) * | 2019-12-13 | 2020-04-10 | 天通畅达(深圳)科技有限公司 | Method and device for realizing operation interface by sliding screen |
CN113064544A (en) * | 2021-04-30 | 2021-07-02 | 湖南快乐阳光互动娱乐传媒有限公司 | Touch screen gesture interaction method and device |
CN113064544B (en) * | 2021-04-30 | 2022-05-17 | 湖南快乐阳光互动娱乐传媒有限公司 | Touch screen gesture interaction method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104156155B (en) | A kind of laying method and device of desktop widget | |
CN105335099A (en) | Memory cleaning method and terminal | |
CN105005448B (en) | Application program launching method, device and terminal device | |
CN105183277B (en) | A kind of screen switching and mobile terminal | |
CN107422979A (en) | A kind of page control method by sliding, system and terminal device | |
CN110377215B (en) | Model display method and device and terminal equipment | |
CN107291355A (en) | Screenshotss control method and device, terminal device and storage medium | |
US20160349964A1 (en) | Method and computing device for performing operation on icon cell | |
CN106775094A (en) | Sensitivity of touch screen adjusting method and device | |
CN104679722B (en) | For the method and system that data form is multidimensional | |
CN106991179A (en) | Data-erasure method, device and mobile terminal | |
CN108108078B (en) | Electronic equipment, display control method and related product | |
US9417778B2 (en) | System and method for interacting with a displayed work space | |
CN107506494B (en) | Document handling method, mobile terminal and computer readable storage medium | |
CN103106022A (en) | Method for setting and detecting virtual key of touch panel | |
CN105607917B (en) | A kind of page loading method and device | |
CN108334267A (en) | A kind of cursor-moving method, system and terminal device | |
CN108228024A (en) | A kind of method of application control, terminal and computer-readable medium | |
CN107765980A (en) | Input method and device, terminal device and computer-readable recording medium | |
CN110658976B (en) | Touch track display method and electronic equipment | |
CN109298809A (en) | A kind of touch action recognition methods, device and terminal device | |
CN103914165A (en) | Multi-touch screen-based identifying method and device and electronic equipment | |
CN103399662B (en) | A kind of touch-screen that processes reports the method for coordinate event, system and mobile terminal | |
US20170285889A1 (en) | Scenario based pinning in a collaboration environment | |
CN104881222B (en) | Man-machine interaction method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 518057 Fuan Science and Technology Building, Block B, No. 13, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 207-2 Applicant after: Shenzhen Huantai Technology Co., Ltd Address before: 518057 Guangdong city of Shenzhen province Nanshan District south road six No. 6 Building 6 room 602 to Kelon Applicant before: Shenzhen Yun Zhong Fei Network Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171201 |
|
RJ01 | Rejection of invention patent application after publication |