[go: up one dir, main page]

CN104423826B - A kind of method and device for realizing scaling using middle button of mouse and idler wheel - Google Patents

A kind of method and device for realizing scaling using middle button of mouse and idler wheel Download PDF

Info

Publication number
CN104423826B
CN104423826B CN201310395477.XA CN201310395477A CN104423826B CN 104423826 B CN104423826 B CN 104423826B CN 201310395477 A CN201310395477 A CN 201310395477A CN 104423826 B CN104423826 B CN 104423826B
Authority
CN
China
Prior art keywords
slip event
mouse
sliding distance
event
slip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310395477.XA
Other languages
Chinese (zh)
Other versions
CN104423826A (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.)
Shanghai Juyi Technology Co., Ltd
Original Assignee
Shanghai Actions Semiconductor 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 Shanghai Actions Semiconductor Co Ltd filed Critical Shanghai Actions Semiconductor Co Ltd
Priority to CN201310395477.XA priority Critical patent/CN104423826B/en
Publication of CN104423826A publication Critical patent/CN104423826A/en
Application granted granted Critical
Publication of CN104423826B publication Critical patent/CN104423826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Input By Displaying (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

This application discloses a kind of methods for realizing scaling using middle button of mouse and idler wheel, including:It detects that middle button of mouse is pressed, judges whether mouse roller rolls, if so, two coordinate P1 and P2 of record on the straight line L by mouse pointer changing coordinates P0, the P1 and P2 are located at the both sides of P0;Judge the rotating direction of mouse roller, if being rolled to first direction, detect that middle button of mouse lifts, generates two slip events S1 and S2 by starting point of coordinate P1 and P2 respectively, and processing is amplified to browsing content according to slip event S1 and S2 triggering, and terminate this flow;For wherein slip event S1 using P1 as starting point, glide direction deviates from P0 along straight line L, and for slip event S2 using P2 as starting point, glide direction deviates from P0 along straight line L;If being rolled to second direction, triggers by a similar method and diminution processing is carried out to browsing content.By applying technical scheme, can zoom function only be conveniently realized by mouse, enhance user experience.

Description

A kind of method and device for realizing scaling using middle button of mouse and idler wheel
Technical field
This application involves field of computer technology more particularly to a kind of methods for realizing scaling using middle button of mouse and idler wheel And device.
Background technology
Current scale function is common in the touch screen with multi-touch function such as touch screen smart mobile phone, tablet computer In digital equipment.When user is by two(Or more)When finger touches screen and slides in opposition, then it is equivalent to digital equipment Instruction is reduced in input one, conversely, when user is by two(Or more)Finger touches screen and when sliding round about, then phase When in digital equipment input an amplification instruction.Current scale function can be used for easily zooming in or out webpage, figure Piece etc., facilitates user to browse.
Below by taking two touches as an example, illustrate the basic principle of current scale.2 points of user's touch are recorded first Position M1 and M2 detect whether that slip event occurs, if so, determine using M1 as the terminal M3 of the first slip event of starting point, And using M2 as the terminal M4 of the second slip event of starting point, if the distance between M3 and M4 K1 are less than the distance between M1 and M2 K2, then carry out diminution processing to browsing content, and reduced scale is proportional to the difference between the distance K1 and K2;If distance K1 More than distance K2, then processing is amplified to browsing content, the ratio of amplification is proportional to the difference between the distance K1 and K2.
As can be seen that the realization of existing this current scale function depends on touch screen.Do not have for other The digital equipment of touch screen, then cannot achieve current scale.It is touched for example, although current many set-top box devices have identification multiple spot Touch the ability of event, but the video screen that is connected of set-top box does not have the function of touch screen usually, mouse can only be used to machine Top box is controlled, and realizes that fairly simple operation as clicked, pulls, sliding etc.;In browsing map, webpage, when picture, can not Realize that the scaling of content, user experience are bad.
Invention content
This application provides a kind of method and devices for realizing scaling using middle button of mouse and idler wheel, can only pass through mouse Zoom function is conveniently realized, user experience is enhanced.
A kind of method for realizing scaling using middle button of mouse and idler wheel provided by the embodiments of the present application, including:
A, it detects that middle button of mouse is pressed, judges whether mouse roller rolls, if so, executing step B, otherwise exit this stream Journey;
B, two coordinates P1 and P2 of record on the straight line L by mouse pointer changing coordinates P0, the P1 and P2 distinguish Positioned at the both sides of P0;
C, judge the rotating direction of mouse roller, if being rolled to first direction, execute step D, if second direction rolls, hold Row step E;The first direction and the opposite each other direction of second direction;
D, it detects that middle button of mouse lifts, generates two slip events S1 and S2 by starting point of coordinate P1 and P2 respectively, and Processing is amplified to browsing content according to slip event S1 and S2 triggering, and terminates this flow;Wherein slip event S1 is with P1 For starting point, glide direction deviates from P0 along straight line L, and for slip event S2 using P2 as starting point, glide direction deviates from P0 along straight line L;
E, it detects that middle button of mouse lifts, generates two slip events S3 and S4 by starting point of coordinate P1 and P2 respectively, and Diminution processing is carried out to browsing content according to slip event S3 and S4 triggering, and terminates this flow;Wherein slip event S3 is with P1 For starting point, glide direction is along straight line L towards P0, and slip event S4 is using P2 as starting point, and glide direction is along straight line L towards P0.
Preferably, in the step D, the lattice number N1 that mouse roller is rolled to first direction, slip event S1 and S2 are determined Sliding distance be proportional to N1;The magnification ratio for being amplified processing to browsing content according to slip event S1 and S2 triggering It is proportional to the sliding distance of slip event S1 and S2.
Preferably, in the step E, the lattice number N2 that mouse roller is rolled to second direction, slip event S3 and S4 are determined Sliding distance be proportional to N2;The diminution ratio for browsing content reduce processing according to slip event S3 and S4 triggering It is proportional to the sliding distance of slip event S3 and S4.
Preferably,
The straight line L and the angle in screen level direction are 0 degree, 45 degree, 90 degree.
Preferably, component is m × N1 to the sliding distance of the slip event S1 in the horizontal direction, in vertical direction component For-n × N1, component is-m × N1 to the sliding distance of slip event S2 in the horizontal direction, is n × N1 in vertical direction component, Middle m is the absolute value that mouse roller rolls the sliding distance of slip event generated when 1 lattice component in the horizontal direction, and n is mouse Idler wheel rolls absolute value of the sliding distance in vertical direction component of the slip event generated when 1 lattice.
Preferably, component is-m × N2 to the sliding distance of the slip event S3 in the horizontal direction, in vertical direction component For n × N2, component is m × N2 to the sliding distance of slip event S4 in the horizontal direction, is-n × N2 in vertical direction component, wherein M is the sliding distance absolute value in the horizontal direction that mouse roller rolls the slip event generated when 1 lattice, and n rolls for mouse roller Absolute value of the sliding distance of the slip event generated when dynamic 1 lattice in vertical direction component.
The embodiment of the present application also provides a kind of device for realizing scaling using middle button of mouse and idler wheel, including:
First judging unit judges whether mouse roller rolls after detecting that middle button of mouse is pressed, if so, enabled Scaling processing module;
Scaling processing module, for zooming in or out processing to browsing content, including:
Initial coordinate recording unit, for recording two coordinate P1 on the straight line L by mouse pointer changing coordinates P0 And P2, the P1 and P2 are located at the both sides of P0;
Second judgment unit, the rotating direction for judging mouse roller enable enhanced processing list if first direction Member enables to reduce processing unit if second direction;The first direction and the opposite each other direction of second direction;
Magnification processing, for after detecting that middle button of mouse lifts, generating two by starting point of coordinate P1 and P2 respectively A slip event S1 and S2, and processing is amplified to browsing content according to slip event S1 and S2 triggering;Wherein slip event For S1 using P1 as starting point, glide direction deviates from P0 along straight line L, and slip event S2 using P2 as starting point, along straight line L carry on the back by glide direction From P0;
Processing unit is reduced, for after detecting that middle button of mouse lifts, generating two by starting point of coordinate P1 and P2 respectively A slip event S3 and S4, and diminution processing is carried out to browsing content according to slip event S3 and S4 triggering;Wherein slip event S3 is using P1 as starting point, and glide direction is along straight line L towards P0, and slip event S4 is using P2 as starting point, and glide direction is along straight line L courts To P0.
Preferably, the magnification processing determines lattice the number N1, slip event S1 that mouse roller is rolled to first direction It is proportional to N1 with the sliding distance of S2;The amplification for being amplified processing to browsing content according to slip event S1 and S2 triggering Ratio is proportional to the sliding distance of slip event S1 and S2.
Preferably, the diminution processing unit determines lattice number N2, slip event S3 that mouse roller is rolled to second direction It is proportional to N2 with the sliding distance of S4;The diminution for browsing content reduce processing according to slip event S3 and S4 triggering Ratio is proportional to the sliding distance of slip event S3 and S4.
Preferably,
The initial coordinate recording unit includes:
Straight line determination subelement, for determining that with the angle in screen level direction be 0 degree, 45 degree, 90 degree of straight line L..
Preferably, the magnification processing includes:
First sliding distance handles subelement, for determining that component is m to the sliding distance of slip event S1 in the horizontal direction × N1 is-n × N1 in vertical direction component, and component is-m × N1 to the sliding distance of slip event S2 in the horizontal direction, vertical Durection component is n × N1, and wherein m is that mouse roller rolls the sliding distance of the slip event generated when 1 lattice horizontal or vertical The absolute value in direction, n are that mouse roller rolls the sliding distance of the slip event generated when 1 lattice in the absolute of vertical direction component Value.
Preferably, the diminution processing unit includes:
Second sliding distance handles subelement, for determining that component is-m to the sliding distance of slip event S3 in the horizontal direction × N2 is n × N2 in vertical direction component, and component is m × N2 to the sliding distance of slip event S4 in the horizontal direction, in vertical side It is-n × N2 to component, wherein m is that mouse roller rolls the sliding distance of the slip event generated when 1 lattice in x-axis or y-axis direction Absolute value, n be mouse roller roll the sliding distance of slip event that is generated when 1 lattice vertical direction component absolute value.
As can be seen from the above technical solutions, two slidings can be simulated by using the combination of middle button of mouse and idler wheel Event can simulate the effect of two touches, to realize current scale, pass through mouse side in the equipment for not having touch screen Just it realizes zoom function, enhances user experience.
Description of the drawings
Fig. 1 is that this application provides a kind of method flow schematic diagrams for realizing scaling using middle button of mouse and idler wheel;
Fig. 2 is that middle button of mouse is pressed in the embodiment of the present application, and when idler wheel starts to roll generates and presses the signal of event Figure;
Fig. 3 is the schematic diagram for the coordinate that mouse roller records during rolling backward in the embodiment of the present application;
Fig. 4 is the device block diagram provided by the embodiments of the present application that scaling is realized using middle button of mouse and idler wheel.
Specific implementation mode
This application provides a kind of methods for realizing scaling using middle button of mouse and idler wheel, as shown in Figure 1, including following step Suddenly:
Step 101:It detects that middle button of mouse is pressed, judges whether mouse roller rolls, if so, executing step 102, otherwise Exit this flow;
Step 102:Two coordinate P1 and P2 of record on the straight line L by mouse pointer changing coordinates P0, the P1 and P2 is located at the both sides of P0;
Step 103:Judge the rotating direction of mouse roller, if being rolled to first direction, step 104 is executed, if second party To rolling, step 105 is executed;The first direction and the opposite each other direction of second direction, for example, first direction is forward, Second direction is backward;
Step 104:Detect that middle button of mouse lifts, respectively using coordinate P1 and P2 as starting point generate two slip event S1 and S2, and processing is amplified to browsing content according to slip event S1 and S2(Simulate two touch zoom operations), and terminate this Flow;For wherein slip event S1 using P1 as starting point, glide direction deviates from P0 along straight line L, and slip event S2 is sliding using P2 as starting point Dynamic direction deviates from P0 along straight line L;
Step 105:Detect that middle button of mouse lifts, respectively using coordinate P1 and P2 as starting point generate two slip event S3 and S4, and diminution processing is carried out to browsing content according to slip event S3 and S4(Simulate two touch zoom operations), and terminate this Flow;Wherein slip event S3 is using P1 as starting point, and for glide direction along straight line L towards P0, slip event S4 is sliding using P2 as starting point Dynamic direction is along straight line L towards P0.
As can be seen that this method can simulate two slip events by using the combination of middle button of mouse and idler wheel, it can To simulate the effect of two touches, to realize current scale.
In the step 104, the lattice number N1 that mouse roller is rolled to first direction, the sliding of slip event S1 and S2 are determined Distance is proportional to N1;The magnification ratio for being amplified processing to browsing content according to slip event S1 and S2 triggering is proportional to The sliding distance of slip event S1 and S2.
It is similar, in the step 105, determine lattice number N2, slip event S3 that mouse roller is rolled to second direction and The sliding distance of S4 is proportional to N2;The drawdown ratio for browsing content reduce processing according to slip event S3 and S4 triggering Example is proportional to the sliding distance of slip event S3 and S4.The sliding distance of the slip event S1 in the horizontal direction component be m × N1 is-n × N1 in vertical direction component, and component is-m × N1 to the sliding distance of slip event S2 in the horizontal direction, in vertical side It is n × N1 to component;Component is-m × N2 to the sliding distance of the slip event S3 in the horizontal direction, is in vertical direction component Component is m × N2 to the sliding distance of n × N2, slip event S4 in the horizontal direction, is-n × N2, wherein m in vertical direction component The sliding distance absolute value in the horizontal direction of the slip event generated when rolling 1 lattice for mouse roller, n roll for mouse roller Absolute value of the sliding distance of the slip event generated when 1 lattice in vertical direction component.
Straight line L by mouse changing coordinates P0 can be any direction, such as can be the vertical direction along screen, Horizontal direction, the i.e. horizontal sextant angle of straight line L and screen are 90 degree, 0 degree.Determine coordinate P1, P2 mode can also there are many, only Want P1 and P2 respectively in the both sides P0, relatively conventional mode is that P1 and P2 distances P0 is fixed value.
Preferably, straight line L and the angle of horizontal direction are 45 degree, the sliding distance of the slip event S1 is in x-axis direction (Horizontal direction)It is-m*N1 in y-axis direction for m*N1, the sliding distance of slip event S2 is-m*N1 in x-axis direction, in y-axis Direction(Vertical direction)It is that mouse roller rolls the sliding distance of the slip event generated when 1 lattice in x-axis or y for m*N1, wherein m The absolute value of axis direction.
The sliding distance of the slip event S3 is-m*N2 in x-axis direction, is m*N2 in y-axis direction, slip event S4's Sliding distance is m*N2 in x-axis direction, is-m*N2 in y-axis direction, wherein m is that mouse roller rolls the sliding thing generated when 1 lattice Absolute value of the sliding distance of part in x-axis or y-axis direction.
To keep the technical principle, feature and technique effect of technical scheme clearer, below in conjunction with specific reality Example is applied technical scheme is described in detail.
Application embodiment provides a kind of method for realizing idler wheel scaling using middle button of mouse and idler wheel.As illustrated in fig. 2, it is assumed that Mouse coordinates are P0 at this time(640,360)(Unit is pixel).When middle button of mouse is pressed, and idler wheel starts to roll, meeting exists P1 (740,260) and P2(540,460)It generates two and presses event, the two press the coordinate line L and horizontal direction of event Angle be 45 degree.As shown in figure 3, when mouse roller rolls a lattice backward, two coordinates P3 and P4 can be recorded.Wherein P3 and P1 In the directions x, distance is -5 pixels, and distance is 5 pixels on the directions y;P4 and P2 in the x direction at a distance from be 5 pixels, the side y Upward distance is -5 pixels.Hereafter mouse roller often slides a lattice, all can be based on the point that the last time generates, according to upper One step process records two coordinates, such as P5, P6.After middle button of mouse unclamps, generated with the coordinate of two coordinates finally recorded Two are lifted event, and one positioned at the same sides P0 presses event and one is lifted event and constitutes a complete sliding thing Part, as soon as therefore the both sides P0 respectively constitute a slip event, so far one diminution gesture complete.
The gesture of amplification is similar, only P3, and P4 is generated in P1, the outside of P2.It can also will amplify and reduce gesture It is used in mixed way, as long as remaining that middle button of mouse is in down state.
The embodiment of the present application also provides a kind of devices for realizing scaling using middle button of mouse and idler wheel, as shown in figure 4, packet It includes:
First judging unit 401 judges whether mouse roller rolls after detecting that middle button of mouse is pressed, if so, making It can scaling processing module 402;
Scaling processing module 402, for zooming in or out processing to browsing content, including:
Initial coordinate recording unit 403, for recording two coordinates on the straight line L by mouse pointer changing coordinates P0 P1 and P2, the P1 and P2 are located at the both sides of P0;
Second judgment unit 404, the rotating direction for judging mouse roller enable enhanced processing if first direction Unit 405 enables to reduce processing unit 406 if second direction;The first direction and the opposite each other side of second direction To;
Magnification processing 405, for after detecting that middle button of mouse lifts, being generated respectively by starting point of coordinate P1 and P2 Two slip events S1 and S2, and processing is amplified to browsing content according to slip event S1 and S2 triggering;Wherein slide thing Part S1 is using P1 as starting point, and glide direction deviates from P0 along straight line L, and slip event S2 is using P2 as starting point, and glide direction is along straight line L Away from P0;
Processing unit 406 is reduced, for after detecting that middle button of mouse lifts, being generated respectively by starting point of coordinate P1 and P2 Two slip events S3 and S4, and diminution processing is carried out to browsing content according to slip event S3 and S4 triggering;Wherein slide thing Part S3 is using P1 as starting point, and glide direction is along straight line L towards P0, and slip event S4 is using P2 as starting point, and glide direction is along straight line L Towards P0.
Preferably, the magnification processing 405 determines the lattice number N1 that mouse roller is rolled to first direction, slip event The sliding distance of S1 and S2 is proportional to N1;It is described processing is amplified to browsing content according to slip event S1 and S2 triggering to put Large scale is proportional to the sliding distance of slip event S1 and S2.
Preferably, the processing unit 406 that reduces determines the lattice number N2 that mouse roller is rolled to second direction, slip event The sliding distance of S3 and S4 is proportional to N2;The contracting for browsing content reduce processing according to slip event S3 and S4 triggering Small scale is proportional to the sliding distance of slip event S3 and S4.
Preferably, the first direction that the second judgment unit is judged is forward, second direction is backward.
Preferably, the initial coordinate recording unit includes:
Straight line determination subelement, for determining that with the angle in screen level direction be 0 degree, 45 degree, 90 degree of straight line L.
Preferably, the magnification processing includes:
First sliding distance handles subelement, for determining that component is m to the sliding distance of slip event S1 in the horizontal direction × N1 is-n × N1 in vertical direction component, and component is-m × N1 to the sliding distance of slip event S2 in the horizontal direction, vertical Durection component is n × N1, and wherein m is that mouse roller rolls the sliding distance of the slip event generated when 1 lattice horizontal or vertical The absolute value in direction, n are that mouse roller rolls the sliding distance of the slip event generated when 1 lattice in the absolute of vertical direction component Value.
Preferably, the diminution processing unit includes:
Second sliding distance handles subelement, for determining that component is-m to the sliding distance of slip event S3 in the horizontal direction × N2 is n × N2 in vertical direction component, and component is m × N2 to the sliding distance of slip event S4 in the horizontal direction, in vertical side It is-n × N2 to component, wherein m is that mouse roller rolls the sliding distance of the slip event generated when 1 lattice in x-axis or y-axis direction Absolute value, n be mouse roller roll the sliding distance of slip event that is generated when 1 lattice vertical direction component absolute value.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by Software adds the mode of required hardware platform to realize, naturally it is also possible to all implemented by hardware, but in many cases before Person is more preferably embodiment.Based on this understanding, technical scheme of the present invention contributes to background technology whole or Person part can be expressed in the form of software products, which can be stored in a storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions are used so that a computer equipment(Can be personal computer, service Device or the network equipment etc.)Execute the method described in certain parts of each embodiment of the present invention or embodiment.
The foregoing is merely the preferred embodiments of the application, not to limit the protection domain of the application, it is all Within the spirit and principle of technical scheme, any modification, equivalent substitution, improvement and etc. done should be included in this Shen Within the scope of please protecting.

Claims (12)

1. a kind of method for realizing scaling using middle button of mouse and idler wheel, which is characterized in that including:
A, it detects that middle button of mouse is pressed, judges whether mouse roller rolls, if so, executing step B, otherwise exit this flow;
B, two coordinates P1 and P2 are recorded on the straight line L by mouse pointer changing coordinates P0, the P1 and P2 are located at The both sides of P0;
C, judge the rotating direction of mouse roller, if being rolled to first direction, execute step D, if being rolled to second direction, execute Step E;The first direction and the opposite each other direction of second direction;
D, detect that middle button of mouse lifts, respectively using coordinate P1 and P2 as starting point generation two slip events S1 and S2, and according to Slip event S1 and S2 triggering is amplified processing to browsing content, and terminates this flow;Wherein slip event S1 is with P1 Point, glide direction deviate from P0 along straight line L, and for slip event S2 using P2 as starting point, glide direction deviates from P0 along straight line L;
E, detect that middle button of mouse lifts, respectively using coordinate P1 and P2 as starting point generation two slip events S3 and S4, and according to Slip event S3 and S4 triggering carries out diminution processing to browsing content, and terminates this flow;Wherein slip event S3 is with P1 Point, glide direction is along straight line L towards P0, and slip event S4 is using P2 as starting point, and glide direction is along straight line L towards P0;
Wherein, mouse roller often rolls a lattice, and based on the point that the last time generates, two new seats are re-recorded according to step B Mark generates two with two finally recorded new coordinates and lifts event, and one positioned at the same sides P0 presses event and one It lifts event and constitutes a complete slip event.
2. according to the method described in claim 1, it is characterized in that, in the step D, determine that mouse roller is rolled to first direction Dynamic lattice number N1, the sliding distance of slip event S1 and S2 are proportional to N1;It is described to be triggered to browsing according to slip event S1 and S2 The magnification ratio that content is amplified processing is proportional to the sliding distance of slip event S1 and S2.
3. according to the method described in claim 1, it is characterized in that, in the step E, determine that mouse roller is rolled to second direction Dynamic lattice number N2, the sliding distance of slip event S3 and S4 are proportional to N2;It is described to be triggered to browsing according to slip event S3 and S4 The diminution ratio that content reduce processing is proportional to the sliding distance of slip event S3 and S4.
4. method according to any one of claims 1 to 3, which is characterized in that the folder of the straight line L and screen level direction Angle is 0 degree, 45 degree, 90 degree.
5. method according to any one of claims 1 to 3, which is characterized in that the sliding distance of the slip event S1 exists Horizontal direction component is m × N1, is-n × N1 in vertical direction component, the sliding distance of slip event S2 component in the horizontal direction Be n × N1 in vertical direction component for-m × N1, wherein m be mouse roller roll the sliding of the slip event generated when 1 lattice away from Absolute value from component in the horizontal direction, n are that mouse roller rolls the sliding distance of the slip event generated when 1 lattice in vertical side To the absolute value of component.
6. method according to any one of claims 1 to 3, which is characterized in that the sliding distance of the slip event S3 exists Horizontal direction component is-m × N2, is n × N2 in vertical direction component, the sliding distance of slip event S4 component in the horizontal direction Be-n × N2 in vertical direction component for m × N2, wherein m be mouse roller roll the sliding of the slip event generated when 1 lattice away from From absolute value in the horizontal direction, n is that mouse roller rolls the sliding distance of the slip event generated when 1 lattice in vertical direction point The absolute value of amount.
7. a kind of device for realizing scaling using middle button of mouse and idler wheel, which is characterized in that including:
First judging unit judges whether mouse roller rolls after detecting that middle button of mouse is pressed, if so, enabled scaling Processing module;
Scaling processing module, for zooming in or out processing to browsing content, including:
Initial coordinate recording unit, for recording two coordinates P1 and P2 on the straight line L by mouse pointer changing coordinates P0, The P1 and P2 is located at the both sides of P0;
Second judgment unit, the rotating direction for judging mouse roller enable magnification processing if first direction, if For second direction, enable to reduce processing unit;The first direction and the opposite each other direction of second direction;
Magnification processing, for after detecting that middle button of mouse lifts, generating two cunnings by starting point of coordinate P1 and P2 respectively Dynamic event S1 and S2, and processing is amplified to browsing content according to slip event S1 and S2 triggering;Wherein slip event S1 with P1 is starting point, and glide direction deviates from P0 along straight line L, and using P2 as starting point, glide direction deviates from slip event S2 along straight line L P0;
Processing unit is reduced, for after detecting that middle button of mouse lifts, generating two cunnings by starting point of coordinate P1 and P2 respectively Dynamic event S3 and S4, and diminution processing is carried out to browsing content according to slip event S3 and S4 triggering;Wherein slip event S3 with P1 is starting point, and glide direction is along straight line L towards P0, and slip event S4 is using P2 as starting point, and glide direction is along straight line L directions P0;
Wherein, mouse roller often rolls a lattice, and based on the point that the last time generates, two new seats are re-recorded according to step B Mark generates two with two finally recorded new coordinates and lifts event, and one positioned at the same sides P0 presses event and one It lifts event and constitutes a complete slip event.
8. device according to claim 7, which is characterized in that the magnification processing determines mouse roller to first party To the lattice number N1 of rolling, the sliding distance of slip event S1 and S2 are proportional to N1;It is described according to slip event S1 and S2 triggering pair The magnification ratio that browsing content is amplified processing is proportional to the sliding distance of slip event S1 and S2.
9. device according to claim 7, which is characterized in that the diminution processing unit determines mouse roller to second party To the lattice number N2 of rolling, the sliding distance of slip event S3 and S4 are proportional to N2;It is described according to slip event S3 and S4 triggering pair The diminution ratio that browsing content reduce processing is proportional to the sliding distance of slip event S3 and S4.
10. device according to any one of claims 7 to 9, which is characterized in that the initial coordinate recording unit includes:
Straight line determination subelement, for determining that with the angle in screen level direction be 0 degree, 45 degree, 90 degree of straight line L.
11. device according to any one of claims 7 to 9, which is characterized in that the magnification processing includes:
First sliding distance handles subelement, for determining that component is m × N1 to the sliding distance of slip event S1 in the horizontal direction, It is-n × N1 in vertical direction component, component is-m × N1 to the sliding distance of slip event S2 in the horizontal direction, in vertical direction Component is n × N1, and wherein m is that mouse roller rolls the sliding distance of the slip event generated when 1 lattice in horizontal or vertical direction Absolute value, n be mouse roller roll the sliding distance of slip event that is generated when 1 lattice vertical direction component absolute value.
12. device according to any one of claims 7 to 9, which is characterized in that the diminution processing unit includes:
Second sliding distance handles subelement, for determine the sliding distance of slip event S3 in the horizontal direction component be-m × N2 is n × N2 in vertical direction component, and component is m × N2 to the sliding distance of slip event S4 in the horizontal direction, in vertical direction Component is-n × N2, and wherein m is that mouse roller rolls the sliding distance of the slip event generated when 1 lattice in x-axis or y-axis direction Absolute value, n are absolute value of the sliding distance in vertical direction component that mouse roller rolls the slip event generated when 1 lattice.
CN201310395477.XA 2013-09-03 2013-09-03 A kind of method and device for realizing scaling using middle button of mouse and idler wheel Active CN104423826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310395477.XA CN104423826B (en) 2013-09-03 2013-09-03 A kind of method and device for realizing scaling using middle button of mouse and idler wheel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310395477.XA CN104423826B (en) 2013-09-03 2013-09-03 A kind of method and device for realizing scaling using middle button of mouse and idler wheel

Publications (2)

Publication Number Publication Date
CN104423826A CN104423826A (en) 2015-03-18
CN104423826B true CN104423826B (en) 2018-07-31

Family

ID=52972977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310395477.XA Active CN104423826B (en) 2013-09-03 2013-09-03 A kind of method and device for realizing scaling using middle button of mouse and idler wheel

Country Status (1)

Country Link
CN (1) CN104423826B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607809B (en) * 2015-12-24 2019-04-26 联想(北京)有限公司 Information processing method and electronic equipment
CN108932089B (en) * 2017-05-24 2021-09-24 珠海金山办公软件有限公司 Target object adjusting method and device, electronic equipment and storage medium
CN109101174A (en) * 2018-06-26 2018-12-28 深圳市买买提信息科技有限公司 A kind of scaling method, device, terminal and medium
CN111522479B (en) * 2020-04-24 2022-03-08 苏州云注软件技术有限公司 Method and device for operating PDF file, storage medium and electronic device
CN113342252B (en) * 2021-05-31 2022-12-13 东莞市铭冠电子科技有限公司 Method for triggering mouse rapid roller and linear mode by keyboard
CN116719468B (en) * 2022-09-02 2025-01-24 荣耀终端有限公司 Interaction event processing method and device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1149876C (en) * 2000-09-26 2004-05-12 仁宝电脑工业股份有限公司 Palm type device with zooming display function
US6972749B2 (en) * 2001-08-29 2005-12-06 Microsoft Corporation Touch-sensitive device for scrolling a document on a display
US6995752B2 (en) * 2001-11-08 2006-02-07 Koninklijke Philips Electronics N.V. Multi-point touch pad
US7369121B2 (en) * 2004-07-21 2008-05-06 Microsoft Corporation Input device with a zoom apparatus
US20090213083A1 (en) * 2008-02-26 2009-08-27 Apple Inc. Simulation of multi-point gestures with a single pointing device
US8754910B2 (en) * 2008-10-01 2014-06-17 Logitech Europe S.A. Mouse having pan, zoom, and scroll controls
CN102479041A (en) * 2010-11-25 2012-05-30 英业达股份有限公司 How to zoom the screen with one hand on the small touch screen
CN102289303A (en) * 2011-07-15 2011-12-21 魏新成 Method for carrying out normal editing function operations through middle key of mouse
CN102650911B (en) * 2012-05-25 2014-12-10 深圳市众进思创科技开发有限公司 Gesture method used for mouse

Also Published As

Publication number Publication date
CN104423826A (en) 2015-03-18

Similar Documents

Publication Publication Date Title
CN104423826B (en) A kind of method and device for realizing scaling using middle button of mouse and idler wheel
US8253704B2 (en) Method and apparatus for controlling information scrolling on touch-screen
CN110531875B (en) Writing stroke generation method, terminal equipment and storage medium
CN104123024B (en) A kind of terminal device and apparatus control method
US10228835B2 (en) Method for displaying information, and terminal equipment
CN103838456A (en) Method and system for controlling display positions of desktop icons
CN105260103B (en) A kind of picture Zoom method and electronic equipment
CN103383603B (en) The method and electronic equipment of information processing
EP3070589A1 (en) Method and device for amplifying selected region of previewing interface
CN104035678B (en) Scrolling method and the electronic equipment using the scrolling method
JP2015515043A (en) Content moving method and apparatus in terminal
CN103262015A (en) Responding to the receipt of zoom commands
TW201227460A (en) Method and apparatus for providing different user interface effects for different implementation characteristics of a touch event
CN104571918A (en) Terminal single-hand operation interface triggering method and device
CN102566908A (en) Electronic equipment and page zooming method for same
CN103262007A (en) Method and apparatus for controlling touch screen using timeline bar, recording medium with program for the same recorded therein, and user terminal having the same
CN101639753A (en) Electronic equipment with touch screen and aspect ratio adjusting method thereof
KR20140049254A (en) Device and method for displaying data in terminal
US20130132889A1 (en) Information processing apparatus and information processing method to achieve efficient screen scrolling
CN105843516A (en) Method and device for displaying information during scrolling of list page
JP2015035092A (en) Display controller and method of controlling the same
CN105094647A (en) Interface control method and mobile terminal
CN105159581A (en) A picture browsing method and mobile terminal
JP2017515241A (en) Element deletion method and apparatus based on touch panel
CN104156145A (en) Text content selection method based on handwriting pen and portable 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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20150318

Assignee: ACTIONS (ZHUHAI) TECHNOLOGY CO., LTD.

Assignor: Shanghai Actions Semiconductor Co., Ltd.

Contract record no.: 2015990000997

Denomination of invention: Method and device for zooming by middle mouse button and scroll wheel

License type: Common License

Record date: 20151127

LICC "enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model"
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200108

Address after: 200120 room 1008, 10 / F, building 2, No. 58, Xiangke Road, Shanghai pilot Free Trade Zone, Pudong New Area, Shanghai

Patentee after: Shanghai Juyi Technology Co., Ltd

Address before: 201203, room 6, building 8, building 200, Newton Road, Zhangjiang hi tech park, Shanghai, Pudong New Area, H

Patentee before: Shanghai Actions Semiconductor Co., Ltd.

TR01 Transfer of patent right
EC01 Cancellation of recordation of patent licensing contract

Assignee: ACTIONS (ZHUHAI) TECHNOLOGY Co.,Ltd.

Assignor: Shanghai Actions Semiconductor Co.,Ltd.

Contract record no.: 2015990000997

Date of cancellation: 20201126

EC01 Cancellation of recordation of patent licensing contract