CN106339165B - The method of adjustment and device of object's position - Google Patents
The method of adjustment and device of object's position Download PDFInfo
- Publication number
- CN106339165B CN106339165B CN201610695386.1A CN201610695386A CN106339165B CN 106339165 B CN106339165 B CN 106339165B CN 201610695386 A CN201610695386 A CN 201610695386A CN 106339165 B CN106339165 B CN 106339165B
- Authority
- CN
- China
- Prior art keywords
- touch
- displacement
- event
- touch event
- point
- 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.)
- Active
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/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/0486—Drag-and-drop
Abstract
The present invention relates to a kind of method of adjustment of object's position and devices, this method comprises: whether detecting has the drag operation to object;When detecting the drag operation to object, the first touch event is generated, and acquire the touch information of the first touch event;In every n-th preset interval time, N+1 touch event is generated, and acquires the touch information of touch event;The displacement of object in corresponding touch event is calculated according to the touch information of touch event;The displacement of touch point quantity and object is positively correlated;Object is moved to the corresponding position of the displacement of object in N+1 touch event.It using the above method, is slided on the touchscreen without hand relatively remote, it will be able to realize and object is moved to the relatively distant positions on screen, user's operation is convenient, and this method is specially adapted to the adjustment of the object's position of large screen.
Description
Technical field
The present invention relates to touch screen technology fields, more particularly to the method for adjustment and device of a kind of object's position.
Background technique
User is that pair to be adjusted is pinned using finger when being adjusted in the equipment with touch screen to object's position
As unclamping finger after moving a finger to destination, object will be dragged to the position of finger release.Object includes on touch screen
Icon, file, file of display etc..
Touch-control all-in-one machine usually has larger screen, and user wants to be moved to the object on screen separately by way of dragging
When one end, people will also go to the other end of screen, also, the not high user of height wants the object of screen being dragged to screen top
It may can't reach when end.Therefore, in the touch apparatus of large screen, using the position of conventional method regulating object, to user's
Operation is made troubles.
Summary of the invention
Based on this, it is necessary in view of the above-mentioned problems, providing object's position that is a kind of suitable for large screen, and operating conveniently
Method of adjustment and device.
A kind of method of adjustment of object's position, comprising:
Whether detecting has the drag operation to object;
When detecting the drag operation to object, the first touch event is generated, and acquire the touch of the first touch event
Information;
In every n-th preset interval time, N+1 touch event is generated, and acquires the touch information of touch event;It is described
Touch information includes the touch point quantity of effect on the touchscreen;
The displacement of object in corresponding touch event is obtained according to the touch information of touch event;The touch point quantity and institute
The displacement for stating object is positively correlated;
The object is moved to the corresponding position of the displacement of object in N+1 touch event.
A kind of adjustment device of object's position, comprising:
Detecting module, for detecting the drag operation whether having to object;
Acquisition module for when detecting the drag operation to object, generating the first touch event, and acquires the first touching
Touch the touch information of event;It is also used to generate N+1 touch event, and acquire touch event in every n-th preset interval time
Touch information;The touch information includes the touch point quantity of effect on the touchscreen, and wherein N is the integer greater than 0;
Computing module, for calculating the displacement of object in corresponding touch event according to the touch information of touch event;It is described
The displacement of touch point quantity and object is positively correlated;
Module is adjusted, the object is moved to the corresponding position of the displacement of object in N+1 touch event.
The method of adjustment of above-mentioned object's position generates touching when detecting the drag operation in touch apparatus to object
It touches event and acquires the touch information of each touch event, touch information includes the fingers number of effect on the touchscreen, finger
The displacement of quantity and object is positively correlated, and object is moved to the corresponding position of the displacement of object in N+1 touch event.Due to
The displacement of fingers number and object is positively correlated, can be by increasing or decreasing fingers number, and neatly regulating object is in unit
Between displacement, realize the towed speed of neatly regulating object.By increasing the fingers number of the object pulled on touch screen, nothing
Hand is needed to slide on the touchscreen relatively remote, it will be able to realize object being moved to the relatively distant positions on screen, user's operation side
Just, this method is specially adapted to the adjustment of the object's position of large screen.
Detailed description of the invention
Fig. 1 is the flow chart of the method for adjustment of the object's position of one embodiment;
Fig. 2 is the flow chart of the method for adjustment of the object's position of another embodiment;
Fig. 3 is the interface operation schematic diagram for starting to pull object of one embodiment;
Fig. 4 is that more fingers of use of another embodiment pull the interface operation schematic diagram of object;
Fig. 5 is piece finger of use of one embodiment by the interface operation schematic diagram of object drag to target position;
Fig. 6 is the functional block diagram of the adjustment device of the object's position of one embodiment;
Fig. 7 is the functional block diagram of the adjustment device of the object's position of another embodiment.
Specific embodiment
In order to which the purpose of the present invention, technical solution and advantage is more clearly understood, with reference to the accompanying drawings and embodiments,
The present invention will be described in further detail.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention,
Do not limit the present invention.
In one embodiment, the method for adjustment of object's position is applied to the touch apparatus of large screen, especially touch-control one
Body machine.As shown in Figure 1, a kind of method of adjustment of object's position, comprising the following steps:
S102: whether detecting has the drag operation to object.
The file and file that object refers to the application program for being mounted on touch apparatus or is stored in touch apparatus.To object
Drag operation refer to user by touch control operation selecting object and pulling, in a particular embodiment, when pressing pair
When as being more than preset time, the object and on the touchscreen sliding realization drag operation are selected.
S104: when detecting the drag operation to object, the first touch event is generated, and acquire the first touch event
Touch information.
When pressing object and being more than preset time and when sliding on touch apparatus, the drag operation to object is detected,
Generate the first touch event.
S106: in every n-th preset interval time, generating N+1 touch event, and acquires the touch letter of touch event
Breath.
Specifically, generating the second touch event in first preset interval time;It is raw in second preset interval time
At third touch event, and so on, in n-th preset interval time, N+1 touch event is generated, and acquire touch thing
The touch information of part.It is understood that the time of the first touch event of preset interval time self-generating starts timing.
Preset interval time need it is shorter, so that the sliding of touch point is on the touchscreen in continuous touch event
Form continuous sliding trace.In a specific embodiment, preset interval time is 10 milliseconds, can be generated in 1 second
100 touch events.
Touch information includes the touch point quantity of effect on the touchscreen, the touching in some touch event, on touch screen
Control point quantity may generate variation, for example, touch point quantity increases relative to a upper touch event, in another example, relative to upper
One touch event, touch point quantity are reduced.
S108: the displacement of object in corresponding touch event is calculated according to the touch information of touch event.
It is understood that the displacement of object refers to the shifting relative to object in N touch event in N+1 touch event
Dynamic distance, i.e., the moving distance of object in the corresponding prefixed time interval of the touch event.The object in some touch event
Displacement calculated according to touch information in the secondary touch event.The displacement of touch point quantity and object is positively correlated.
In one embodiment, when increasing relative to upper touch event touch point quantity, the displacement phase of object in the touch event
To increasing.In one embodiment, when being reduced relative to upper touch event touch point quantity, object in the touch event
Displacement is opposite to be reduced.
S110: object is moved to the corresponding position of the displacement of object in N+1 touch event.
In this embodiment, the object is moved to the corresponding position of the displacement of object in N+1 touch event, it can
The misalignment of object is shown on touch apparatus in real time depending on the user's operation, user's selecting object, in the mistake of towing
The situation of movement of object can be intuitively observed in journey, with facilitate the position of the movement according to object in current touch event away from
Touch point quantity is adjusted with a distance from target position.It is understood that since the displacement of touch point quantity and object is at positive
It closes, when pulling object on the touchscreen using multiple touch points, object might not be in the underface of touch point.
The method of adjustment of above-mentioned object's position generates touching when detecting the drag operation in touch apparatus to object
It touches event and acquires the touch information of each touch event, touch information includes the touch point quantity of effect on the touchscreen, touching
The displacement of control point quantity and object is positively correlated, and object is moved to the corresponding position of the displacement of object in N+1 touch event.
It, can be by increasing or decreasing touch point quantity since the displacement of touch point quantity and object is positively correlated, neatly regulating object
In the displacement of unit time, the towed speed of neatly regulating object is realized.By the touching for increasing the object pulled on touch screen
Control point quantity, is slided relatively remote on the touchscreen without hand, it will be able to and it realizes and object is moved to the relatively distant positions on screen,
User's operation is convenient, and this method is specially adapted to the adjustment of the object's position of large screen.
In one embodiment, as shown in Fig. 2, after step silo, further comprising the steps of:
S112: whether detection drag operation terminates.If so, S114 is thened follow the steps, if it is not, then return step S106.
S114: displacement of object during towing is the sum of the displacement of object in each touch event.
Whether whether detection drag operation terminates can be by having touch operation realization, i.e. detection touch-control in detection touch apparatus
Whether point leaves touch apparatus, and when detecting that touch point leaves touch apparatus, drag operation terminates.When detecting drag operation
At the end of, since the displacement of object in N+1 touch event is the moving distance relative to object in N touch event, pass through
Displacement of object during towing can be obtained in the sum of the displacement for calculating object in each touch event.Object is in towing process
In displacement be each touch event in object the sum of displacement.
In a specific embodiment, user needs the object for being located at the screen lower left corner being moved to screen upper right
Angle, after selecting object, user is pulled on the screen using five fingers, in a touch event, detects touch point
Quantity is five, since the displacement of touch point quantity and object is positively correlated, in corresponding touch event, and the quantity of touch point
More, the displacement of object is bigger, therefore, using more fingers, generates multiple touch points, can move object with faster speed
It moves to target position.Also, object is moved with user's towing on the touchscreen, user intuitively observe object from
The distance of target position.When object be moved to from target position it is closer with a distance from when, user can reduce the number of the touch point of sliding
Amount, for example, continuing to pull on the touchscreen using a finger.To detect the quantity of touch point in corresponding touch event
It is one, since the quantity of touch point and the displacement of object are positively correlated, the quantity of touch point is reduced, and the displacement of object becomes smaller,
Opposite, the movement speed of object slows down, position of the user by observation object in moving process, when being moved to target position
When, it unclamps touch point and leaves touch apparatus, so that the position of object is adjusted to target position.
It is understood that touch point quantity is more, in unit since the displacement of touch point quantity and object is positively correlated
The displacement of time object is bigger, thus, object is also faster in the movement speed of unit time, therefore, touch point quantity and object
Movement speed be positively correlated.
In another embodiment, step S108 specifically includes following steps 1 and step 2:
Step 1: the displacement of all touch points in corresponding touch event is calculated according to the touch information of touch event.
Step 2: calculating the sum of the displacement of all touch points in corresponding touch event, the displacement of object in a touch event
For the sum of the displacement of all touch points in the touch event.
For N+1 touch event, the displacement of object refers to relative to N touch event in N+1 touch event
The moving distance of middle object.In a touch event displacement of object be the touch event in all touch points displacement it
With.
Specifically, changing coordinates and each touch point that touch information further includes each touch point are in a upper touch event
Coordinate, the corresponding coordinate of each touch point can be determined according to touch point ID (Identity).In the sliding of one-time continuous
In the process, the corresponding touch point ID of touch point is constant, according to touch point ID can be traced the changing coordinates of each touch point with
And each touch point is in the coordinate of a upper touch event.It is calculated in corresponding touch event and is owned according to the touch information of touch event
The step of displacement of touch point, specifically, according to touch point quantity, the changing coordinates and a upper touch event of each touch point
Coordinate calculate displacement of each touch point in corresponding touch event.
In continuous touch event, touch point forms the track of sliding on the touchscreen, and touch information includes each touching
Coordinate of the changing coordinates and each touch point of control point in a upper touch event.According to changing coordinates of each touch point and upper
The distance that this touch point moves in the touch event is calculated in the coordinate of one touch event, i.e., the touch point is in the touch
Displacement in event.Displacement of the object in a touch event is the sum of the displacement of all touch points in the touch event.
For example, user uses five fingers in N touch event, in the secondary touch event, the displacement of object is five touch points
The sum of displacement on the screen.In N+1 touch event, user reduces the quantity of touch point, using a finger, due to
Touch point be on the touchscreen it is continuously slipping, by obtain the touch point used in N+1 touch event N touch thing
Coordinate in part, and the changing coordinates in N+1 touch event, are calculated the touching used in N+1 touch event
Control the displacement of point.In another example user uses a finger in N touch event, a touch point is generated, in the secondary touch
In event, the displacement of object is the displacement of the touch point on the screen.
In another embodiment, step S108 includes the following steps 1 to step 3:
Step 1: obtaining the touch point quantity acted in touch event on the touchscreen, and determination is corresponding with touch point quantity
Displacement ratio.
Step 2: the displacement of any one touch point in corresponding touch event is calculated according to the touch information of touch event.
Step 3: calculating the displacement of touch point and the product of displacement ratio, the displacement of object is the touching in a touch event
Touch the product of the displacement of touch point and displacement ratio in event.
In the present embodiment.It presets in a touch event, the corresponding displacement ratio of touch point quantity.Displacement ratio
For the ratio of the displacement of the displacement and object of touch point single in a touch event.Each touch-control in a touch event
The displacement of point is identical.For convenient for calculating, in a particular embodiment, the touch point by acquisition selecting object is corresponding
Touch point ID obtains the displacement of the touch point in each touch event by tracking touch point ID.In sliding process, pine
When having opened the touch point of selecting object, the displacement of any one touch point ID is taken to calculate single touch point in a touch event
Displacement.The corresponding displacement ratio of touch point quantity can be configured according to the size of the touch screen of touch apparatus.For example, touching
Screen is bigger, and the displacement ratio of touch point quantity is also bigger.In a specific embodiment, in a touch event, touch-control
The corresponding displacement ratio of point quantity is 1:3, then in the secondary touch event, it is touching that the displacement of object, which is in the secondary touch event,
3 times of control point displacement.
In the present embodiment, the displacement of object is adjusted according to the displacement of touch point by displacement ratio, by adjusting displacement
Ratio can be realized the adjustment to the object's position of extra large screen.
In the following, being illustrated in conjunction with specific embodiments to the method for adjustment of object's position.
As shown in figure 3, selecting after user presses 10 preset time of object on touch screen and pulling object 10.Object
10 are located at the lower left corner of touch screen, and user needs to adjust object 10 to target position 20, target position 20, target position 20
In the upper right corner of touch screen.
As shown in figure 4, user selects touch screen drag object into 20 sliding process of target position, increase touch-control points
Amount, for example, using five fingers.The displacement of touch point quantity and object is positively correlated, more particularly, in a touch event
In, the displacement of object is the sum of the displacement of all touch points in the touch event.Therefore, touch point quantity is more, even if hand exists
The distance slided on touch screen is shorter, within a short period of time, remains to object drag to relatively at a distance.It is understood that by
In in a touch event, the displacement of object is the sum of the displacement of all touch points in the touch event, when the multiple touchings of use
When control point pulls object on the touchscreen, object 10 is not in the underface of touch point.
As shown in figure 5, the quantity that can reduce towing touch point is one when pulling near 10 distance objective position 20 of object
A, in corresponding touch event, the displacement of object is displacement of the touch point in touch event, thus, the position of object
Moving speed reduces, and user can be controllable by object drag to target position 20.
Using the method for adjustment of above-mentioned object's position, the touch point of user, can be more right without sliding into target position
As adjusting from initial position to target position.And during the adjustment, the towed speed of object is controllable.User can basis
Actual demand increases or decreases touch point quantity, to be correspondingly improved or reduce towed speed.This method is especially suitable for large-size screen monitors
Curtain it is touch control integrated.
In one embodiment, a kind of adjustment device of object's position is provided, as shown in Figure 6, comprising:
Detecting module 10, for detecting the drag operation whether having to object.
The file and file that object refers to the application program for being mounted on touch apparatus or is stored in touch apparatus.To object
Drag operation refer to user by touch control operation selecting object and pulling, in a particular embodiment, when pressing pair
When as being more than preset time, the object and on the touchscreen sliding realization drag operation are selected.
Acquisition module 30 for when detecting the drag operation to object, generating the first touch event, and acquires first
The touch information of touch event;It is also used to generate N+1 touch event, and acquire touch thing in every n-th preset interval time
The touch information of part;Touch information includes the touch point quantity of effect on the touchscreen, and wherein N is the integer greater than 0.
When pressing object and being more than preset time and when sliding on touch apparatus, the drag operation to object is detected,
Generate the first touch event.
Specifically, generating the second touch event in first preset interval time;It is raw in second preset interval time
At third touch event, and so on, in n-th preset interval time, N+1 touch event is generated, and acquire touch thing
The touch information of part.It is understood that the time of the first touch event of preset interval time self-generating starts timing.
Preset interval time need it is shorter, so that the sliding of touch point is on the touchscreen in continuous touch event
Form continuous sliding trace.In a specific embodiment, preset interval time is 10 milliseconds, can be generated in 1 second
100 touch events.
Touch information includes the touch point quantity of effect on the touchscreen, the touching in some touch event, on touch screen
Control point quantity may generate variation, for example, touch point quantity increases relative to a upper touch event, in another example, relative to upper
One touch event, touch point quantity are reduced.
Computing module 50, for calculating the displacement of object in corresponding touch event, touching according to the touch information of touch event
The displacement of control point quantity and object is positively correlated.
It is understood that the displacement of object refers to the shifting relative to object in N touch event in N+1 touch event
Dynamic distance, i.e., the moving distance of object in the corresponding prefixed time interval of the touch event.The object in some touch event
Displacement calculated according to touch information in the secondary touch event.The displacement of touch point quantity and object is positively correlated.
Module 70 is adjusted, object is moved to the corresponding position of the displacement of object in N+1 touch event.
In this embodiment, the object is moved to the corresponding position of the displacement of object in N+1 touch event, it can
The misalignment of object is shown on touch apparatus in real time depending on the user's operation, user's selecting object, in the mistake of towing
The situation of movement of object can be intuitively observed in journey, with facilitate the position of the movement according to object in current touch event away from
Touch point quantity is adjusted with a distance from target position.It is understood that since the displacement of touch point quantity and object is at positive
It closes, when pulling object on the touchscreen using multiple touch points, object might not be in the underface of touch point.
The adjustment device of above-mentioned object's position generates touching when detecting the drag operation in touch apparatus to object
It touches event and acquires the touch information of each touch event, touch information includes the touch point quantity of effect on the touchscreen, touching
The displacement of control point quantity and object is positively correlated, and object is moved to the corresponding position of the displacement of object in N+1 touch event.
It, can be by increasing or decreasing touch point quantity since the displacement of touch point quantity and object is positively correlated, neatly regulating object
In the displacement of unit time, the towed speed of neatly regulating object is realized.By the touching for increasing the object pulled on touch screen
Control point quantity, is slided relatively remote on the touchscreen without hand, it will be able to and it realizes and object is moved to the relatively distant positions on screen,
User's operation is convenient, and this method is specially adapted to the adjustment of the object's position of large screen.
In one embodiment, at the end of drag operation, displacement of object during towing is each touch
The sum of the displacement of object in event.
Whether whether detection drag operation terminates can be by having touch operation realization, i.e. detection touch-control in detection touch apparatus
Whether point leaves touch apparatus, and when detecting that touch point leaves touch apparatus, drag operation terminates.When detecting drag operation
At the end of, since the displacement of object in N+1 touch event is the moving distance relative to object in N touch event, pass through
Displacement of object during towing can be obtained in the sum of the displacement for calculating object in each touch event.Object is in towing process
In displacement be each touch event in object the sum of displacement.
It is understood that touch point quantity is more, in unit since the displacement of touch point quantity and object is positively correlated
The displacement of time object is bigger, thus, object is also faster in the movement speed of unit time, therefore, touch point quantity and object
Movement speed be positively correlated.
In another embodiment, as shown in fig. 7, computing module 50 includes: the first touch point displacement 501 He of computing module
Second object displacement computing module 502.
First touch point is displaced computing module 501, for calculating corresponding touch event according to the touch information of touch event
In all touch points displacement.
Second object displacement computing module 502, for calculating the sum of the displacement of all touch points in corresponding touch event, one
The displacement of object is the sum of the displacement of all touch points in the touch event in a touch event.
For N+1 touch event, the displacement of object refers to relative to N touch event in N+1 touch event
The moving distance of middle object.In a touch event displacement of object be the touch event in all touch points displacement it
With.
Specifically, changing coordinates and each touch point that touch information further includes each touch point are in a upper touch event
Coordinate, touch point position computation module 501, specifically for according to the changing coordinates of touch point quantity, each touch point and
The coordinate of a upper touch event calculates displacement of each touch point in corresponding touch event.
Using the adjustment device of above-mentioned object's position, the touch point of user, can be more right without sliding into target position
As adjusting from initial position to target position.And during the adjustment, the towed speed of object is controllable.User can basis
Actual demand increases or decreases touch point quantity, to be correspondingly improved or reduce towed speed.This method is especially suitable for large-size screen monitors
Curtain it is touch control integrated.
In another embodiment, computing module includes: displacement ratio determining module, the second touch point displacement computing module
With the second object displacement computing module;
Displacement ratio determining module for obtaining the touch point quantity acted in touch event on the touchscreen, and determines
Displacement ratio corresponding with touch point quantity;
Second touch point is displaced computing module, for being calculated in corresponding touch event according to the touch information of touch event
The displacement of any one touch point;
Second object displacement computing module, for calculating the displacement of touch point and the product of displacement ratio, a touch thing
The displacement of object is the displacement of touch point and the product of displacement ratio in the touch event in part.
In the present embodiment.It presets in a touch event, the corresponding displacement ratio of touch point quantity.Displacement ratio
For the ratio of the displacement of the displacement and object of touch point single in a touch event.Each touch-control in a touch event
The displacement of point is identical.For convenient for calculating, in a particular embodiment, the touch point by acquisition selecting object is corresponding
Touch point ID obtains the displacement of the touch point in each touch event by tracking touch point ID.In sliding process, pine
When having opened the touch point of selecting object, the displacement of any one touch point ID is taken to calculate single touch point in a touch event
Displacement.The corresponding displacement ratio of touch point quantity can be configured according to the size of the touch screen of touch apparatus.For example, touching
Screen is bigger, and the displacement ratio of touch point quantity is also bigger.In a specific embodiment, in a touch event, touch-control
The corresponding displacement ratio of point quantity is 1:3, then in the secondary touch event, it is touching that the displacement of object, which is in the secondary touch event,
3 times of control point displacement.
In the present embodiment, the displacement of object is adjusted according to the displacement of touch point by displacement ratio, by adjusting displacement
Ratio can be realized the adjustment to the object's position of extra large screen.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (10)
1. a kind of method of adjustment of object's position, comprising:
Whether detecting has the drag operation to object;The object refers to the application program for being mounted on touch apparatus or is stored in touch
The file and file of equipment;The drag operation to object refers to that user passes through touch control operation selecting object and drags
It drags;
When detecting the drag operation to object, the first touch event is generated, and acquire the touch information of the first touch event;
In every n-th preset interval time, N+1 touch event is generated, and acquires the touch information of N+1 touch event;Institute
Stating touch information includes the touch point quantity of effect on the touchscreen, and wherein N is the integer greater than 0;
The displacement of object in corresponding touch event is calculated according to the touch information of touch event;The touch point quantity and object
Displacement is positively correlated;
The object is moved to the corresponding position of the displacement of object in N+1 touch event.
2. the method according to claim 1, wherein the object is in towing process at the end of drag operation
In displacement be each touch event in object the sum of displacement.
3. the method according to claim 1, wherein described calculate corresponding touching according to the touch information of touch event
The step of touching the displacement of object in event include:
The displacement of all touch points in corresponding touch event is calculated according to the touch information of touch event;
The sum of the displacement of all touch points in corresponding touch event is calculated, the displacement of object is the touch thing in a touch event
The sum of the displacement of all touch points in part.
4. according to the method described in claim 3, it is characterized in that, touch information further include the changing coordinates of each touch point with
And each touch point is in the coordinate of a upper touch event;
Described the step of calculating the displacement of all touch points in corresponding touch event according to the touch information of touch event includes: root
Each touch point is calculated according to the coordinate of touch point quantity, the changing coordinates of each touch point and a upper touch event to touch corresponding
Touch the displacement in event.
5. the method according to claim 1, wherein described calculate corresponding touching according to the touch information of touch event
The step of touching the displacement of object in event include:
The touch point quantity acted in touch event on the touchscreen is obtained, and determines displacement corresponding with the touch point quantity
Ratio;
The displacement of any one touch point in corresponding touch event is calculated according to the touch information of touch event;
The displacement and the product of the displacement ratio of the touch point are calculated, the displacement of object is the touch in a touch event
The displacement of touch point described in event and the product of the displacement ratio.
6. a kind of adjustment device of object's position, comprising:
Detecting module, for detecting the drag operation whether having to object;The object refers to the application journey for being mounted on touch apparatus
Sequence or the file and file for being stored in touch apparatus;The drag operation to object refers to that user is selected by touch control operation
It selects object and is pulled;
Acquisition module for when detecting the drag operation to object, generating the first touch event, and acquires first and touches thing
The touch information of part;It is also used to generate N+1 touch event in every n-th preset interval time, and acquires N+1 and touch thing
The touch information of part;The touch information includes the touch point quantity of effect on the touchscreen, and wherein N is the integer greater than 0;
Computing module, for calculating the displacement of object in corresponding touch event according to the touch information of touch event;The touch-control
The displacement of point quantity and object is positively correlated;
Module is adjusted, the object is moved to the corresponding position of the displacement of object in N+1 touch event.
7. device according to claim 6, which is characterized in that
At the end of drag operation, displacement of object during towing be each touch event in object displacement it
With.
8. device according to claim 6, which is characterized in that the computing module includes: that the displacement of the first touch point calculates
Module and the first object displacement computing module;
First touch point is displaced computing module, for calculating institute in corresponding touch event according to the touch information of touch event
There is the displacement of touch point;
The first object displacement computing module, for calculating the sum of the displacement of all touch points in corresponding touch event, one
The displacement of object is the sum of the displacement of all touch points in the touch event in touch event.
9. device according to claim 8, which is characterized in that touch information further include the changing coordinates of each touch point with
And each touch point is in the coordinate of a upper touch event;First touch point is displaced computing module, for being counted according to touch-control
The coordinate of amount, the changing coordinates of each touch point and a upper touch event calculates each touch point in corresponding touch event
Displacement.
10. device according to claim 6, which is characterized in that the computing module include: displacement ratio determining module,
Second touch point is displaced computing module and the second object displacement computing module;
The displacement ratio determining module for obtaining the touch point quantity acted in touch event on the touchscreen, and determines
Displacement ratio corresponding with the touch point quantity;
Second touch point is displaced computing module, for being calculated in corresponding touch event according to the touch information of touch event
The displacement of any one touch point;
The second object displacement computing module, for calculate the touch point displacement and the displacement ratio product, one
The displacement of object is the displacement and the product of the displacement ratio of touch point described in the touch event in a touch event.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610695386.1A CN106339165B (en) | 2016-08-18 | 2016-08-18 | The method of adjustment and device of object's position |
PCT/CN2016/113164 WO2018032694A1 (en) | 2016-08-18 | 2016-12-29 | Method and device for adjusting object position |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610695386.1A CN106339165B (en) | 2016-08-18 | 2016-08-18 | The method of adjustment and device of object's position |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106339165A CN106339165A (en) | 2017-01-18 |
CN106339165B true CN106339165B (en) | 2019-06-11 |
Family
ID=57825728
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610695386.1A Active CN106339165B (en) | 2016-08-18 | 2016-08-18 | The method of adjustment and device of object's position |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106339165B (en) |
WO (1) | WO2018032694A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019127590A1 (en) * | 2017-12-31 | 2019-07-04 | 李庆远 | Multi-stage gesture control method and device |
CN109656416B (en) * | 2018-12-28 | 2022-04-15 | 腾讯音乐娱乐科技(深圳)有限公司 | Control method and device based on multimedia data and related equipment |
CN110536006B (en) * | 2019-08-16 | 2021-03-02 | 维沃移动通信有限公司 | Object position adjusting method and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101510141A (en) * | 2009-03-24 | 2009-08-19 | 无锡迈思奇科技有限公司 | Touch screen information display method |
CN103268184A (en) * | 2013-05-17 | 2013-08-28 | 广东欧珀移动通信有限公司 | Method and device for moving text cursor |
CN103699316A (en) * | 2013-12-17 | 2014-04-02 | 珠海金山办公软件有限公司 | Method for transplanting direction key through floating contact and terminal |
CN103927186A (en) * | 2014-04-30 | 2014-07-16 | 广州视源电子科技股份有限公司 | Method for controlling function key based on Android system |
CN104536641A (en) * | 2014-12-03 | 2015-04-22 | 惠州Tcl移动通信有限公司 | Mobile terminal and screen operation method thereof |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130194197A1 (en) * | 2012-02-01 | 2013-08-01 | Ideacom Technology Inc. | Electronic Apparatus With Touch Panel and the Operating Method Therefor |
CN102662677B (en) * | 2012-04-17 | 2015-09-02 | 广东威创视讯科技股份有限公司 | Icon method for customizing |
CN102819394B (en) * | 2012-07-27 | 2016-06-08 | 东莞宇龙通信科技有限公司 | Terminal and terminal operation method |
-
2016
- 2016-08-18 CN CN201610695386.1A patent/CN106339165B/en active Active
- 2016-12-29 WO PCT/CN2016/113164 patent/WO2018032694A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101510141A (en) * | 2009-03-24 | 2009-08-19 | 无锡迈思奇科技有限公司 | Touch screen information display method |
CN103268184A (en) * | 2013-05-17 | 2013-08-28 | 广东欧珀移动通信有限公司 | Method and device for moving text cursor |
CN103699316A (en) * | 2013-12-17 | 2014-04-02 | 珠海金山办公软件有限公司 | Method for transplanting direction key through floating contact and terminal |
CN103927186A (en) * | 2014-04-30 | 2014-07-16 | 广州视源电子科技股份有限公司 | Method for controlling function key based on Android system |
CN104536641A (en) * | 2014-12-03 | 2015-04-22 | 惠州Tcl移动通信有限公司 | Mobile terminal and screen operation method thereof |
Also Published As
Publication number | Publication date |
---|---|
WO2018032694A1 (en) | 2018-02-22 |
CN106339165A (en) | 2017-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11353962B2 (en) | Free-space user interface and control using virtual constructs | |
CN105573536B (en) | Processing method, the device and system of touch-control interaction | |
CN106339165B (en) | The method of adjustment and device of object's position | |
CN102662462B (en) | Electronic installation, gesture identification method and gesture application process | |
CN205272100U (en) | Adjustable interval comb, regulation driver and hair cutting utensil | |
KR102131358B1 (en) | User interface device and method of operation of user interface device | |
CN103324440A (en) | Text content selecting method utilizing multi-point touch control | |
CN103809866B (en) | A kind of operation mode switching method and electronic equipment | |
CN104516658B (en) | A kind of method of one-handed performance screen of hand-held device | |
US20100177041A1 (en) | Method of controlling cursor with multiple and variable speeds through a trackpad | |
WO2006003590A3 (en) | A method and device for preventing staining of a display device | |
WO2016065712A1 (en) | Touch screen control method and touch screen apparatus | |
EP2620863A3 (en) | Intelligent gesture-based user's instantaneous interaction and task requirements recognition system and method | |
JP2013530587A5 (en) | ||
CN105353933A (en) | Capacitive touch screen control method | |
EP2662757A3 (en) | Coordinates indication device and coordinates measurement device for measuring input position of the coordinates indication device | |
CN105335724B (en) | Window regulation method and device and terminal based on fingerprint recognition | |
CN103853495A (en) | Vehicle-mounted device touch control device and method | |
CN104182144A (en) | Mobile terminal interface browsing method and system | |
US9582184B2 (en) | Touch screen control for adjusting a numerical value | |
CN108376030B (en) | Electronic equipment control method and device and electronic equipment | |
CN105511672B (en) | The virtual method for being directed toward bar of handheld apparatus simulation | |
CN108170299A (en) | Navigation device and image display system | |
TWI437467B (en) | Display control apparatus and display control method | |
CN107179863A (en) | A kind of control method of touch-screen, device and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |