[go: up one dir, main page]

CN104423826A - Method and device for zooming by middle mouse button and scroll wheel - Google Patents

Method and device for zooming by middle mouse button and scroll wheel Download PDF

Info

Publication number
CN104423826A
CN104423826A CN201310395477.XA CN201310395477A CN104423826A CN 104423826 A CN104423826 A CN 104423826A CN 201310395477 A CN201310395477 A CN 201310395477A CN 104423826 A CN104423826 A CN 104423826A
Authority
CN
China
Prior art keywords
slip event
sliding distance
mouse
straight line
starting point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310395477.XA
Other languages
Chinese (zh)
Other versions
CN104423826B (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

The invention discloses a method for zooming by a middle mouse button and a scroll wheel. The method includes detecting and pressing the middle mouse button, judging whether the scroll wheel scrolls or not, and if yes, recording two coordinates P1 and P2 on a straight line L passing the current coordinate P0 of a mouse cursor, wherein the P1 and the P2 are arranged on two sides of the P0; judging the scrolling direction of the scroll wheel, if scrolling to the first direction, detecting that the middle mouse button rises, generating two slide events S1 and S2 by the P1 and the P2 as the starting points, and zooming the browsed content according to the slide events S1 and S2 and finishing this process, wherein the slide direction is deviated from the P0 along the straight line L if the slide event S1 takes the P1 as the starting point, and the slide direction is deviated from the P0 along the straight line L if the slide event S2 takes the P2 as the starting point; if scrolling to the second direction, triggering zoom out of the browsed content in the similar way. By adopting the method for zooming by the middle mouse button and the scroll wheel, zooming can be realized conveniently by the mouse, and user experience is improved.

Description

A kind of use middle button of mouse and roller to realize convergent-divergent method and device
Technical field
The application relates to field of computer technology, particularly relate to a kind of use middle button of mouse and roller to realize convergent-divergent method and device.
Background technology
Current scale function is common in touch-screen smart mobile phone, panel computer etc. to be had in the digital equipment of the touch-screen of multi-touch function.When user by two (or more) finger touch screen and slide in opposition time, then be equivalent to input one to digital equipment and reduce instruction, otherwise, when user by two (or more) finger touch screen and slide round about time, be then equivalent to input an amplification instruction to digital equipment.Current scale function can be used for zooming in or out webpage, picture etc. easily, facilitates user to browse.
Below for two touch, the ultimate principle of current scale is described.First position M1 and M2 of 2 that user touches is recorded, detect and whether slip event occurs, if, then determine the terminal M3 of the first slip event taking M1 as starting point, and take M2 as the terminal M4 of the second slip event of starting point, if the distance K1 between M3 and M4 is less than the distance K2 between M1 and M2, then reduce process to browsing content, the ratio reduced is proportional to the difference between described distance K1 and K2; If distance K1 is greater than distance K2, then carry out amplification process to browsing content, the ratio of amplification is proportional to the difference between described distance K1 and K2.
Can find out, the realization of existing this current scale function depends on touch-screen.Other is not possessed to the digital equipment of touch-screen, then cannot realize current scale.Such as, although a lot of set-top box device possesses the ability identifying multiple point touching event at present, the TV screen that Set Top Box connects does not possess the function of touch-screen usually, mouse can only be used to control Set Top Box, realizing fairly simple operation as clicked, pulling, slide; Browsing map, webpage, cannot realize the convergent-divergent of content during picture, Consumer's Experience is not good.
Summary of the invention
This application provides a kind of use middle button of mouse and roller to realize convergent-divergent method and device, zoom function can be realized easily by means of only mouse, strengthen Consumer's Experience.
A kind of method using middle button of mouse and roller to realize convergent-divergent that the embodiment of the present application provides, comprising:
A, detect that middle button of mouse is pressed, judge whether mouse roller rolls, if so, perform step B, otherwise exit this flow process;
B, on the straight line L through mouse pointer changing coordinates P0 record two coordinate P1 and P2, described P1 and P2 lays respectively at the both sides of P0;
C, judge the rotating direction of mouse roller, if roll to first direction, perform step D, if second direction is rolled, perform step e; The direction that described first direction and second direction are contrary each other;
D, detect that middle button of mouse lifts, respectively with coordinate P1 and P2 for starting point produces two slip event S1 and S2, and trigger according to slip event S1 and S2 and amplifications is carried out to browsing content process, and process ends; Wherein slip event S1 take P1 as starting point, and glide direction deviates from P0 along straight line L, and slip event S2 take P2 as starting point, and glide direction deviates from P0 along straight line L;
E, detect that middle button of mouse lifts, respectively with coordinate P1 and P2 for starting point produces two slip event S3 and S4, and trigger according to slip event S3 and S4 process reduced to browsing content, and process ends; Wherein slip event S3 take P1 as starting point, and glide direction is along straight line L towards P0, and slip event S4 take P2 as starting point, and glide direction is along straight line L towards P0.
Preferably, in described step D, determine the lattice number N1 that mouse roller rolls to first direction, the sliding distance of slip event S1 and S2 is proportional to N1; Described triggering according to slip event S1 and S2 carries out amplifying the sliding distance that the magnification ratio processed is proportional to slip event S1 and S2 to browsing content.
Preferably, in described step e, determine the lattice number N2 that mouse roller rolls to second direction, the sliding distance of slip event S3 and S4 is proportional to N2; Describedly trigger according to slip event S3 and S4 the sliding distance that the scale down reducing process to browsing content is proportional to slip event S3 and S4.
Preferably,
The angle in described straight line L and screen level direction is 0 degree, 45 degree, 90 degree.
Preferably, the sliding distance of described slip event S1 in the horizontal direction component is m × N1, be-n × N1 at vertical direction component, the sliding distance of slip event S2 in the horizontal direction component is-m × N1, be n × N1 at vertical direction component, wherein m be mouse roller roll 1 lattice time the sliding distance of slip event that produces component in the horizontal direction absolute value, n be mouse roller roll 1 lattice time the sliding distance of slip event that produces at the absolute value of vertical direction component.
Preferably, the sliding distance of described slip event S3 in the horizontal direction component is-m × N2, be n × N2 at vertical direction component, the sliding distance of slip event S4 in the horizontal direction component is m × N2, be-n × N2 at vertical direction component, wherein m be mouse roller roll 1 lattice time the sliding distance absolute value in the horizontal direction of slip event that produces, n be mouse roller roll 1 lattice time the sliding distance of slip event that produces at the absolute value of vertical direction component.
The embodiment of the present application also provides a kind of device using middle button of mouse and roller to realize convergent-divergent, comprising:
First judging unit, after detecting that middle button of mouse is pressed, judges whether mouse roller rolls, if so, enable convergent-divergent processing module;
Convergent-divergent processing module, for zooming in or out process to browsing content, comprising:
Initial coordinate record cell, for recording two coordinate P1 and P2 on the straight line L through mouse pointer changing coordinates P0, described P1 and P2 lays respectively at the both sides of P0;
Second judging unit, for judging the rotating direction of mouse roller, if first direction, enable magnification processing, if second direction, enablely reduces processing unit; The direction that described first direction and second direction are contrary each other;
Magnification processing, for after detecting that middle button of mouse lifts, respectively with coordinate P1 and P2 for starting point produces two slip event S1 and S2, and trigger according to slip event S1 and S2 and amplifications is carried out to browsing content process; Wherein slip event S1 take P1 as starting point, and glide direction deviates from P0 along straight line L, and slip event S2 take P2 as starting point, and glide direction deviates from P0 along straight line L;
Reduce processing unit, for after detecting that middle button of mouse lifts, respectively with coordinate P1 and P2 for starting point produces two slip event S3 and S4, and trigger according to slip event S3 and S4 process reduced to browsing content; Wherein slip event S3 take P1 as starting point, and glide direction is along straight line L towards P0, and slip event S4 take P2 as starting point, and glide direction is along straight line L towards P0.
Preferably, the lattice number N1 that described magnification processing determination mouse roller rolls to first direction, the sliding distance of slip event S1 and S2 is proportional to N1; Described triggering according to slip event S1 and S2 carries out amplifying the sliding distance that the magnification ratio processed is proportional to slip event S1 and S2 to browsing content.
Preferably, described in reduce the lattice number N2 that processing unit determination mouse roller rolls to second direction, the sliding distance of slip event S3 and S4 is proportional to N2; Describedly trigger according to slip event S3 and S4 the sliding distance that the scale down reducing process to browsing content is proportional to slip event S3 and S4.
Preferably,
Described initial coordinate record cell comprises:
Straight line determination subelement, for determining to be the straight line L of 0 degree, 45 degree, 90 degree with the angle in screen level direction.。
Preferably, described magnification processing comprises:
First sliding distance process subelement, for determine slip event S1 sliding distance in the horizontal direction component be m × N1, be-n × N1 at vertical direction component, the sliding distance of slip event S2 in the horizontal direction component is-m × N1, be n × N1 at vertical direction component, wherein m be mouse roller roll 1 lattice time the absolute value of sliding distance in horizontal or vertical direction of slip event that produce, n be mouse roller roll 1 lattice time the sliding distance of slip event that produces at the absolute value of vertical direction component.
Preferably, reduce processing unit described in comprise:
Second sliding distance process subelement, for determine slip event S3 sliding distance in the horizontal direction component be-m × N2, be n × N2 at vertical direction component, the sliding distance of slip event S4 in the horizontal direction component is m × N2, be-n × N2 at vertical direction component, wherein m be mouse roller roll 1 lattice time the sliding distance of slip event that the produces absolute value in x-axis or y-axis direction, n be mouse roller roll 1 lattice time the sliding distance of slip event that produces at the absolute value of vertical direction component.
As can be seen from the above technical solutions, by using the combination of middle button of mouse and roller can simulate two slip event, the effect of two touch can be simulated, thus realize current scale, realize zoom function at the equipment not possessing touch-screen easily by mouse, strengthen Consumer's Experience.
Accompanying drawing explanation
Fig. 1 this application provides a kind of method flow schematic diagram using middle button of mouse and roller to realize convergent-divergent;
Fig. 2 is that in the embodiment of the present application, middle button of mouse is pressed, and produces the schematic diagram of event of pressing when roller starts to roll;
Fig. 3 is the schematic diagram of the coordinate recorded in the process that in the embodiment of the present application, mouse roller rolls backward;
The use middle button of mouse that Fig. 4 provides for the embodiment of the present application and roller realize the device block diagram of convergent-divergent.
Embodiment
This application provides a kind of method using middle button of mouse and roller to realize convergent-divergent, as shown in Figure 1, comprise the steps:
Step 101: detect that middle button of mouse is pressed, judges whether mouse roller rolls, and if so, performs step 102, otherwise exits this flow process;
Step 102: record two coordinate P1 and P2 on the straight line L through mouse pointer changing coordinates P0, described P1 and P2 lays respectively at the both sides of P0;
Step 103: the rotating direction judging mouse roller, if roll to first direction, performs step 104, if second direction is rolled, performs step 105; The direction that described first direction and second direction are contrary each other, such as, first direction is forward, and second direction is backward;
Step 104: detect that middle button of mouse lifts, respectively with coordinate P1 and P2 for starting point produces two slip event S1 and S2, and according to slip event S1 and S2, amplification process (simulating two touch zoom operations) is carried out to browsing content, and process ends; Wherein slip event S1 take P1 as starting point, and glide direction deviates from P0 along straight line L, and slip event S2 take P2 as starting point, and glide direction deviates from P0 along straight line L;
Step 105: detect that middle button of mouse lifts, respectively with coordinate P1 and P2 for starting point produces two slip event S3 and S4, and according to slip event S3 and S4, process (simulating two touch zoom operations) is reduced to browsing content, and process ends; Wherein slip event S3 take P1 as starting point, and glide direction is along straight line L towards P0, and slip event S4 take P2 as starting point, and glide direction is along straight line L towards P0.
Can find out, the method can simulate two slip event by using the combination of middle button of mouse and roller, can simulate the effect of two touch, thus realize current scale.
In described step 104, determine the lattice number N1 that mouse roller rolls to first direction, the sliding distance of slip event S1 and S2 is proportional to N1; Described triggering according to slip event S1 and S2 carries out amplifying the sliding distance that the magnification ratio processed is proportional to slip event S1 and S2 to browsing content.
Similar, in described step 105, determine the lattice number N2 that mouse roller rolls to second direction, the sliding distance of slip event S3 and S4 is proportional to N2; Describedly trigger according to slip event S3 and S4 the sliding distance that the scale down reducing process to browsing content is proportional to slip event S3 and S4.The sliding distance of described slip event S1 in the horizontal direction component is m × N1, vertical direction component be-n × N1, slip event S2 sliding distance in the horizontal direction component be-m × N1, be n × N1 at vertical direction component; The sliding distance of described slip event S3 in the horizontal direction component is-m × N2, be n × N2 at vertical direction component, the sliding distance of slip event S4 in the horizontal direction component is m × N2, be-n × N2 at vertical direction component, wherein m be mouse roller roll 1 lattice time the sliding distance absolute value in the horizontal direction of slip event that produces, n be mouse roller roll 1 lattice time the sliding distance of slip event that produces at the absolute value of vertical direction component.
Can be any direction through the straight line L of mouse changing coordinates P0, can be such as the vertical direction along screen, horizontal direction, namely the horizontal sextant angle of straight line L and screen be 90 degree, 0 degree.Determine that the mode of coordinate P1, P2 also can have multiple, as long as P1 and P2 is respectively in P0 both sides, comparatively common mode is P1 and P2 distance P0 is fixed value.
Preferably, the angle of straight line L and horizontal direction is 45 degree, the sliding distance of described slip event S1 is m*N1 in x-axis direction (horizontal direction), be-m*N1 in y-axis direction, the sliding distance of slip event S2 is-m*N1 in x-axis direction, be m*N1 at y-axis direction (vertical direction), wherein m be mouse roller roll 1 lattice time the sliding distance of slip event that the produces absolute value in x-axis or y-axis direction.
The sliding distance of described slip event S3 is-m*N2 in x-axis direction, be m*N2 in y-axis direction, the sliding distance of slip event S4 is m*N2 in x-axis direction, be-m*N2 in y-axis direction, wherein m be mouse roller roll 1 lattice time the sliding distance of slip event that the produces absolute value in x-axis or y-axis direction.
For making the know-why of technical scheme, feature and technique effect clearly, below in conjunction with specific embodiment, technical scheme is described in detail.
Application embodiment provides a kind of method using middle button of mouse and roller to realize roller convergent-divergent.As shown in Figure 2, suppose that now mouse coordinates is P0(640,360) (unit is pixel).When middle button of mouse is pressed, and when roller starts to roll, can at P1 (740,260) and P2(540,460) producing two presses event, and the angle of these two the coordinate line L and horizontal direction pressing event is 45 degree.As shown in Figure 3, when mouse roller rolls lattice backward, two coordinate P3 and P4 can be recorded.Wherein P3 and P1 is-5 pixels in x direction distance, and on y direction, distance is 5 pixels; P4 and P2 distance is in the x direction 5 pixels, and the distance on y direction is-5 pixels.After this mouse roller often slides lattice, based on the point that all can produce by the last time, according to previous step method record two coordinates, as P5, P6.After middle button of mouse unclamps, produce two with the coordinate of finally record two coordinates and lift event, and one that is positioned at P0 the same side is pressed event and one and lifts event and form a complete slip event, therefore P0 both sides form a slip event respectively, and so far a gesture reduced just completes.
The gesture of amplifying is similar, and just P3, P4 produce in the outside of P1, P2.Can also by used in combination for mitigation and amplification gesture, as long as remain that middle button of mouse is in down state.
The embodiment of the present application additionally provides a kind of device using middle button of mouse and roller to realize convergent-divergent, as shown in Figure 4, comprising:
First judging unit 401, after detecting that middle button of mouse is pressed, judges whether mouse roller rolls, if so, enable convergent-divergent processing module 402;
Convergent-divergent processing module 402, for zooming in or out process to browsing content, comprising:
Initial coordinate record cell 403, for recording two coordinate P1 and P2 on the straight line L through mouse pointer changing coordinates P0, described P1 and P2 lays respectively at the both sides of P0;
Second judging unit 404, for judging the rotating direction of mouse roller, if first direction, enable magnification processing 405, if second direction, enablely reduces processing unit 406; The direction that described first direction and second direction are contrary each other;
Magnification processing 405, for after detecting that middle button of mouse lifts, respectively with coordinate P1 and P2 for starting point produces two slip event S1 and S2, and trigger according to slip event S1 and S2 and amplifications is carried out to browsing content process; Wherein slip event S1 take P1 as starting point, and glide direction deviates from P0 along straight line L, and slip event S2 take P2 as starting point, and glide direction deviates from P0 along straight line L;
Reduce processing unit 406, for after detecting that middle button of mouse lifts, respectively with coordinate P1 and P2 for starting point produces two slip event S3 and S4, and trigger according to slip event S3 and S4 process reduced to browsing content; Wherein slip event S3 take P1 as starting point, and glide direction is along straight line L towards P0, and slip event S4 take P2 as starting point, and glide direction is along straight line L towards P0.
Preferably, described magnification processing 405 determines the lattice number N1 that mouse roller rolls to first direction, and the sliding distance of slip event S1 and S2 is proportional to N1; Described triggering according to slip event S1 and S2 carries out amplifying the sliding distance that the magnification ratio processed is proportional to slip event S1 and S2 to browsing content.
Preferably, described in reduce processing unit 406 and determine the lattice number N2 that mouse roller rolls to second direction, the sliding distance of slip event S3 and S4 is proportional to N2; Describedly trigger according to slip event S3 and S4 the sliding distance that the scale down reducing process to browsing content is proportional to slip event S3 and S4.
Preferably, the first direction that described second judging unit judges is as forward, and second direction is backward.
Preferably, described initial coordinate record cell comprises:
Straight line determination subelement, for determining to be the straight line L of 0 degree, 45 degree, 90 degree with the angle in screen level direction.
Preferably, described magnification processing comprises:
First sliding distance process subelement, for determine slip event S1 sliding distance in the horizontal direction component be m × N1, be-n × N1 at vertical direction component, the sliding distance of slip event S2 in the horizontal direction component is-m × N1, be n × N1 at vertical direction component, wherein m be mouse roller roll 1 lattice time the absolute value of sliding distance in horizontal or vertical direction of slip event that produce, n be mouse roller roll 1 lattice time the sliding distance of slip event that produces at the absolute value of vertical direction component.
Preferably, reduce processing unit described in comprise:
Second sliding distance process subelement, for determine slip event S3 sliding distance in the horizontal direction component be-m × N2, be n × N2 at vertical direction component, the sliding distance of slip event S4 in the horizontal direction component is m × N2, be-n × N2 at vertical direction component, wherein m be mouse roller roll 1 lattice time the sliding distance of slip event that the produces absolute value in x-axis or y-axis direction, n be mouse roller roll 1 lattice time the sliding distance of slip event that produces at the absolute value of vertical direction component.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required hardware platform by software and realize, can certainly all be implemented by hardware, but in a lot of situation, the former is better embodiment.Based on such understanding, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
The foregoing is only the preferred embodiment of the application; not in order to limit the protection domain of the application; within all spirit in technical scheme and principle, any amendment made, equivalent replacements, improvement etc., all should be included within scope that the application protects.

Claims (12)

1. use middle button of mouse and roller to realize a method for convergent-divergent, it is characterized in that, comprising:
A, detect that middle button of mouse is pressed, judge whether mouse roller rolls, if so, perform step B, otherwise exit this flow process;
B, on the straight line L through mouse pointer changing coordinates P0 record two coordinate P1 and P2, described P1 and P2 lays respectively at the both sides of P0;
C, judge the rotating direction of mouse roller, if roll to first direction, perform step D, if second direction is rolled, perform step e; The direction that described first direction and second direction are contrary each other;
D, detect that middle button of mouse lifts, respectively with coordinate P1 and P2 for starting point produces two slip event S1 and S2, and trigger according to slip event S1 and S2 and amplifications is carried out to browsing content process, and process ends; Wherein slip event S1 take P1 as starting point, and glide direction deviates from P0 along straight line L, and slip event S2 take P2 as starting point, and glide direction deviates from P0 along straight line L;
E, detect that middle button of mouse lifts, respectively with coordinate P1 and P2 for starting point produces two slip event S3 and S4, and trigger according to slip event S3 and S4 process reduced to browsing content, and process ends; Wherein slip event S3 take P1 as starting point, and glide direction is along straight line L towards P0, and slip event S4 take P2 as starting point, and glide direction is along straight line L towards P0.
2. method according to claim 1, is characterized in that, in described step D, determine the lattice number N1 that mouse roller rolls to first direction, the sliding distance of slip event S1 and S2 is proportional to N1; Described triggering according to slip event S1 and S2 carries out amplifying the sliding distance that the magnification ratio processed is proportional to slip event S1 and S2 to browsing content.
3. method according to claim 1, is characterized in that, in described step e, determine the lattice number N2 that mouse roller rolls to second direction, the sliding distance of slip event S3 and S4 is proportional to N2; Describedly trigger according to slip event S3 and S4 the sliding distance that the scale down reducing process to browsing content is proportional to slip event S3 and S4.
4. the method according to any one of claims 1 to 3, is characterized in that, the angle in described straight line L and screen level direction is 0 degree, 45 degree, 90 degree.
5. the method according to any one of claims 1 to 3, it is characterized in that, the sliding distance of described slip event S1 in the horizontal direction component is m × N1, be-n × N1 at vertical direction component, the sliding distance of slip event S2 in the horizontal direction component is-m × N1, be n × N1 at vertical direction component, wherein m be mouse roller roll 1 lattice time the sliding distance of slip event that produces component in the horizontal direction absolute value, n be mouse roller roll 1 lattice time the sliding distance of slip event that produces at the absolute value of vertical direction component.
6. the method according to any one of claims 1 to 3, it is characterized in that, the sliding distance of described slip event S3 in the horizontal direction component is-m × N2, be n × N2 at vertical direction component, the sliding distance of slip event S4 in the horizontal direction component is m × N2, be-n × N2 at vertical direction component, wherein m be mouse roller roll 1 lattice time the sliding distance absolute value in the horizontal direction of slip event that produces, n be mouse roller roll 1 lattice time the sliding distance of slip event that produces at the absolute value of vertical direction component.
7. use middle button of mouse and roller to realize a device for convergent-divergent, it is characterized in that, comprising:
First judging unit, after detecting that middle button of mouse is pressed, judges whether mouse roller rolls, if so, enable convergent-divergent processing module;
Convergent-divergent processing module, for zooming in or out process to browsing content, comprising:
Initial coordinate record cell, for recording two coordinate P1 and P2 on the straight line L through mouse pointer changing coordinates P0, described P1 and P2 lays respectively at the both sides of P0;
Second judging unit, for judging the rotating direction of mouse roller, if first direction, enable magnification processing, if second direction, enablely reduces processing unit; The direction that described first direction and second direction are contrary each other;
Magnification processing, for after detecting that middle button of mouse lifts, respectively with coordinate P1 and P2 for starting point produces two slip event S1 and S2, and trigger according to slip event S1 and S2 and amplifications is carried out to browsing content process; Wherein slip event S1 take P1 as starting point, and glide direction deviates from P0 along straight line L, and slip event S2 take P2 as starting point, and glide direction deviates from P0 along straight line L;
Reduce processing unit, for after detecting that middle button of mouse lifts, respectively with coordinate P1 and P2 for starting point produces two slip event S3 and S4, and trigger according to slip event S3 and S4 process reduced to browsing content; Wherein slip event S3 take P1 as starting point, and glide direction is along straight line L towards P0, and slip event S4 take P2 as starting point, and glide direction is along straight line L towards P0.
8. device according to claim 7, is characterized in that, the lattice number N1 that described magnification processing determination mouse roller rolls to first direction, and the sliding distance of slip event S1 and S2 is proportional to N1; Described triggering according to slip event S1 and S2 carries out amplifying the sliding distance that the magnification ratio processed is proportional to slip event S1 and S2 to browsing content.
9. device according to claim 7, is characterized in that, described in reduce the lattice number N2 that processing unit determination mouse roller rolls to second direction, the sliding distance of slip event S3 and S4 is proportional to N2; Describedly trigger according to slip event S3 and S4 the sliding distance that the scale down reducing process to browsing content is proportional to slip event S3 and S4.
10. the device according to any one of claim 7 to 9, is characterized in that, described initial coordinate record cell comprises:
Straight line determination subelement, for determining to be the straight line L of 0 degree, 45 degree, 90 degree with the angle in screen level direction.
11. devices according to any one of claim 7 to 9, it is characterized in that, described magnification processing comprises:
First sliding distance process subelement, for determine slip event S1 sliding distance in the horizontal direction component be m × N1, be-n × N1 at vertical direction component, the sliding distance of slip event S2 in the horizontal direction component is-m × N1, be n × N1 at vertical direction component, wherein m be mouse roller roll 1 lattice time the absolute value of sliding distance in horizontal or vertical direction of slip event that produce, n be mouse roller roll 1 lattice time the sliding distance of slip event that produces at the absolute value of vertical direction component.
12. devices according to any one of claim 7 to 9, is characterized in that, described in reduce processing unit and comprise:
Second sliding distance process subelement, for determine slip event S3 sliding distance in the horizontal direction component be-m × N2, be n × N2 at vertical direction component, the sliding distance of slip event S4 in the horizontal direction component is m × N2, be-n × N2 at vertical direction component, wherein m be mouse roller roll 1 lattice time the sliding distance of slip event that the produces absolute value in x-axis or y-axis direction, n be mouse roller roll 1 lattice time the sliding distance of slip event that produces at the absolute value of vertical direction component.
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 true CN104423826A (en) 2015-03-18
CN104423826B 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)

Cited By (6)

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

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1346223A (en) * 2000-09-26 2002-04-24 仁宝电脑工业股份有限公司 A palm-sized device with zoom display function
US20030043123A1 (en) * 2001-08-29 2003-03-06 Microsoft Corporation Touch-sensitive device for scrolling a document on a display
US20030085882A1 (en) * 2001-11-08 2003-05-08 Koninklijke Philips Electronics N.V. Multi-point touch pad
CN1725166A (en) * 2004-07-21 2006-01-25 微软公司 Input device with a zoom apparatus
CN101520702A (en) * 2008-02-26 2009-09-02 苹果公司 Simulation of multi-point gestures with a single pointing device
CN101714034A (en) * 2008-10-01 2010-05-26 罗技欧洲公司 Mouse having pan, zoom, and scroll controls
CN102289303A (en) * 2011-07-15 2011-12-21 魏新成 Method for carrying out normal editing function operations through middle key of mouse
CN102479041A (en) * 2010-11-25 2012-05-30 英业达股份有限公司 How to zoom the screen with one hand on the small touch screen
CN102650911A (en) * 2012-05-25 2012-08-29 深圳市众进思创科技开发有限公司 Gesture method used for mouse

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1346223A (en) * 2000-09-26 2002-04-24 仁宝电脑工业股份有限公司 A palm-sized device with zoom display function
US20030043123A1 (en) * 2001-08-29 2003-03-06 Microsoft Corporation Touch-sensitive device for scrolling a document on a display
US20030085882A1 (en) * 2001-11-08 2003-05-08 Koninklijke Philips Electronics N.V. Multi-point touch pad
CN1725166A (en) * 2004-07-21 2006-01-25 微软公司 Input device with a zoom apparatus
CN101520702A (en) * 2008-02-26 2009-09-02 苹果公司 Simulation of multi-point gestures with a single pointing device
CN101714034A (en) * 2008-10-01 2010-05-26 罗技欧洲公司 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
CN102650911A (en) * 2012-05-25 2012-08-29 深圳市众进思创科技开发有限公司 Gesture method used for mouse

Cited By (10)

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

Also Published As

Publication number Publication date
CN104423826B (en) 2018-07-31

Similar Documents

Publication Publication Date Title
US8253704B2 (en) Method and apparatus for controlling information scrolling on touch-screen
JP6122037B2 (en) Content moving method and apparatus in terminal
CN103718149B (en) A text processing method and touch screen device
US9612675B2 (en) Emulating pressure sensitivity on multi-touch devices
CN103838456B (en) A kind of control method and system of desktop icons display location
CN103383603B (en) The method and electronic equipment of information processing
CN104423826A (en) Method and device for zooming by middle mouse button and scroll wheel
US20120256846A1 (en) Electronic device and method of controlling same
US10228835B2 (en) Method for displaying information, and terminal equipment
US20140365929A1 (en) Handhold electronic device and method for list item editing based on a touch screen
CN105260103B (en) A kind of picture Zoom method and electronic equipment
US10620758B2 (en) Glove touch detection
CN103262015A (en) Responding to the receipt of zoom commands
CN102117165A (en) Touch input processing method and mobile terminal
US20130132889A1 (en) Information processing apparatus and information processing method to achieve efficient screen scrolling
CN104102418A (en) Method and device for locating target position of input box in mobile terminal browser
JPWO2013039064A1 (en) Information processing apparatus, display control method, program, and information storage medium
CN106886511B (en) Network table processing method and device
CN106354404A (en) Page operation method and device
CN103092412B (en) Mobile terminal and the display packing of mobile terminal operation object
CN107111435A (en) A kind of page sliding method, device and user terminal
CN108491152B (en) Touch screen terminal control method, terminal and medium based on virtual cursor
KR102118091B1 (en) Mobile apparatus having fuction of pre-action on object and control method thereof
CN105988703A (en) Business object display method and apparatus
CN104932769A (en) Web page display method and device

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