CN106527955A - Method and device for controlling slide of page - Google Patents
Method and device for controlling slide of page Download PDFInfo
- Publication number
- CN106527955A CN106527955A CN201611202157.8A CN201611202157A CN106527955A CN 106527955 A CN106527955 A CN 106527955A CN 201611202157 A CN201611202157 A CN 201611202157A CN 106527955 A CN106527955 A CN 106527955A
- Authority
- CN
- China
- Prior art keywords
- page
- slide
- sliding distance
- glide direction
- ratio
- 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
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/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
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 discloses a method for controlling the slide of a page. The method comprises the steps of sensing a slide operation based on the terminal page, acquiring the coordinates of an initial point and a termination point of the slide operation in a preset terminal touch area coordinate system; determining a page slide direction and a slide distance of the slide operation according to the coordinates of the initial point and the termination point; determining a page slide rate according to the page slide direction and the slide distance of the slide operation; and controlling the terminal page to slide according to the determined page slide rate and the page slide direction. The invention also discloses a device for controlling the slide of the page. According to the method and the device provided by the invention, the slide of the terminal page can be effectively controlled, and thus a user can conveniently and rapidly position the target page, and operation efficiency is improved.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly to the method and device that the control page slides.
Background technology
At present, the touch screen electronic equipment such as smart mobile phone, panel computer is substantially all the support page and slides, the operation side of slip
Formula is mainly realized by two ways:One is that user's finger or operating pen enter line slip with certain speed on screen, is slided
Speed is faster, and the number of pages of slip is more;Two is that user carries out drag operation by the slider bar of screen display.
There is following defect in aforesaid way:For the mode of finger screen sliding, the bad control of finger sliding speed, such as in hand
Refer to when sliding too fast, the page wanted can be missed, and when number of pages is more, generally require to carry out multiple screen sliding just find and want
The page;For the mode that slider bar is drawn, slider bar needs to take certain screen display space, and slider bar shows too big,
Display space can be wasted, and slider bar shows too little, then the click-through drawn during user can be caused to be difficult a little when with finger manipulation
Row is dilatory, especially for the little user of electronic display screen, uses very inconvenient.
The content of the invention
Present invention is primarily targeted at proposing the method and device that a kind of control page slides, it is intended to realize to terminal page
Face is slided and is control effectively, and so as to allow users to quickly and easily navigate to target pages, improves operating efficiency.
For achieving the above object, the present invention provides a kind of method that control page slides, and methods described comprises the steps:
Slide of the detecting based on terminal page, the acquisition slide is in the coordinate system of default terminal Touch Zone
Starting point coordinate and terminate point coordinates;
The cunning of page glide direction and the slide is determined according to the starting point coordinate and the termination point coordinates
Dynamic distance;
Page gliding cable structure is determined according to the sliding distance of the page glide direction and the slide;
The page gliding cable structure and the page glide direction according to determining controls the terminal page and enters line slip.
Alternatively, it is described that page glide direction and the cunning are determined according to the starting point coordinate and the termination point coordinates
The step of sliding distance of dynamic operation, includes:
The slide is calculated respectively in the coordinate system according to the starting point coordinate and the termination point coordinates
The sliding distance of the sliding distance and Y direction of corresponding X-direction;
If the sliding distance of the X-direction is more than the sliding distance of the Y direction, it is determined that the page slip side
To for X-direction, otherwise determining that the page glide direction is Y direction;
According to the starting point coordinate and the termination point coordinates calculate between the starting point and the terminating point away from
From, using result of calculation as the slide sliding distance.
Alternatively, the sliding distance according to the page glide direction and the slide determines page slip speed
The step of rate, includes:
Slide corresponding X-direction or Y-axis in the coordinate system are obtained according to the page glide direction
The side-play amount in direction;
Calculate the ratio between the side-play amount and the sliding distance of the slide for getting;
Obtain rate factor corresponding with the ratio;
The rate factor is multiplied by into default speed radix, page gliding cable structure is obtained.
Alternatively, it is described that slide corresponding X in the coordinate system is obtained according to the page glide direction
The step of side-play amount of direction of principal axis or Y direction, includes:
If the page glide direction is X-direction, side-play amount of the slide in the Y direction is obtained;
If the page glide direction is Y direction, side-play amount of the slide in the X-direction is obtained.
Alternatively, include the step of acquisition rate factor corresponding with the ratio:
Default ratio and rate factor relation mapping table are inquired about, rate factor corresponding with the ratio is obtained.
Additionally, for achieving the above object, the present invention also provides the device that a kind of control page slides, and described device includes:
Acquisition module, for slide of the detecting based on terminal page, obtains the slide in default terminal
Starting point coordinate and termination point coordinates in the coordinate system of Touch Zone;
First determining module, for according to the starting point coordinate and the termination point coordinates determine page glide direction and
The sliding distance of the slide;
Second determining module, for determining the page according to the sliding distance of the page glide direction and the slide
Gliding cable structure;
Control module, for controlling the terminal according to the page gliding cable structure and the page glide direction that determine
The page enters line slip.
Alternatively, first determining module is additionally operable to:
The slide is calculated respectively in the coordinate system according to the starting point coordinate and the termination point coordinates
The sliding distance of the sliding distance and Y direction of corresponding X-direction;
If the sliding distance of the X-direction is more than the sliding distance of the Y direction, it is determined that the page slip side
To for X-direction, otherwise determining that the page glide direction is Y direction;
According to the starting point coordinate and the termination point coordinates calculate between the starting point and the terminating point away from
From, using result of calculation as the slide sliding distance.
Alternatively, second determining module is additionally operable to:
Slide corresponding X-direction or Y-axis in the coordinate system are obtained according to the page glide direction
The side-play amount in direction;
Calculate the ratio between the side-play amount and the sliding distance of the slide for getting;
Obtain rate factor corresponding with the ratio;
The rate factor is multiplied by into default speed radix, page gliding cable structure is obtained.
Alternatively, second determining module is additionally operable to:
If the page glide direction is X-direction, side-play amount of the slide in the Y direction is obtained;
If the page glide direction is Y direction, side-play amount of the slide in the X-direction is obtained.
Alternatively, second determining module is additionally operable to inquire about default ratio and rate factor relation mapping table, obtains
Rate factor corresponding with the ratio.
Slide of the present invention detecting based on terminal page, obtains the slide and sits in default terminal Touch Zone
Starting point coordinate and termination point coordinates in mark system;Determine that the page slides according to the starting point coordinate and the termination point coordinates
Direction and the sliding distance of the slide;Determined according to the sliding distance of the page glide direction and the slide
Page gliding cable structure;The page gliding cable structure and the page glide direction according to determining controls the terminal page to be carried out
Slide.By the way, user need to only adjust the slip angle of finger and can just control the speed of screen sliding, relative to existing skill
Art, when page number is more, user need not carry out multiple screen sliding operation, while it also avoid carrying out screen sliding not using slider bar
Just such that it is able to allow users to quickly and easily navigate to target pages, improve operating efficiency.
Description of the drawings
Fig. 1 is the schematic flow sheet of the method first embodiment that the present invention control page slides;
Fig. 2 is the application scenarios schematic diagram of the method first embodiment that the present invention control page slides;
Fig. 3 is the schematic flow sheet of the method second embodiment that the present invention control page slides;
Fig. 4 is the refinement step schematic diagram of step S30 in Fig. 3;
Fig. 5 is the high-level schematic functional block diagram of the device first embodiment that the present invention control page slides.
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
The present invention provides a kind of method that control page slides.
With reference to Fig. 1, Fig. 1 is the schematic flow sheet of the method first embodiment that the present invention control page slides.Methods described
Comprise the steps:
Step S10, detects the slide based on terminal page, obtains the slide in default terminal Touch Zone
Starting point coordinate and termination point coordinates in coordinate system.
In the present embodiment, terminal is mobile terminal, including the touch screen electronic equipment such as smart mobile phone, panel computer, these
Electronic equipment all supports the page turn over operation such as page slip.The page in the present embodiment slides and refers mainly to the page and slide up and down (such as read
Read electronic document) and the page horizontally slip (such as switching photo, check horizontal thumbnail of multi-page etc.).
In this step, terminal Touch Zone is terminal touch screen, when being embodied as, can initially set up terminal Touch Zone
Coordinate system, allow the terminal Touch Zone be located at first quartile so that the coordinate data of all touch points on the Touch Zone be 0 or
Positive number, it is of course also possible to otherwise set up the coordinate system of terminal Touch Zone, such as, the center with terminal Touch Zone is as original
Point sets up coordinate system, flexibly can be arranged when being embodied as.
Slide of the mobile terminal detecting real-time based on terminal page, when the finger of user is slided in terminal page
When dynamic, terminal obtain slide starting point coordinate and terminate point coordinates, certainly, mobile terminal can also according to it is default when
Between two different screen sliding touch points corresponding to interval acquiring user's slide, and obtain the two touch points and touch in terminal
Coordinate value in control area's coordinate system.
Step S20, determines page glide direction and the slip according to the starting point coordinate and the termination point coordinates
The sliding distance of operation.
The glide direction of user's finger include level to the left, level to the right, vertically upward, vertically downward and be tilted towards
Above, it is tilted towards inferior.In the present embodiment, page glide direction refer to system allow page glide direction, including level to
Left, level to the right, vertically upward, vertically downward, in the coordinate system of terminal Touch Zone, can be according to the starting of user's slide
Point coordinates and termination point coordinates determine page glide direction.Such as, if starting point coordinate is (X0, Y0), terminating point coordinates is
(X1, Y0), and X0<X1, then can determine that user is intended to the slip of X-axis positive direction for the operation of the page, now can determine that page
Face glide direction is slided for level to the right.Additionally, can also be true according to the starting point coordinate of user's slide and termination point coordinates
Determine the sliding distance of user's slide, such as the distance between starting point coordinate and termination point coordinates slide as user and grasps
The sliding distance of work.
Step S30, determines page gliding cable structure according to the sliding distance of the page glide direction and the slide.
Terminal can determine page gliding cable structure according to the sliding distance of the page glide direction and user's slide that determine.
Such as, however, it is determined that page glide direction slided for level to the right, then can obtain the skew of the slide in X-direction of user
Amount, and the ratio between the side-play amount of the X-direction and sliding distance is calculated, thus weigh the inclined degree of sliding trace.So
Afterwards, terminal calculates page gliding cable structure according to default algorithm according to the ratio, such as pre-sets ratio and page slip speed
Rate is proportional relationship, then, when ratio is bigger, calculated page gliding cable structure is bigger, when ratio gets over hour, is calculated
The page gliding cable structure for obtaining is less.It is of course also possible to ratio and page gliding cable structure are set to inversely prroportional relationship in advance
Or other mapping relations, flexibly can be arranged when being embodied as.
Step S40, controls the terminal page according to the page gliding cable structure and the page glide direction that determine
Enter line slip.
After page gliding cable structure and page glide direction is determined respectively, mobile terminal is further according to the page for determining
Gliding cable structure and the page glide direction control terminal page enter line slip.With reference to Fig. 2, Fig. 2 is that the present invention control page slides
The application scenarios schematic diagram of method first embodiment, sets up coordinate system as origin with display screen center, if user currently reads
Read a document, user's operation on a display screen is to slide obliquely, and the sliding distance of X-direction is less than Y direction
Sliding distance, then the page slide to Y-axis positive direction the word of corresponding line number, the line number that wherein word slides is by page gliding cable structure
It is determined that, difference from prior art is that page gliding cable structure of the present invention is not determined by the gliding cable structure of user's finger, and
It is to be determined by the inclined degree of the sliding trace for producing, wherein, the inclined degree of sliding trace can be according to calculating sliding trace
Angle of inclination or other ratios (such as sine value, cosine value etc.) for being transformed by angle of inclination are determining.
It should be noted that after page gliding cable structure and page glide direction is determined, if the page can be to determination
Direction is slided (some page turning patterns may only support that the slip on a direction, or the page have reached lowermost end etc.), then eventually
End performs the page and slides;If the page can not slide to the direction for determining, terminal can export information or not process.
Additionally, user can also arrange the effect that slides page, if sliding page effect to directly display than arranging, then move
Dynamic terminal direct access finally needs the content of pages for showing to be shown.
In the present embodiment, slide of the detecting based on terminal page, obtains the slide in default terminal
Starting point coordinate and termination point coordinates in the coordinate system of Touch Zone;Determined according to the starting point coordinate and the termination point coordinates
The sliding distance of page glide direction and the slide;According to the slip of the page glide direction and the slide
Distance determines page gliding cable structure;The page gliding cable structure and the page glide direction according to determining controls the terminal
The page enters line slip.By the way, user need to only adjust the slip angle of finger and can just control the speed of screen sliding, relatively
In prior art, when page number is more, user need not carry out multiple screen sliding operation, while it also avoid carrying out using slider bar
The inconvenience of screen sliding such that it is able to allow users to quickly and easily navigate to target pages, improves operating efficiency.
Further, with reference to Fig. 3, Fig. 3 is the schematic flow sheet of the method second embodiment that the present invention control page slides.
Based on the embodiment shown in above-mentioned Fig. 1, step S20 can include:
Step S21, calculates the slide described respectively according to the starting point coordinate and the termination point coordinates
The sliding distance of the sliding distance and Y direction of corresponding X-direction in coordinate system;
Step S22, if the sliding distance of the X-direction is more than the sliding distance of the Y direction, it is determined that the page
Face glide direction is X-direction, otherwise determines that the page glide direction is Y direction;
Step S23, calculates the starting point and the terminating point according to the starting point coordinate and the termination point coordinates
The distance between, using result of calculation as the slide sliding distance.
In the present embodiment, mobile terminal can calculate slide respectively and exist according to starting point coordinate and termination point coordinates
The sliding distance of the sliding distance and Y direction of corresponding X-direction in coordinate system, if the sliding distance of X-direction is more than Y-axis
The sliding distance in direction, then can determine that user is partial to the slip of X-direction, i.e. horizontal direction and slides, and now terminal determines page
Face glide direction is X-direction;If the sliding distance of X-direction is less than the sliding distance of Y direction, can determine that user is partial to
Slide in the slip of Y direction, i.e. vertical direction, now determine that page glide direction is Y direction.Then, terminal can be direct
The distance between starting point and ending point is calculated according to coordinate value, as the sliding distance of user's slide.
The present embodiment can be made terminal accurately differentiate user by calculating according to starting point coordinate and termination point coordinates
Slide is intended to, so that it is determined that the page glide direction of terminal.
Further, with reference to Fig. 4, Fig. 4 is the refinement step schematic diagram of step S30 in Fig. 3.Based on the above embodiments,
Step S30 can include:
Step S31, obtains slide corresponding X-axis side in the coordinate system according to the page glide direction
To or Y direction side-play amount;
Step S32, calculates the ratio between the side-play amount and the sliding distance of the slide for getting;
Step S33, obtains rate factor corresponding with the ratio;
The rate factor is multiplied by default speed radix, obtains page gliding cable structure by step S34.
In the present embodiment, mobile terminal can obtain slide in coordinate system according to the page glide direction for determining
In corresponding X-direction or Y direction side-play amount, specifically, step S31 can include:
Step S311, if the page glide direction is X-direction, obtains the slide in the Y direction
Side-play amount;
Step S312, if the page glide direction is Y direction, obtains the slide in the X-direction
Side-play amount.
Step S32 can include:
Step S321, inquires about default ratio and rate factor relation mapping table, obtains speed corresponding with the ratio
Factor.
In the method second embodiment that the present invention control page slides, mobile terminal determines page glide direction, under
Face is illustrated with the page glide direction for determining as X-direction:
If the page glide direction is X-direction, mobile terminal can obtain the slide in Y direction
Side-play amount, then, calculates the ratio between the side-play amount and sliding distance, and obtains rate factor corresponding with the ratio,
Rate factor is multiplied by into default speed radix again, page gliding cable structure is obtained.Side-play amount such as Y direction is 5, sliding distance
For 10, then ratio is 5/10, i.e., 0.5, the then default slope of terminal inquiry and rate factor relation mapping table, ratio in the table
It is 2 for 2 corresponding rate factors, therefore default speed radix is multiplied by 2 to obtain page gliding cable structure.
Wherein, it is speed radix that mobile terminal can preset slide in the velocity component of X-direction, it is also possible to according to
The setting instruction of user arranges a speed radix.Such as, according to the gliding cable structure of speed radix, 4 style of writing words of page slip, speed
Rate factor is 5, then new gliding cable structure is original 5 times, 20 style of writing words of now page slip.
It should be noted that ratio can be flexibly set according to the visual custom of user with the mapping relations of rate factor
Put, so as to the page gliding cable structure for ensureing finally to calculate is in a rational scope.
Further, as the glide direction that user carries out slide can be present necessarily with the direction for actually wanting to slide
Deviation, thus slope and rate factor relation mapping table can be simplified.Specifically, can in advance by ratio and rate factor relationship map
Ratio in table is divided into multiple slopes intervals according to preset rules, and arranges a rate factor for each slope is interval.Due to
Side-play amount is less than sliding distance, therefore, the ratio range of side-play amount and sliding distance between 0 to 1, according to the size of ratio,
Ratio can be equally divided into 10 grades from 0 to 1, be a grade per 0.1,0~0.1 is the first order, and 0.1~0.2 is the
Two grades, and so on.Based on speed radix, ratio size often increases a grade to page gliding cable structure, and the page slides fast
Rate specific speed radix doubles, and 0.4 to 0.5, in the 5th grade, then page gliding cable structure is the 5 of speed radix to such as ratio
Times.
The present embodiment determines page gliding cable structure by the ratio relation between side-play amount and sliding distance, enables users to
The control to page gliding cable structure is realized enough by the angle of control screen sliding track, passes through hand relative to user in prior art
Refer to that gliding cable structure controls the mode of page gliding cable structure, the present embodiment can provide the user more accurately speed control, special
It is not that, when the page is more, prior art user will often carry out multiple screen sliding and can just navigate to target pages, and the present embodiment
User need to only set a speed radix, then by adjusting screen sliding Angle ambiguity gliding cable structure navigating to target pages, can
To reduce user's screen sliding number of times, operating efficiency is improved.
The present invention also provides the device that a kind of control page slides.
With reference to Fig. 5, Fig. 5 is the high-level schematic functional block diagram of the device first embodiment that the present invention control page slides.It is described
Device includes:
Acquisition module 10, for slide of the detecting based on terminal page, obtains the slide at default end
Starting point coordinate and termination point coordinates in the Touch Zone coordinate system of end;
In the present embodiment, terminal is mobile terminal, including the touch screen electronic equipment such as smart mobile phone, panel computer, these
Electronic equipment all supports the page turn over operation such as page slip.The page in the present embodiment slides and refers mainly to the page and slide up and down (such as read
Read electronic document) and the page horizontally slip (such as switching photo, check horizontal thumbnail of multi-page etc.).
In this step, terminal Touch Zone is terminal touch screen, when being embodied as, can initially set up terminal Touch Zone
Coordinate system, allow the terminal Touch Zone be located at first quartile so that the coordinate data of all touch points on the Touch Zone be 0 or
Positive number, it is of course also possible to otherwise set up the coordinate system of terminal Touch Zone, such as, the center with terminal Touch Zone is as original
Point sets up coordinate system, flexibly can be arranged when being embodied as.
Slide of 10 detecting real-time of acquisition module based on terminal page, when the finger of user is carried out in terminal page
During slip, acquisition module 10 obtains the starting point coordinate of slide and terminates point coordinates, and certainly, acquisition module 10 can also be by
Two different screen sliding touch points corresponding to user's slide are obtained according to default time interval, and obtains the two touches
Coordinate value of the point in the coordinate system of terminal Touch Zone.
First determining module 20, for determining page glide direction according to the starting point coordinate and the termination point coordinates
With the sliding distance of the slide;
The glide direction of user's finger include level to the left, level to the right, vertically upward, vertically downward and be tilted towards
Above, it is tilted towards inferior.In the present embodiment, page glide direction refer to system allow page glide direction, including level to
To the right, vertically upward, vertically downward, in the coordinate system of terminal Touch Zone, the first determining module 20 can be according to user for left, level
The starting point coordinate and termination point coordinates of slide determines page glide direction.Such as, if starting point coordinate is (X0, Y0),
Terminate point coordinates for (X1, Y0), and X0<X1, then can determine that user is intended to the slip of X-axis positive direction for the operation of the page,
Now can determine that page glide direction is slided for level to the right.Additionally, the first determining module 20 can also be according to user's slide
Starting point coordinate and terminate point coordinates and determine the sliding distance of user's slide, such as starting point coordinate and terminating point are sat
Sliding distance of the distance between the mark as user's slide.
Second determining module 30, for determining page according to the sliding distance of the page glide direction and the slide
Face gliding cable structure;
Second determining module 30 can determine page according to the sliding distance of the page glide direction and user's slide that determine
Face gliding cable structure.Such as, if the page glide direction that the first determining module 20 determines is slided for level to the right, second determines mould
Block 30 can obtain the side-play amount of the slide in X-direction of user, and calculate the X-direction side-play amount and sliding distance it
Between ratio, thus weigh sliding trace inclined degree.Then, the second determining module 30 according to the ratio according to default calculation
Method calculates page gliding cable structure, and it is proportional relationship such as to pre-set ratio and page gliding cable structure, then when ratio is bigger,
Calculated page gliding cable structure is bigger, and when ratio gets over hour, calculated page gliding cable structure is less.Certainly,
Ratio and page gliding cable structure can also be set to into inversely prroportional relationship or other mapping relations in advance, can be entered when being embodied as
Row is flexibly arranged.
Control module 40, for controlling the end according to the page gliding cable structure and the page glide direction that determine
Line slip is entered in end page face.
After page gliding cable structure and page glide direction is determined respectively, control module 40 is further according to the page for determining
Face gliding cable structure and the page glide direction control terminal page enter line slip.With reference to Fig. 2, Fig. 2 slides for the present invention control page
Method first embodiment application scenarios schematic diagram, coordinate system is set up as origin with display screen center, if user is current
A document is read, user's operation on a display screen is to slide obliquely, and the sliding distance of X-direction is less than Y direction
Sliding distance, then the page slide to Y-axis positive direction the word of corresponding line number, the line number that wherein word slides is slided speed by the page
Rate determines that difference from prior art is that page gliding cable structure of the present invention is not determined by the gliding cable structure of user's finger,
But determined by the inclined degree of the sliding trace for producing, wherein, the inclined degree of sliding trace can be according to calculating sliding trace
Angle of inclination or other ratios (such as sine value, cosine value etc.) for being transformed by angle of inclination determining.
It should be noted that after page gliding cable structure and page glide direction is determined, if the page can be to determination
Direction is slided (some page turning patterns may only support that the slip on a direction, or the page have reached lowermost end etc.), then control
Molding block 40 performs the page and slides;If the page can not slide to the direction for determining, information can be exported or do not processed.
Additionally, user can also arrange the effect that slides page, if sliding page effect to directly display than arranging, then move
Dynamic terminal direct access finally needs the content of pages for showing to be shown.
In the present embodiment, acquisition module 10 detects the slide based on terminal page, obtains the slide and exists
Starting point coordinate and termination point coordinates in the coordinate system of default terminal Touch Zone;First determining module 20 is according to the starting point
Coordinate and the termination point coordinates determine the sliding distance of page glide direction and the slide;Second determining module 30
Page gliding cable structure is determined according to the sliding distance of the page glide direction and the slide;Control module 40 is according to determination
The page gliding cable structure and the page glide direction control the terminal page and enter line slip.By the way, use
Family need to only adjust the speed that the slip angle of finger can just control screen sliding, relative to prior art, when page number is more, use
Family need not carry out multiple screen sliding operation, while it also avoid the inconvenience of screen sliding is carried out using slider bar such that it is able to enable users to
It is enough quickly and easily to navigate to target pages, improve operating efficiency.
Further, with continued reference to Fig. 5, first determining module 20 is additionally operable to:
The slide is calculated respectively in the coordinate system according to the starting point coordinate and the termination point coordinates
The sliding distance of the sliding distance and Y direction of corresponding X-direction;
If the sliding distance of the X-direction is more than the sliding distance of the Y direction, it is determined that the page slip side
To for X-direction, otherwise determining that the page glide direction is Y direction;
According to the starting point coordinate and the termination point coordinates calculate between the starting point and the terminating point away from
From, using result of calculation as the slide sliding distance.
In the present embodiment, the first determining module 20 can calculate slip respectively according to starting point coordinate and termination point coordinates
The sliding distance of the sliding distance and Y direction of corresponding X-direction in a coordinate system is operated, if the sliding distance of X-direction
More than the sliding distance of Y direction, then can determine that user is partial to the slip of X-direction, i.e. horizontal direction and slides, now terminal
Determine that page glide direction is X-direction;If the sliding distance of X-direction can determine that use less than the sliding distance of Y direction
Family is partial to the slip of Y direction, i.e. vertical direction and is slided, and now determines that page glide direction is Y direction.Then, first
Determining module 20 directly can calculate the distance between starting point and ending point according to coordinate value, used as the slip of user's slide
Distance.
The present embodiment can be made terminal accurately differentiate user by calculating according to starting point coordinate and termination point coordinates
Slide is intended to, so that it is determined that the page glide direction of terminal.
Further, with continued reference to Fig. 5, second determining module 30 is additionally operable to:Obtained according to the page glide direction
Take the side-play amount of the slide corresponding X-direction or Y direction in the coordinate system;It is described inclined that calculating gets
Ratio between the sliding distance of shifting amount and the slide;Obtain rate factor corresponding with the ratio;By the speed
Rate factor is multiplied by default speed radix, obtains page gliding cable structure.
In the present embodiment, mobile terminal can obtain slide in coordinate system according to the page glide direction for determining
In corresponding X-direction or Y direction side-play amount, specifically, according to the page glide direction obtain it is described slide behaviour
Make in the coordinate system during side-play amount of corresponding X-direction or Y direction, second determining module 30 is additionally operable to:If
The page glide direction is X-direction, then obtain side-play amount of the slide in the Y direction;If the page
Glide direction is Y direction, then obtain side-play amount of the slide in the X-direction.Obtaining and the ratio pair
During the rate factor answered, second determining module 30 is additionally operable to:Default ratio and rate factor relation mapping table are inquired about, is obtained
To rate factor corresponding with the ratio.
In the aforementioned embodiment, the first determining module 20 determines page glide direction, is slided with the page for determining below
Direction is illustrated for X-direction:
If the page glide direction is X-direction, the second determining module 30 can obtain the slide in Y-axis
The side-play amount in direction, then, calculates the ratio between the side-play amount and sliding distance, and obtains speed corresponding with the ratio
Factor, then rate factor is multiplied by into default speed radix, obtain page gliding cable structure.Side-play amount such as Y direction is 5, sliding
Dynamic distance is 10, then ratio is 5/10, i.e., 0.5, and then the second determining module 30 inquires about default slope and rate factor relation
Mapping table, in the table ratio be 2 corresponding rate factors be 2, therefore by default speed radix be multiplied by 2 obtain the page slip
Speed.
Wherein it is possible to default slide is speed radix in the velocity component of X-direction, it is also possible to setting according to user
Put instruction and one speed radix is set.Such as, according to the gliding cable structure of speed radix, the page slides and 4 composes a piece of writing words, and rate factor is
5, then new gliding cable structure is original 5 times, 20 style of writing words of now page slip.
It should be noted that ratio can be flexibly set according to the visual custom of user with the mapping relations of rate factor
Put, so as to the page gliding cable structure for ensureing finally to calculate is in a rational scope.
Further, as the glide direction that user carries out slide can be present necessarily with the direction for actually wanting to slide
Deviation, thus slope and rate factor relation mapping table can be simplified.Specifically, can in advance by ratio and rate factor relationship map
Ratio in table is divided into multiple slopes intervals according to preset rules, and arranges a rate factor for each slope is interval.Due to
Side-play amount is less than sliding distance, therefore, the ratio range of side-play amount and sliding distance between 0 to 1, according to the size of ratio,
Ratio can be equally divided into 10 grades from 0 to 1, be a grade per 0.1,0~0.1 is the first order, and 0.1~0.2 is the
Two grades, and so on.Based on speed radix, ratio size often increases a grade to page gliding cable structure, and the page slides fast
Rate specific speed radix doubles, and 0.4 to 0.5, in the 5th grade, then page gliding cable structure is the 5 of speed radix to such as ratio
Times.
The present embodiment determines page gliding cable structure by the ratio relation between side-play amount and sliding distance, enables users to
The control to page gliding cable structure is realized enough by the angle of control screen sliding track, passes through hand relative to user in prior art
Refer to that gliding cable structure controls the mode of page gliding cable structure, the present embodiment can provide the user more accurately speed control, special
It is not that, when the page is more, prior art user will often carry out multiple screen sliding and can just navigate to target pages, and the present embodiment
User need to only set a speed radix, then by adjusting screen sliding Angle ambiguity gliding cable structure navigating to target pages, can
To reduce user's screen sliding number of times, operating efficiency is improved.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, it is every using this
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of method that control page slides, it is characterised in that methods described comprises the steps:
Slide of the detecting based on terminal page, obtains the slide rising in the coordinate system of default terminal Touch Zone
Initial point coordinate and termination point coordinates;
According to the starting point coordinate and the termination point coordinates determine the slip of page glide direction and the slide away from
From;
Page gliding cable structure is determined according to the sliding distance of the page glide direction and the slide;
The page gliding cable structure and the page glide direction according to determining controls the terminal page and enters line slip.
2. the method for claim 1, it is characterised in that described according to the starting point coordinate and the termination point coordinates
The step of sliding distance for determining page glide direction and the slide, includes:
Slide correspondence in the coordinate system is calculated respectively according to the starting point coordinate and the termination point coordinates
X-direction sliding distance and the sliding distance of Y direction;
If sliding distance of the sliding distance of the X-direction more than the Y direction, it is determined that the page glide direction is
X-direction, otherwise determines that the page glide direction is Y direction;
The distance between the starting point and the terminating point are calculated according to the starting point coordinate and the termination point coordinates, will
Sliding distance of the result of calculation as the slide.
3. method as claimed in claim 2, it is characterised in that described according to the page glide direction and the slide
Sliding distance include the step of determine page gliding cable structure:
Slide corresponding X-direction or Y direction in the coordinate system are obtained according to the page glide direction
Side-play amount;
Calculate the ratio between the side-play amount and the sliding distance of the slide for getting;
Obtain rate factor corresponding with the ratio;
The rate factor is multiplied by into default speed radix, page gliding cable structure is obtained.
4. method as claimed in claim 3, it is characterised in that described that the behaviour that slides is obtained according to the page glide direction
Work includes the step of the side-play amount of corresponding X-direction or Y direction in the coordinate system:
If the page glide direction is X-direction, side-play amount of the slide in the Y direction is obtained;
If the page glide direction is Y direction, side-play amount of the slide in the X-direction is obtained.
5. the method as described in claim 3 or 4, it is characterised in that acquisition rate factor corresponding with the ratio
Step includes:
Default ratio and rate factor relation mapping table are inquired about, rate factor corresponding with the ratio is obtained.
6. the device that a kind of control page slides, it is characterised in that described device includes:
Acquisition module, for slide of the detecting based on terminal page, obtains the slide in default terminal touch-control
Starting point coordinate and termination point coordinates in area's coordinate system;
First determining module, for determining page glide direction and described according to the starting point coordinate and the termination point coordinates
The sliding distance of slide;
Second determining module, for determining that the page slides according to the sliding distance of the page glide direction and the slide
Speed;
Control module, for controlling the terminal page according to the page gliding cable structure and the page glide direction that determine
Enter line slip.
7. device as claimed in claim 6, it is characterised in that first determining module is additionally operable to:
Slide correspondence in the coordinate system is calculated respectively according to the starting point coordinate and the termination point coordinates
X-direction sliding distance and the sliding distance of Y direction;
If sliding distance of the sliding distance of the X-direction more than the Y direction, it is determined that the page glide direction is
X-direction, otherwise determines that the page glide direction is Y direction;
The distance between the starting point and the terminating point are calculated according to the starting point coordinate and the termination point coordinates, will
Sliding distance of the result of calculation as the slide.
8. device as claimed in claim 7, it is characterised in that second determining module is additionally operable to:
Slide corresponding X-direction or Y direction in the coordinate system are obtained according to the page glide direction
Side-play amount;
Calculate the ratio between the side-play amount and the sliding distance of the slide for getting;
Obtain rate factor corresponding with the ratio;
The rate factor is multiplied by into default speed radix, page gliding cable structure is obtained.
9. device as claimed in claim 8, it is characterised in that second determining module is additionally operable to:
If the page glide direction is X-direction, side-play amount of the slide in the Y direction is obtained;
If the page glide direction is Y direction, side-play amount of the slide in the X-direction is obtained.
10. device as claimed in claim 8 or 9, it is characterised in that second determining module is additionally operable to inquire about default ratio
Value and rate factor relation mapping table, obtain rate factor corresponding with the ratio.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611202157.8A CN106527955B (en) | 2016-12-21 | 2016-12-21 | Method and device for controlling page sliding |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611202157.8A CN106527955B (en) | 2016-12-21 | 2016-12-21 | Method and device for controlling page sliding |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106527955A true CN106527955A (en) | 2017-03-22 |
CN106527955B CN106527955B (en) | 2020-07-14 |
Family
ID=58337393
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611202157.8A Active CN106527955B (en) | 2016-12-21 | 2016-12-21 | Method and device for controlling page sliding |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106527955B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108132753A (en) * | 2017-12-21 | 2018-06-08 | 广州阿里巴巴文学信息技术有限公司 | A kind of recognition methods, device and the terminal device of user gesture operation |
CN110493624A (en) * | 2019-08-28 | 2019-11-22 | 上海云视科技股份有限公司 | Touching telecontrol method, apparatus, remote controler, intelligent TV set and storage medium |
CN111801648A (en) * | 2019-06-06 | 2020-10-20 | 深圳海付移通科技有限公司 | Control method of transaction interface, electronic transaction equipment and storage medium |
WO2021017287A1 (en) * | 2019-08-01 | 2021-02-04 | 平安科技(深圳)有限公司 | Page sliding method and apparatus, and electronic device and computer-readable storage medium |
CN113608658A (en) * | 2021-06-15 | 2021-11-05 | 南京统信软件技术有限公司 | Page sliding control method and mobile terminal |
CN114115678A (en) * | 2021-11-30 | 2022-03-01 | 深圳市锐尔觅移动通信有限公司 | Content display control method and related device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102096513A (en) * | 2011-02-23 | 2011-06-15 | 惠州Tcl移动通信有限公司 | Solution for sliding of touch screen and electronic device using the same |
CN103135909A (en) * | 2011-11-23 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Display method, device and terminal for page |
CN103699289A (en) * | 2013-12-13 | 2014-04-02 | 广州华多网络科技有限公司 | Method and device for responding to sliding operation |
CN104777986A (en) * | 2015-03-20 | 2015-07-15 | 广东欧珀移动通信有限公司 | Navigation processing method and mobile terminal |
-
2016
- 2016-12-21 CN CN201611202157.8A patent/CN106527955B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102096513A (en) * | 2011-02-23 | 2011-06-15 | 惠州Tcl移动通信有限公司 | Solution for sliding of touch screen and electronic device using the same |
CN103135909A (en) * | 2011-11-23 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Display method, device and terminal for page |
CN103699289A (en) * | 2013-12-13 | 2014-04-02 | 广州华多网络科技有限公司 | Method and device for responding to sliding operation |
CN104777986A (en) * | 2015-03-20 | 2015-07-15 | 广东欧珀移动通信有限公司 | Navigation processing method and mobile terminal |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108132753A (en) * | 2017-12-21 | 2018-06-08 | 广州阿里巴巴文学信息技术有限公司 | A kind of recognition methods, device and the terminal device of user gesture operation |
CN111801648A (en) * | 2019-06-06 | 2020-10-20 | 深圳海付移通科技有限公司 | Control method of transaction interface, electronic transaction equipment and storage medium |
WO2021017287A1 (en) * | 2019-08-01 | 2021-02-04 | 平安科技(深圳)有限公司 | Page sliding method and apparatus, and electronic device and computer-readable storage medium |
CN110493624A (en) * | 2019-08-28 | 2019-11-22 | 上海云视科技股份有限公司 | Touching telecontrol method, apparatus, remote controler, intelligent TV set and storage medium |
CN113608658A (en) * | 2021-06-15 | 2021-11-05 | 南京统信软件技术有限公司 | Page sliding control method and mobile terminal |
CN113608658B (en) * | 2021-06-15 | 2024-01-02 | 南京统信软件技术有限公司 | Page sliding control method and mobile terminal |
CN114115678A (en) * | 2021-11-30 | 2022-03-01 | 深圳市锐尔觅移动通信有限公司 | Content display control method and related device |
Also Published As
Publication number | Publication date |
---|---|
CN106527955B (en) | 2020-07-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106527955A (en) | Method and device for controlling slide of page | |
US20190160374A1 (en) | Game machine with touch panel display | |
CN106716493B (en) | Method for stylizing content and touch screen device for stylizing content | |
CN102541537B (en) | Method and device for realizing menu container controls with surrounding effect | |
US20100079501A1 (en) | Information Processing Apparatus, Information Processing Method and Program | |
US20110080430A1 (en) | Information Processing Apparatus, Information Processing Method, and Information Processing Program | |
US20090040226A1 (en) | Methods and apparatus for controlling output of multidimensional information and input apparatus | |
US9927903B2 (en) | Vehicular input device | |
CN101196794A (en) | Scrolling method and apparatus | |
CN103927107A (en) | Information processing method and electronic device | |
CN103365599A (en) | Mobile terminal operation optimizing method and device based on screen sliding track | |
EP3413179B1 (en) | Rejecting extraneous touch inputs in an electronic presentation system | |
CN106527915A (en) | Information processing method and electronic equipment | |
CN103455245B (en) | Method and device for regulating area of widget | |
CN104965657B (en) | Method of toch control and device | |
US20180349014A1 (en) | Detecting erasure gestures in an electronic presentation system | |
CN102004569A (en) | Touch control method, processing device and processing system | |
TW201329791A (en) | Display method and system with adjustment function | |
CN106569702A (en) | List navigation method and apparatus | |
CN103853495A (en) | Vehicle-mounted device touch control device and method | |
CN103345365B (en) | The display packing of continuous handwriting input and the hand input device of employing the method | |
CN101587390A (en) | Extending vernier generating method and extending vernier generating device | |
CN105677624B (en) | A kind of electrical form frozen region method of adjustment and device | |
CN103309571A (en) | Method and device for controlling page sliding | |
CN106598435A (en) | Page locating method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |