[go: up one dir, main page]

CN104750275B - A kind of determining method and device of the movement speed of sliding block - Google Patents

A kind of determining method and device of the movement speed of sliding block Download PDF

Info

Publication number
CN104750275B
CN104750275B CN201310726874.0A CN201310726874A CN104750275B CN 104750275 B CN104750275 B CN 104750275B CN 201310726874 A CN201310726874 A CN 201310726874A CN 104750275 B CN104750275 B CN 104750275B
Authority
CN
China
Prior art keywords
contact point
sliding block
moving direction
angle
sliding rail
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
Application number
CN201310726874.0A
Other languages
Chinese (zh)
Other versions
CN104750275A (en
Inventor
樊邵婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310726874.0A priority Critical patent/CN104750275B/en
Publication of CN104750275A publication Critical patent/CN104750275A/en
Application granted granted Critical
Publication of CN104750275B publication Critical patent/CN104750275B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

The embodiment of the invention discloses a kind of determining method and device of the movement speed of sliding block, method includes:After detecting that sliding block is selected, the moving direction of contact point is obtained;The moving direction is that the initial position of contact point is directed toward the direction of contact point current location;Moving direction of the sliding block on sliding rail is determined according to the moving direction of the contact point;Rate travel of the sliding block on sliding rail is determined according to the angle between the moving direction of the contact point and the sliding rail.The embodiment of the present invention is without contact point always situated in the position range of sliding block, it is possible to which dynamic adjusts the movement speed of sliding block, and then dynamic adjusts the content shown on display.

Description

A kind of determining method and device of the movement speed of sliding block
Technical field
The present invention relates to data processing field more particularly to a kind of determining method and devices of the movement speed of sliding block.
Background technology
In the various software applications of electronic equipment, usually provide sliding block to the user, so as to user by adjusting slider come The content shown on display is adjusted.The movement speed of sliding block decides electronic equipment to the content that is shown on display The position regulated the speed with sliding block on sliding rail, position of the sliding block on sliding rail decides the content shown on display.Example Such as, after a certain word document is opened, user can adjust word document shown on display screen by adjusting slider Content, so that the content before or after the content shown on a display screen current in word document is shown on display screen; Alternatively, in media playback software, user can adjust Media playing course, volume etc. by adjusting slider.
At present in the various software applications of electronic equipment, generally enter the position range of sliding block in driving mouse by user And after choosing sliding block, be always positioned in the position range of sliding block and in the state of choosing sliding block in mouse, by mobile mouse come Achieve the purpose that dragging sliding block moves on the slide rail, the movement speed of sliding block is decided by the movement speed of mouse, the sliding block Position range is a regional extent including sliding block icon.But during this dragging sliding block, user is necessary Always so that mouse is located in the position range of sliding block, once mouse is detached from the position model of sliding block during sliding block is dragged It encloses, user will be unable to move on the slide rail to drag sliding block by mobile mouse.
Therefore, it will be unable to move if mouse is detached from the position range of sliding block during sliding block is dragged in the prior art State adjusts the movement speed of sliding block, and then also can not dynamically adjust the content shown on display.
Invention content
A kind of determining method of the movement speed of sliding block is provided in the embodiment of the present invention, without contact point always situated in cunning In the position range of block, it is possible to which dynamic adjusts the movement speed of sliding block, and then dynamic adjusts the content shown on display.
In a first aspect, a kind of determining method of the movement speed of sliding block is provided, including:
After detecting that sliding block is selected, the moving direction of contact point is obtained;The moving direction is the initial bit of contact point Put the direction for being directed toward contact point current location;
Moving direction of the sliding block on sliding rail is determined according to the moving direction of the contact point;According to the contact point Moving direction and the sliding rail between angle determine rate travel of the sliding block on the sliding rail.
With reference to first aspect, in first aspect in the first possible realization method, the shifting according to the contact point Dynamic direction determines that moving direction of the sliding block on sliding rail includes:
Determine durection component of the moving direction of the contact point on the sliding rail, using the direction of direction component as Moving direction of the sliding block on the sliding rail.
With reference to first aspect and/or first aspect the first possible realization method, it is possible in second of first aspect In realization method, the angle according between the moving direction of the contact point and the sliding rail determines the rate travel of sliding block Including:
Determine the number of degrees of the first angle between the moving direction of the contact point and the sliding rail;First angle is In two angles that the moving direction of the contact point and the sliding rail are formed, the number of degrees be not more than the folder of another angle number of degrees Angle;
The rate travel of sliding block is determined according to the number of degrees of first angle, wherein, the rate travel of the sliding block and institute The number of degrees for stating the first angle are inversely proportional.
With reference to first aspect and/or second of the first possible realization method of first aspect and/or first aspect can The realization method of energy, in first aspect in the third possible realization method, the moving direction for obtaining contact point includes:
Determine the initial position of contact point;
Determine the current location of contact point;
The moving direction of contact point is determined according to the initial position and current location.
With reference to first aspect and/or second of the first possible realization method of first aspect and/or first aspect can Can realization method and/or first aspect the third possible realization method, in the 4th kind of possible realization method of first aspect In, contact point is on a display screen after the initial position of the contact point refers to that sliding block is selected, during the initial time of current period Position;After the current location of contact point refers to that sliding block is selected, the position of current time contact point on a display screen;
Alternatively, when the initial position of the contact point refers to that sliding block is selected, the position of contact point on a display screen;Contact After the current location of point refers to that sliding block is selected, the position of current time contact point on a display screen;
Alternatively, after the initial position of the contact point refers to that sliding block is selected, before current time and current time The position of contact point on a display screen when at the time of the predetermined time period of interval;The current location of contact point refers to that sliding block is selected Afterwards, the position of current time contact point on a display screen.
Second aspect provides a kind of determining device of the movement speed of sliding block, including:
Acquiring unit after detecting that sliding block is selected, obtains the moving direction of contact point;The moving direction is to connect The initial position of contact is directed toward the direction of contact point current location;
Determination unit, the moving direction of the contact point for being obtained according to the acquiring unit determine sliding block in sliding rail On moving direction;Shifting of the sliding block on sliding rail is determined according to the angle between the moving direction of the contact point and the sliding rail Dynamic rate.
With reference to second aspect, in second aspect in the first possible realization method, the determination unit is specifically used for:Really Durection component of the moving direction of the fixed contact point on the sliding rail, exists the direction of direction component as the sliding block Moving direction on the sliding rail.
It is possible in second of second aspect with reference to second aspect and/or second aspect the first possible realization method In realization method, the determination unit is specifically used for:
Determine the number of degrees of the first angle between the moving direction of the contact point and the sliding rail;First angle is In two angles that the moving direction of the contact point and the sliding rail are formed, the number of degrees be not more than the folder of another angle number of degrees Angle;
The rate travel of sliding block is determined according to the number of degrees of first angle, wherein, the rate travel of the sliding block and institute The number of degrees for stating the first angle are inversely proportional.
It can with reference to second aspect and/or the first possible realization method of second aspect and/or second of second aspect The realization method of energy, in second aspect in the third possible realization method, the acquiring unit is specifically used for:
Determine the initial position of contact point;
Determine the current location of contact point;
The moving direction of contact point is determined according to the initial position and current location.
It can with reference to second aspect and/or the first possible realization method of second aspect and/or second of second aspect Can realization method and/or second aspect the third possible realization method, in the 4th kind of possible realization method of second aspect In, contact point is on a display screen after the initial position of the contact point refers to that sliding block is selected, during the initial time of current period Position;After the current location of contact point refers to that sliding block is selected, the position of current time contact point on a display screen;
Alternatively, when the initial position of the contact point refers to that sliding block is selected, the position of contact point on a display screen;Contact After the current location of point refers to that sliding block is selected, the position of current time contact point on a display screen;
Alternatively, after the initial position of the contact point refers to that sliding block is selected, before current time and current time The position of contact point on a display screen when at the time of the predetermined time period of interval;The current location of contact point refers to that sliding block is selected Afterwards, the position of current time contact point on a display screen.
In the present embodiment, after detecting that sliding block is selected, the moving direction of contact point is obtained;The moving direction is contact The initial position of point is directed toward the direction of contact point current location;Determine sliding block on sliding rail according to the moving direction of the contact point Moving direction;Movement of the sliding block on sliding rail is determined according to the angle between the moving direction of the contact point and the sliding rail Rate.The present embodiment determines the movement speed of sliding block according to the moving direction of contact point, and the movement of sliding block is not rely on contact Point is always positioned at this condition in the position range of sliding block, and the position range that contact point can be detached from sliding block arbitrarily moves, so as to The present embodiment is without contact point always situated in the position range of sliding block, it is possible to and dynamic adjusts the movement speed of sliding block, and then The content shown on dynamic adjustment display.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to institute in embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the determining method flow schematic diagram of the movement speed of sliding block of the embodiment of the present invention;
Fig. 2A is display screen coordinate diagram of the embodiment of the present invention;
Fig. 2 B are the first example schematic of the embodiment of the present invention;
Fig. 2 C are second of example schematic of the embodiment of the present invention;
Fig. 2 D are the third example schematic of the embodiment of the present invention;
Fig. 3 is the determining apparatus structure schematic diagram of the movement speed of sliding block of the embodiment of the present invention;
Fig. 4 is electronic devices structure schematic diagram of the embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Whole description, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of not making the creative labor Embodiment shall fall within the protection scope of the present invention.
Wherein, the embodiment of the present invention can be adapted for any electronic equipment including providing the software of sliding block to the user.
It is the determining method first embodiment schematic diagram of the movement speed of present invention slider referring to Fig. 1, this method includes:
Step 101:After detecting that sliding block is selected, the moving direction of contact point is obtained;The moving direction is contact point Initial position be directed toward the direction of contact point current location;
Step 102:Moving direction of the sliding block on sliding rail is determined according to the moving direction of the contact point;It is connect according to described Angle between the moving direction of contact and the sliding rail determines rate travel of the sliding block on sliding rail.
Moving direction and rate travel of the sliding block on sliding rail collectively form movement speed of the sliding block on sliding rail.
Later, electronic equipment can accordingly be moved according to movement speed of the sliding block determined in step 102 on sliding rail Sliding block simultaneously accordingly adjusts the content shown on display.
In the present embodiment, after detecting that sliding block is selected, the moving direction of contact point is obtained;According to the shifting of the contact point Dynamic direction determines moving direction of the sliding block on sliding rail;According to the angle between the moving direction of the contact point and the sliding rail Determine rate travel of the sliding block on sliding rail.The present embodiment determines the movement speed of sliding block according to the moving direction of contact point, sliding The movement of block is not rely on contact point and is always positioned at this condition in the position range of sliding block, and contact point can be detached from sliding block Position range arbitrarily moves, so as to the present embodiment without contact point always situated in the position range of sliding block, it is possible to which dynamic is adjusted The movement speed of whole sliding block, and then dynamic adjusts the content shown on display.
Hereinafter, the realization of each step of the embodiment of the present invention shown in Fig. 1 is described in more detail:
For step 101:
The moving direction for obtaining contact point can include:
Determine the initial position of contact point;
Determine the current location of contact point;
The moving direction of contact point is determined according to the initial position and current location.
Wherein, after the initial position of the contact point can refer to that sliding block is selected, when initial time of current period, connects The position of contact on a display screen;After the current location of contact point can refer to that sliding block is selected, current time contact point is aobvious Position in display screen;The time span present invention in period described in practical application is not intended to limit, can be autonomous in practical applications Setting;In addition, at the time of the initial time of a cycle can be selected for sliding block.
Alternatively, when the initial position of the contact point can refer to that sliding block is selected, the position of contact point on a display screen; After the current location of contact point can refer to that sliding block is selected, the position of current time contact point on a display screen;
Alternatively, after the initial position of the contact point can refer to that sliding block is selected, it is before current time and current The position of contact point on a display screen when at the time of time at intervals predetermined time period;The current location of contact point can refer to slide After block is selected, the position of current time contact point on a display screen;Wherein, this hair of the concrete numerical value of the predetermined time period It is bright to be not intended to limit, it can independently set in practical applications.
Wherein, the current time can be the execution moment of step 101 of the present invention.
In embodiments of the present invention, the display screen can also be able to be touch display screen with right and wrong touch display screen, here It is not intended to limit.The contact point refers to when sliding block is selected and after selected, the indicating mode that electronic equipment can detect Position on a display screen.The indicating mode that the electronic equipment can detect includes but not limited to mouse, finger contact is shown Display screen, Pointer contacts display screen etc..It is chosen during sliding block and after choosing sliding block for example, the contact point can be mouse, mouse The position of mark on a display screen;Alternatively, the contact point may be user when choosing sliding block by hand or stylus and After choosing sliding block, position that hand or stylus are contacted with display screen;Etc..
Each pixel on display screen can be recorded and be positioned by way of coordinate, the initial position of contact point, when Front position can also be recorded by the coordinate of the pixel of contact point corresponding position, further, the movement of the contact point Direction can also determine or identify according to the initial position and the coordinate of current location.How to establish in practical applications The coordinate system of the affiliated plane of pixel, the present invention are not intended to limit on display screen.
Such as shown in Fig. 2A, it is assumed that using the pixel in the display screen most lower left corner as coordinate origin O, display screen bottom One-row pixels point forms the axis of abscissas of coordinate system(That is x-axis), a row pixel of display screen leftmost forms the vertical of coordinate system Reference axis(That is y-axis);Sliding block and sliding rail 210 are located at the right of display screen, and sliding rail 210 is parallel to y-axis, if it is assumed that contact point Initial position for point A, the coordinate of point A is(1016,555), the current location of contact point is point B, and the coordinate of point B is(980, 666), then the moving direction that contact point obviously can be determined by coordinate is point A(1016,555)It is directed toward point B(980,666) Direction in addition the moving direction of the contact point can also directly be identified by the coordinate of the two positions.
For step 102:
Wherein, the moving direction according to the contact point determines that moving direction of the sliding block on sliding rail can include:
Determine durection component of the moving direction of the contact point on the sliding rail, using the direction of direction component as Moving direction of the sliding block on the sliding rail.
Still by taking Fig. 2A as an example, since sliding rail is parallel to axis of ordinates, and the moving direction of contact point is point A(1016,555) It is directed toward point B(980,666)Direction, therefore, the durection component of the moving direction of the contact point on the sliding rail is:Sliding rail The point C that upper ordinate is 555 is directed toward the direction of point D that ordinate is 666 on sliding rail.
Wherein, the angle according between the moving direction of the contact point and the sliding rail determines the mobile speed of sliding block Rate can include:
Determine the number of degrees of the first angle between the moving direction of the contact point and the sliding rail;The mobile side of contact point It is respectively the first angle and the second angle to two angles formed with sliding rail, the number of degrees of the first angle are not more than the second angle The number of degrees.
The rate travel of sliding block is determined according to the number of degrees of first angle, wherein, the rate travel of the sliding block and institute The number of degrees for stating the first angle are inversely proportional.
In practical applications, the number of degrees of the second angle can also be determined, the shifting of sliding block is determined according to the number of degrees of the second angle Dynamic rate, at this moment the second angle number of degrees are directly proportional to the rate travel of the sliding block.
Wherein, since the number of degrees interval of the first angle is [0,90], the first folder tangent of an angle or sinusoidal and the first folder The number of degrees at angle are directly proportional, and the cotangent or cosine and the number of degrees of the first angle of the first angle are inversely proportional, therefore, in practical applications, The specific number of degrees of the first angle can not be directly calculated, but by the first folder tangent of an angle, cotangent, sine or cosine come table Levy the number of degrees of the first angle.Wherein, the first folder tangent of an angle, cotangent, sine or cosine can pass through the initial bit of contact point It puts and is calculated with the coordinate of current location.Specifically,
By by the first folder tangent of an angle come for characterizing the number of degrees of the first angle, referring to shown in Fig. 2A, the shifting of contact point Dynamic direction is point A(1016,555)It is directed toward point B(980,666)Direction, and sliding rail is parallel with axis of ordinates, then sliding rail is with connecing The tangent of first angle ∠ E of the moving direction of contact=(1016-980)/(666-555);
Correspondingly, can the rate travel of sliding block be determined according to the first folder tangent of an angle, wherein, the movement of the sliding block Rate is inversely proportional with the described first folder tangent of an angle.
Wherein, the number of degrees of the first angle(Or first folder tangent of an angle or the first angle cotangent or first folder The sine at angle or the first folder cosine of an angle)Specific functional relation between the rate travel of sliding block can be in practical application In independently set, the embodiment of the present invention is not intended to limit.
The determining method of the movement speed of sliding block of the embodiment of the present invention is illustrated below:
If after the 1st, the initial position of the contact point referred to that sliding block is selected, the contact point during initial time of current period Position on a display screen, after the current location of contact point refers to that sliding block is selected, current time contact point is on a display screen Position, then, referring to shown in Fig. 2 B, after sliding block 220 is selected, by the mouse contact that either finger or stylus etc. are formed Point is without always situated in the position range of sliding block, but the position range that can be detached from sliding block arbitrarily slides.It is for example, it is assumed that sliding After block 220 is selected, as shown in the motion track 230 in Fig. 2 B, sliding block 220 is set the motion track of contact point at the time of being selected For 0 point of time, the period is set as T, and 0 point of time is the initial time of a cycle, then:When current time is t1, contact point The position where initial time 3T in current period is the initial position of contact point, is set as point N, contact point is where the t1 moment Position be contact point current location, be set as point M, the moving direction of contact point is point N direction point M, the mobile side of contact point Point P is directed toward for point N to the durection component on sliding rail, the moving direction of contact point and the first angle of sliding rail are ∠ MNP.
The 2nd, if the initial position of contact point refers to that sliding block is chosen by contact point, the position of contact point on a display screen; After the current location of contact point refers to that sliding block is selected, the position of current time contact point on a display screen;So, referring to Fig. 2 C It is shown, after sliding block 220 is selected, by the mouse contact point that either finger or stylus etc. are formed without always situated in sliding block Position range in, but the position range that can be detached from sliding block arbitrarily slides.For example, after sliding block 220 is chosen by contact point, connect For the motion track of contact as shown in the motion track 230 in Fig. 2 C, contact point is assumed to be 0 point of time at the time of choosing sliding block 220, The position of contact point is the initial position of contact point when sliding block is selected, is set as point X, contact point is in the position where current time t1 The current location of contact point is set to, is set as point Y, the moving direction of contact point is directed toward point Y for point X, and the moving direction of contact point exists Durection component on sliding rail is directed toward point Z for point X, and the moving direction of contact point and the first angle of sliding rail are ∠ YXZ.
If after the 3rd, the initial position of the contact point refers to that sliding block is selected, when before current time and current Carve the position of contact point on a display screen when at the time of being spaced predetermined time period;The current location of contact point refers to that sliding block is chosen In after, the position of current time contact point on a display screen;So, referring to shown in Fig. 2 D, when sliding block 220 is chosen by contact point Afterwards, by the mouse contact point that either finger or stylus etc. are formed without always situated in the position range of sliding block, but can It is arbitrarily slided with the position range for being detached from sliding block.For example, predetermined time period is Δ t, after sliding block 220 is chosen by contact point, connect For the motion track of contact as shown in the motion track 230 in Fig. 2 D, sliding block 220 is set as 0 point of time at the time of being chosen by contact point, Contact point the position where current time t1 be contact point current location, be set as point S, contact point is in t0=t1- time Δts The position at place is the initial position of contact point, is set as point Q, and the moving direction of contact point is directed toward point S, the shifting of contact point for point Q Dynamic durection component of the direction on sliding rail is directed toward point R for point Q, and the moving direction of contact point and the first angle of sliding rail are ∠ SQR.
After electronic equipment determines sliding block in the movement speed on sliding rail, it is possible to according to movement of the sliding block on sliding rail Speed moves sliding block and accordingly adjusts the content shown on display accordingly.In the embodiment of the present invention how according to sliding block in cunning Movement speed on rail responds mobile sliding block and accordingly adjusts the content present invention shown on display and is not intended to limit, no longer superfluous It states.
It is the determining apparatus structure schematic diagram of the movement speed of sliding block of the embodiment of the present invention referring to Fig. 3, which wraps It includes:
Acquiring unit 310 after detecting that sliding block is selected, obtains the moving direction of contact point;The moving direction It is that the initial position of contact point is directed toward the direction of contact point current location;
Determination unit 320, the moving direction of the contact point for being obtained according to the acquiring unit 310 determine sliding block Moving direction on sliding rail;Determine sliding block in sliding rail according to the angle between the moving direction of the contact point and the sliding rail On rate travel.
Optionally, the determination unit 320 specifically can be used for:Determine the moving direction of the contact point in the sliding rail On durection component, using moving direction of the direction of direction component as the sliding block on the sliding rail.
Optionally, the determination unit 320 specifically can be used for:
Determine the number of degrees of the first angle between the moving direction of the contact point and the sliding rail;First angle is In two angles that the moving direction of the contact point and the sliding rail are formed, the number of degrees be not more than the folder of another angle number of degrees Angle;
The rate travel of sliding block is determined according to the number of degrees of first angle, wherein, the rate travel of the sliding block and institute The number of degrees for stating the first angle are inversely proportional.
Optionally, the acquiring unit 310 specifically can be used for:
Determine the initial position of sliding block;
Determine the current location of contact point;
The moving direction of contact point is determined according to the initial position and current location.
In the present embodiment, the movement speed of sliding block is determined according to the moving direction of contact point, the movement of sliding block is not relying on This condition in the position range of sliding block is always positioned in contact point, the position range that contact point can be detached from sliding block arbitrarily moves It is dynamic, so as to the present embodiment without contact point always situated in the position range of sliding block, it is possible to which dynamic adjusts the mobile speed of sliding block Degree, and then dynamic adjusts the content shown on display.
It is electronic devices structure schematic diagram provided in an embodiment of the present invention referring to Fig. 4, electronic equipment 400 includes:Processor 410th, memory 420, transceiver 430 and bus 440;
Processor 410, memory 420, transceiver 430 are connected with each other by bus 440;Bus 440 can be that ISA is total Line, pci bus or eisa bus etc..The bus can be divided into address bus, data/address bus, controlling bus etc..For ease of table Show, only represented in Fig. 4 with a thick line, it is not intended that an only bus or a type of bus.
Memory 420, for storing program.Specifically, program can include program code, and said program code includes meter Calculation machine operational order.Memory 420 may include high-speed RAM memory, it is also possible to further include nonvolatile memory(non- volatile memory), a for example, at least magnetic disk storage.
Transceiver 430 is used to connect other equipment, and communicate with other equipment.
The processor 410 performs said program code, for detecting that sliding block is selected, obtains the mobile side of contact point To;The moving direction is the direction that contact point current location is directed toward from the initial position of sliding block;According to the shifting of the contact point Dynamic direction determines moving direction of the sliding block on sliding rail;According to the angle between the moving direction of the contact point and the sliding rail Determine rate travel of the sliding block on sliding rail.
Optionally, the processor 410 specifically can be used for:Determine the moving direction of the contact point on the sliding rail Durection component, using moving direction of the direction of direction component as the sliding block on the sliding rail.
Optionally, the processor 410 specifically can be used for:Determine the moving direction of the contact point and the sliding rail it Between the first angle the number of degrees;First angle is two angles that the moving direction of the contact point is formed with the sliding rail In, the number of degrees be not more than another angle number of degrees angle;The rate travel of sliding block is determined according to the number of degrees of first angle, In, the rate travel of the sliding block and the number of degrees of first angle are inversely proportional.
Optionally, the processor 410 specifically can be used for:Determine the initial position of sliding block;Determine the current of contact point Position;The moving direction of contact point is determined according to the initial position and current location.
Wherein, the electronic equipment can also include display, and the display can pass through bus 440 and processor 410 are connected with each other, and processor 410 is controlled according to movement speed of the determining sliding block on sliding rail in display and shown accordingly The sliding block shown moves on the slide rail and accordingly adjusts the content shown in display.
In the present embodiment, the movement speed of sliding block is determined according to the moving direction of contact point, the movement of sliding block is not relying on This condition in the position range of sliding block is always positioned in contact point, the position range that contact point can be detached from sliding block arbitrarily moves It is dynamic, so as to the present embodiment without contact point always situated in the position range of sliding block, it is possible to which dynamic adjusts the mobile speed of sliding block Degree, and then dynamic adjusts the content shown on display.
It is required that those skilled in the art can be understood that the technology in the embodiment of the present invention can add by software The mode of general hardware platform realize.Based on such understanding, the technical solution in the embodiment of the present invention substantially or It says and the part that the prior art contributes can be embodied in the form of software product, which can deposit Storage is in storage medium, such as ROM/RAM, magnetic disc, CD, is used including some instructions so that a computer equipment(It can be with It is personal computer, server or the network equipment etc.)Perform certain part institutes of each embodiment of the present invention or embodiment The method stated.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for system reality For applying example, since it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.
The embodiments of the present invention described above are not intended to limit the scope of the present invention.It is any in the present invention Spirit and principle within the modifications, equivalent substitutions and improvements made etc., should all be included in the protection scope of the present invention.

Claims (8)

  1. A kind of 1. determining method of the movement speed of sliding block, which is characterized in that including:
    After detecting that sliding block is selected, the moving direction of contact point is obtained;The moving direction is that the initial position of contact point refers to To the direction of contact point current location;
    Moving direction of the sliding block on sliding rail is determined according to the moving direction of the contact point;According to the shifting of the contact point Dynamic angle between direction and the sliding rail determines rate travel of the sliding block on the sliding rail;
    The angle according between the moving direction of the contact point and the sliding rail determines that the rate travel of sliding block includes:
    Determine the number of degrees of the first angle between the moving direction of the contact point and the sliding rail;First angle is described In two angles that the moving direction of contact point and the sliding rail are formed, the number of degrees be not more than the angle of another angle number of degrees;
    The rate travel of sliding block is determined according to the number of degrees of first angle, wherein, the rate travel of the sliding block and described the The number of degrees of one angle are inversely proportional.
  2. 2. according to the method described in claim 1, it is characterized in that, the moving direction according to the contact point determines sliding block Moving direction on sliding rail includes:
    Durection component of the moving direction of the contact point on the sliding rail is determined, using the direction of direction component as described in Moving direction of the sliding block on the sliding rail.
  3. 3. method according to claim 1 or 2, which is characterized in that the moving direction for obtaining contact point includes:
    Determine the initial position of contact point;
    Determine the current location of contact point;
    The moving direction of contact point is determined according to the initial position and current location.
  4. 4. method according to claim 1 or 2, which is characterized in that the initial position of the contact point refers to that sliding block is chosen In after, the position of contact point on a display screen during the initial time of current period;The current location of contact point refers to that sliding block is chosen In after, the position of current time contact point on a display screen;
    Alternatively, when the initial position of the contact point refers to that sliding block is selected, the position of contact point on a display screen;Contact point After current location refers to that sliding block is selected, the position of current time contact point on a display screen;
    Alternatively, after the initial position of the contact point refers to that sliding block is selected, before current time, with current time interval The position of contact point on a display screen when at the time of predetermined time period;After the current location of contact point refers to that sliding block is selected, The position of current time contact point on a display screen.
  5. 5. a kind of determining device of the movement speed of sliding block, which is characterized in that including:
    Acquiring unit after detecting that sliding block is selected, obtains the moving direction of contact point;The moving direction is contact point Initial position be directed toward the direction of contact point current location;
    Determination unit, the moving direction of the contact point for being obtained according to the acquiring unit determine sliding block on sliding rail Moving direction;Mobile speed of the sliding block on sliding rail is determined according to the angle between the moving direction of the contact point and the sliding rail Rate;
    The determination unit is specifically used for:
    Determine the number of degrees of the first angle between the moving direction of the contact point and the sliding rail;First angle is described In two angles that the moving direction of contact point and the sliding rail are formed, the number of degrees be not more than the angle of another angle number of degrees;
    The rate travel of sliding block is determined according to the number of degrees of first angle, wherein, the rate travel of the sliding block and described the The number of degrees of one angle are inversely proportional.
  6. 6. device according to claim 5, which is characterized in that the determination unit is specifically used for:Determine the contact point Durection component of the moving direction on the sliding rail, using the direction of direction component as the sliding block on the sliding rail Moving direction.
  7. 7. device according to claim 5 or 6, which is characterized in that the acquiring unit is specifically used for:
    Determine the initial position of contact point;
    Determine the current location of contact point;
    The moving direction of contact point is determined according to the initial position and current location.
  8. 8. device according to claim 5 or 6, which is characterized in that the initial position of the contact point refers to that sliding block is chosen In after, the position of contact point on a display screen during the initial time of current period;The current location of contact point refers to that sliding block is chosen In after, the position of current time contact point on a display screen;
    Alternatively, when the initial position of the contact point refers to that sliding block is selected, the position of contact point on a display screen;Contact point After current location refers to that sliding block is selected, the position of current time contact point on a display screen;
    Alternatively, after the initial position of the contact point refers to that sliding block is selected, before current time, with current time interval The position of contact point on a display screen when at the time of predetermined time period;After the current location of contact point refers to that sliding block is selected, The position of current time contact point on a display screen.
CN201310726874.0A 2013-12-25 2013-12-25 A kind of determining method and device of the movement speed of sliding block Active CN104750275B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310726874.0A CN104750275B (en) 2013-12-25 2013-12-25 A kind of determining method and device of the movement speed of sliding block

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310726874.0A CN104750275B (en) 2013-12-25 2013-12-25 A kind of determining method and device of the movement speed of sliding block

Publications (2)

Publication Number Publication Date
CN104750275A CN104750275A (en) 2015-07-01
CN104750275B true CN104750275B (en) 2018-07-03

Family

ID=53590093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310726874.0A Active CN104750275B (en) 2013-12-25 2013-12-25 A kind of determining method and device of the movement speed of sliding block

Country Status (1)

Country Link
CN (1) CN104750275B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110197725A (en) * 2019-05-23 2019-09-03 浙江大学 It is a kind of based on intelligent mobile terminal to refer to motion detection finger dexterity test method
CN112346635A (en) * 2020-10-22 2021-02-09 杭州安恒信息技术股份有限公司 Method and device for realizing sliding block effect based on SVG (scalable vector graphics), and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1091536A (en) * 1992-12-23 1994-08-31 塔利根蒂公司 The object oriented architecture system
CN1099159A (en) * 1993-06-29 1995-02-22 国际商业机器公司 Method and device for providing a two-dimensional position-sensitive scrolling icon
US6677965B1 (en) * 2000-07-13 2004-01-13 International Business Machines Corporation Rubber band graphical user interface control
CN101237482A (en) * 2007-02-03 2008-08-06 Lg电子株式会社 Mobile communication device and method of controlling the operation of the mobile communication device
CN101673184A (en) * 2009-07-16 2010-03-17 苏州瀚瑞微电子有限公司 Method for controlling scroll to scrolling and extending on touch pad

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1091536A (en) * 1992-12-23 1994-08-31 塔利根蒂公司 The object oriented architecture system
CN1099159A (en) * 1993-06-29 1995-02-22 国际商业机器公司 Method and device for providing a two-dimensional position-sensitive scrolling icon
US6677965B1 (en) * 2000-07-13 2004-01-13 International Business Machines Corporation Rubber band graphical user interface control
CN101237482A (en) * 2007-02-03 2008-08-06 Lg电子株式会社 Mobile communication device and method of controlling the operation of the mobile communication device
CN101673184A (en) * 2009-07-16 2010-03-17 苏州瀚瑞微电子有限公司 Method for controlling scroll to scrolling and extending on touch pad

Also Published As

Publication number Publication date
CN104750275A (en) 2015-07-01

Similar Documents

Publication Publication Date Title
EP3120232B1 (en) Determining user handedness and orientation using a touchscreen device
TWI584164B (en) Emulating pressure sensitivity on multi-touch devices
CN103995660B (en) The method and device of touch screen browser switch window
CN105190509B (en) Content rotation is provided during scroll actions
EP3195102B1 (en) Simulating real-time responsiveness for touch displays
CN104123095B (en) A kind of suspension touch control method and device based on vector calculus
CN103645844A (en) Page displaying method and device
CN103097996A (en) Motion control touch screen method and apparatus
CN107608596A (en) A kind of method, terminal and the storage medium of e-book page turning
KR101949493B1 (en) Method and system for controlling play of multimeida content
CN102419675B (en) Coordinate normalizing method of electromagnetic induction device and electromagnetic induction device
US9411796B2 (en) Smoothing paths in a graphical interface generated by drawing inputs
CN107678652A (en) To the method for controlling operation thereof and device of target object
CN103235701A (en) A mobile terminal-based picture browsing method and device
CN104750275B (en) A kind of determining method and device of the movement speed of sliding block
CN101807130A (en) Touch position correction method
CN105630595B (en) A kind of information processing method and electronic equipment
CN103309581A (en) A method and device for positioning a progress bar
CN107957847A (en) Touch track display method, device, equipment and storage medium
CN106775093A (en) A kind of contact action control method and device
CN103399662A (en) Method, system and mobile terminal for reporting coordinate incident of touch screen
CN107092410A (en) Interface alternation method, equipment and the intelligent terminal of a kind of touch-screen
US20140071038A1 (en) Method for generating movement position coordinate and human-machine interface input system using the same
CN103645855A (en) Touch reading method and device
CN104777988B (en) A kind of data processing method and electronic equipment

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